Thursday, January 7, 2010

Can Not Debug With Visual Studio

One day i had problem with debugging my application with Visual Studio .NET 2005, it seem very annoyed me, i think something need to do.

This problem view like this … 

image

with error message like this :
System.ArgumentNullException was unhandled
Message="Value cannot be null.\r\nParameter name: activationContext"
Source="mscorlib"
ParamName="activationContext"
StackTrace:
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
at System.Activator.CreateInstance(ActivationContext activationContext)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:


image 

Make me looking the answer about it, and i really need it as soon as possible, and fortunately i found the answer, the key is like this:

From solution properties, choose Security tab, and i found that default option value is checked : enable clickone secutity settings
, after i unchecked that option, and run application it allow me to run the application from Visual Studio again, so you can try it with the same problem that i had.

image

No comments:

Hukum Tabur Tuai

Ingatlah hukum dasar ini, dalam kehidupanmu  Barang siapa yang menanam, dia pula yang akan menuai