![]()
I've just started getting a ClickOnce Launch Utility error out of the blue. The error is:
///////////////
An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll
Additional information: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
///////////////
and the stack trace is:
//////////////
mscorlib.dll!System.Security.CodeAccessPermission.Demand() + 0x3b bytes
mscorlib.dll!System.Reflection.Assembly.VerifyCodeBaseDiscovery(string codeBase) + 0x77 bytes
mscorlib.dll!System.Reflection.Assembly.GetName(bool copiedName) + 0x47 bytes
mscorlib.dll!System.Reflection.Assembly.GetName() + 0xa bytes
> CusQuoteAnalysis.exe!SWNW.CusQuoteAnalysis.CusQuoteAnalysis.Main() Line 37 + 0x10 bytes C#
[Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.AppDomain.nExecuteAssembly(System.Reflection.Assembly assembly, string[] args) + 0x19 bytes
mscorlib.dll!System.Runtime.Hosting.ManifestRunner.Run(bool checkAptModel) + 0x6e bytes
mscorlib.dll!System.Runtime.Hosting.ManifestRunner.NewThreadRunner() + 0xc bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x66 bytes
mscorlib.dll!System.Threading.ExecutionContext.runTryCode(object userData) + 0x51 bytes
[Native to Managed Transition]
[Managed to Native Transition]
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x67 bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x45 bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 bytes
/////////////////////
The location of the exception is the very first line of the entry point Main() function of the application where it is calling Assembly.GetEntryAssembly().GetName().Name.
The error indicates that the application is not trusted. However, Enable Click Once Security is checked and Full trust is selected. Other Info:
The application is configured to be available online only.
The application of course runs fine with no errors from the local machine.
The application was built and deployed with Visual Studio 2008 SP1 and targets .NET 2.0.
We have several other ClickOnce applications deployed to the same machines with the exact same configuration that continue to work fine.
All machines are running Windows XP Pro with SP3.
Any ideas on what to check/try next in order to debug this?
Thanks!