Server Access

G

Guest

I am replacing a VB6 batch program with NET 2003. The program is launched
from a SQL Server via DTS, and the first thing the program does is read some
information from a file (DAT/INI type) residing in the same folder as the
exe. The VB6 programs works just fine, but the NET 2003 errors out with
"System.Security.Permissions.SecurityPermission at MyProgram.basMain.ReadDAT".

What do I need to do to get access? This server\share is readable by all
within the enterprise, so I'm guessing this is some sort of framework issue.

Thanks in advance.
 
C

Cowboy \(Gregory A. Beamer\)

Within .NEt, there are different trust levels. To bounce all over the file
system, you will have to set the trust level differently than default, which
is rather locked down. If you can GAC the component, you can easily set the
level with the .NET configuration tool. The topic to look up is "Code Access
Security" possibly with "trust levels".

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top