Discussion Locked

VB.Net , Excel, and Running From Server

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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?

3 replies

by bill

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 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
[URL]www.billcoupe.com[/URL]
[URL]www.expert-code.com[/URL]

This discussion is closed to new replies.