Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.exe Error on Network: Where to Look Next

Status
Not open for further replies.

GGleason

Technical User
Mar 22, 2001
321
US
I am new to VB.NET. I have an application on a network with full permissions. I have run an .msi file for a user for full trust for the executable. Yet it fails. As is the familiar story, when the executable resides on the user's machine, it works like it is supposed to.

The executable is designed to run calling a configuration file, also on the network. Even when the executable is local and the config file is from the network, there is no problem.

Here is the exception:
[tt][blue]
************** Exception Text **************
System.Security.SecurityException: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
at ProjPt.ProjPt.ProjPt_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
[/blue][/tt]

Can anyone think of what to check next?

The .msi was set up as a full trust enterprise.

Please help, please help, please help.

Thanks,
GGleason
 
What about the app itself? Is it local or on the network. If it is on the network, have you gone into the control panel -> admin tools -> .Net wizards -> app security and set it to full?

-Rick

----------------------

[monkey] I believe in killer coding ninja monkeys.[monkey]
[banghead]
 
Rick,

Should I use "Adjust .NET Security" or "Trust an Assembly"?

Thanks,
GGleason
 
either one. the .Net security will adjust entire zones. The Assembly will adjust security for a single application.

-Rick

----------------------

[monkey] I believe in killer coding ninja monkeys.[monkey]
[banghead]
 
Rick,

I used the "Trust an Assembly" and at the end I got the following message:
[blue]
Due to your existing security policy, the wizard is unable to increase the level of trust for this assembly. No changes were made to your policy.
[/blue]
That was not the news I wanted to hear, but it is at least some information.

Thanks,
GGleason
 
hmm, take a look at the .Net security wizard, see what the 'Network' security level is at. I would think assembly security should over ride it though. weird. You might want to talk to your network admins about this.

-Rick

----------------------

[monkey] I believe in killer coding ninja monkeys.[monkey]
[banghead]
 
Rick,

The max setting for local intranet in medium trust for changes for the current user.

A network tech told me permissions were open to everyone.

Thanks,
GGleason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top