dbremner / smokey

Automatically exported from code.google.com/p/smokey
0 stars 0 forks source link

Simple Usage on a Windows PC .Net but without Mono #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've probably done something really silly so forgive me if I have...

What steps will reproduce the problem?
1. Running smokey against an assembly as per instructions

What is the expected output? What do you see instead?
As per doco

What version of the product are you using? On what operating system?
1.4.4.0

Please provide any additional information below.

I do not have Mono installed. Does Smokey work on regular .Net?

After execution the following is written to the console. Is there any
reason an assembly analyser would need an internet connection?

C:\Temp\Smokey\bin>smokey.exe MyAssembly.dll
Couldn't load symbols so there will be no file or line numbers.
Couldn't load the aspell library.

Unhandled Exception: System.Reflection.TargetInvocationException: An
exception occurred during the operation, making the result invalid.  Check
InnerException for exception details. ---> System.Net.WebException: The
remote server returned an error: (407) Proxy Authentication Required.
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
   at System.Net.WebClient.GetWebResponse(WebRequest request, IAsyncResult
result)
   at System.Net.WebClient.DownloadBitsResponseCallback(IAsyncResult result)
   --- End of inner exception stack trace ---
   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at System.Net.DownloadStringCompletedEventArgs.get_Result()
   at Smokey.Internal.Rules.DownloadFile.DoCompleted(Object sender,
DownloadStringCompletedEventArgs e)
   at
System.Net.WebClient.OnDownloadStringCompleted(DownloadStringCompletedEventArgs
e)
   at System.Net.WebClient.DownloadStringOperationCompleted(Object arg)
   at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object
state)
   at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
   at
System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPool
WaitCallback
tpWaitCallBack)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object
state)

Original issue reported on code.google.com by christia...@gmail.com on 22 Oct 2008 at 3:32

GoogleCodeExporter commented 8 years ago
My bad... I needed to exclude the NewVersionRule:

smokey -exclude-check=M1003 MyAssembly.dll

I'm running this at work so web access is via a proxy. I've looked at the code 
and
noticed you don't cater for proxy configuration. So I guess the issue is to 
make the
proxy settings configurable by either the command line or the app.config.

Original comment by christia...@gmail.com on 22 Oct 2008 at 10:20