SecurityPermission fails when running app from server VB.Net 2005
- From: "Rick Lederman" <rick@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 2 May 2006 20:40:51 -0400
My VB.Net 2005 app runs in the IDE fine from my own machine, but when the
source code resides on my Small Business Server I get a fatal error (below
my signature) right away when the form starts to load. This app did run
from the server at one time, but not now. Any ideas? I have two different
development stations that work on projects. Another symptom is that when an
app is worked by the other workstation (code sits in the server), then I try
it from a different workstation there is a appname.vshost.exe that was
created by the other workstation that can not be overwritten by this
workstation, nor deleted here. I must go directly to the server and delete
it from there. This may be a totally different problem than the first, but
it reaks of a secruity problem.
--
Rick Lederman
Soaring Software Solutions, Inc.
www.soaringsoftware.com
rick@xxxxxxxxxxxxxxxxxxx
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="TCMaxLabelMaker"
StackTrace:
at TCMaxLabelMaker.My.MyProject.MyForms.Create__Instance__[T](T
Instance)
at TCMaxLabelMaker.My.MyProject.MyForms.get_frmMain()
at TCMaxLabelMaker.My.MyApplication.OnCreateMainForm()
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[]
commandLine)
at TCMaxLabelMaker.My.MyApplication.Main(String[] Args)
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
.
- Follow-Ups:
- Re: SecurityPermission fails when running app from server VB.Net 2005
- From: Nicole Calinoiu
- Re: SecurityPermission fails when running app from server VB.Net 2005
- Prev by Date: RE: Migrating code from .NET 1.1 to Partial Trust server
- Next by Date: Windows Identity within Forms Authentication in ASP.NET
- Previous by thread: Launching IE Window From Partially Trusted Code
- Next by thread: Re: SecurityPermission fails when running app from server VB.Net 2005
- Index(es):
Relevant Pages
|