Re: Faillure to run .NET 2.0 app from UNC
- From: Adri <a3@xxxxxxxxxxxxxxxx>
- Date: Tue, 25 Jul 2006 07:17:02 -0700
Hi Norman,
The user (myself) has full access (on OS level) to the UNC share.
The CASPOL call is:
caspol -q -m -ag 1.2. -url file://SERVER/Share/* FullTrust
--
Adri
Programmers do it Bit by Bit
"Norman Yuan" wrote:
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: Norman Yuan
- Re: Faillure to run .NET 2.0 app from UNC
- References:
- Re: Faillure to run .NET 2.0 app from UNC
- From: Norman Yuan
- Re: Faillure to run .NET 2.0 app from UNC
- Prev by Date: Re: Faillure to run .NET 2.0 app from UNC
- Next by Date: Calculate memory consumed.
- Previous by thread: Re: Faillure to run .NET 2.0 app from UNC
- Next by thread: Re: Faillure to run .NET 2.0 app from UNC
- Index(es):