General discussion

Locked

VB.Net , Excel, and Running From Server

By InletGroveHS ·
I have a program that access certain Excel files in the same directory as the .exe file. It works wonderfully when placed anywhere on the local computer. However, if I place the exe and files on a remote server and try to run them off the server it only produces errors.

JIT Debugging shows an exception in System.Security.SecurityException has occured.

Any ideas how to resolve this?

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by bill In reply to VB.Net , Excel, and Runni ...

The issue is a 'Trust' issue, to trust an application, from your machine stored on another try this.

caspol -machine -addgroup 1 -hash SHA1 -file <full_path_to_app> FullTrust

You can also go into your control panel under administrative tools, you should have a .NET framework wizard someversion-or-other. If you click on that, and then pick "adjust security", you can see the current security level. What you need to do is select "local network" or "local intranet" and set it to full trust. By default you are blocked from a few items if the assembly is coming off of the network.

Hope this helps

-bill
www.billcoupe.com
www.expert-code.com

Collapse -

by InletGroveHS In reply to

That works... Thanks alot!

Collapse -

by InletGroveHS In reply to VB.Net , Excel, and Runni ...

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums