Re: Faillure to run .NET 2.0 app from UNC
- From: "Norman Yuan" <NotReal@xxxxxxxxxxx>
- Date: Tue, 25 Jul 2006 07:08:04 -0700
It is obviously the security/permission issue. In order to run .NET code
from a network share, you need to
1. Give user necessary file access permission, read and execute, whether it
is .NET file or not;
2. Allow .NET code from outside computer to run with CASPOL tool.
Are you sure you have done both correctly? I do not see there is other
reasons.
"Adri" <a3@xxxxxxxxxxxxxxxx> wrote in message
news:B66FF897-A249-46CC-9092-ADAA9E990C58@xxxxxxxxxxxxxxxx
I've built an localised .NET 2.0 application, which runs fine on my
development machine. But when I deploy the app, it fails to run from an
UNC
path. I've already used CASPOL to add FullTrust to the UNC.
The error that occurs us the following:
System.InvalidOperationException was unhandled
Message="An error occurred creating the form. See
Exception.InnerException
for details. The error is: Request for the permission of type
'System.Security.Permissions.SecurityPermission, mscorlib,
Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
Source="TMD"
StackTrace:
at TMD.My.MyProject.MyForms.Create__Instance__[T](T Instance)
at TMD.My.MyApplication.OnCreateSplashScreen()
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.ShowSplashScreen()
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnInitialize(ReadOnlyCollection`1
commandLineArgs)
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[]
commandLine)
at TMD.My.MyApplication.Main(String[] Args)
It seems to happen when the app tries to show the SplashScreen
--
Adri
Programmers do it Bit by Bit
.
- Follow-Ups:
- Re: Faillure to run .NET 2.0 app from UNC
- From: Adri
- Re: Faillure to run .NET 2.0 app from UNC
- Prev by Date: Webservice proxy and override
- Next by Date: Re: Faillure to run .NET 2.0 app from UNC
- Previous by thread: Webservice proxy and override
- Next by thread: Re: Faillure to run .NET 2.0 app from UNC
- Index(es):