Web Development

General discussion


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.

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


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

Related Discussions

Related Forums