SecurityPermission fails when running app from server VB.Net 2005



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()



.



Relevant Pages

  • Re: SecurityPermission fails when running app from server VB.Net 2005
    ... TCMaxLabelMaker is my own Windows application. ... problem with a VERY simple app that I'm playing with to try to replace VB6 ... I must go to my small business server to manually delete this ... workstation there is a appname.vshost.exe that was created by the other ...
    (microsoft.public.dotnet.security)
  • Re: Tcp/ip port security issue...
    ... that he wanted you to do from the server. ... listening on the right port, and that the tcp/ip stack on the workstation is ... that the app isn't running or can't open it's port, ...
    (microsoft.public.win2000.networking)
  • Re: SecurityPermission fails when running app from server VB.Net 2005
    ... source code resides on my Small Business Server I get a fatal error (below ... workstation there is a appname.vshost.exe that was created by the other ... at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence ... executionContext, ContextCallback callback, Object state) ...
    (microsoft.public.dotnet.security)
  • Re: logon on to server again
    ... icon to access the application on the server, a window pops up asking ... He cannot access the app on the server. ... How was the workstation joined to the SBS domain? ...
    (microsoft.public.windows.server.sbs)
  • Re: programme on a network
    ... workstation - you just installed it elsewhere. ... since any components/runtimes the App uses must also be loaded on the ... To actually run an App on a server with minimal impact on the workstation ... you will need to use a terminal server which is a separate product. ...
    (microsoft.public.vb.general.discussion)