Link to home
Start Free TrialLog in
Avatar of Cloned3
Cloned3Flag for United States of America

asked on

ERROR: mscorlib: Access to the path "\\Server\Share\File-Name.TXT" is denied.

We have a web application written VB using VS2003.  
It takes a .txt file and imports it into the application for processing.  Then it writes out another .txt file with the changes, made during processing, for archive purposes.  We get this - ERROR: mscorlib: Access to the path "\\Server\Share\File-Name.TXT" is denied.
This is the first time in 3 years that this has failed.  I have looked in the Event Logs and cannot find any other information.  We recently upgraded to IE7.  
I have no idea what else might help solve this problem.  Thanks for any help!
Avatar of tboy6423
tboy6423
Flag of United States of America image

add your \\server  to trusted sites in tools, internet options, trusted sites, just make sure you set trusted sites to low, then you will have to adjust it in .net wizards, adjust security, and make sure trusted sites have full trust.
Avatar of Cloned3

ASKER

The web servers are in the trusted sites.
The files are opened and saved to a file server.  We tried saving the file to several places including the root of C but it will not save.  We changed the save location to a local drive and it saved.
Do you get an error when it can't save?
Avatar of Cloned3

ASKER

The only error is ERROR: mscorlib: Access to the path "\\Server\Share\File-Name.TXT" is denied.
I have cleared all of the logs on the web server, the file server and the pc then attempted to import the data through the application.  The ERROR: mscorlib: Access to the path "\\Server\Share\File-Name.TXT" is denied comes up.  I then look in each of the log files on all three systems and I can find nothing that references a failed login to "\\Server\Share".  Or that references mscorlib.  That is what is so frustrating:  Where is this error hiding?
What are the 3 systems? their OS?
Avatar of Cloned3

ASKER

File Server: Windows Server 2003 Standard Edition SP2, HP DL380
                   mscorlib.dll v1.1.4322.2407 in folder:C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
                   mscorlib.dll 2.0.50727.1433 in folder:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
Web Server: Windows Server 2003 Standard Edition SP2. HP DL380
                   mscorlib 2.0.50727.1433 in folder:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
                   mscorlib.dll 2.0.50727.1433 in folder:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
Desktop: Windows XP Pro SP2 HP d530
                   mscorlib 2.0.50727.1433 in folder:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
                   mscorlib.dll 2.0.50727.1433 in folder:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
I know both servers are in trusted sites, but is trusted sites set to full access????
Avatar of Cloned3

ASKER

Where do you set full acces?
administrator tools, .net wizard, adjust .net security, select make chages to cmputer, Trusted sites, and intranet, you set to Full Trust
Avatar of Cloned3

ASKER

The file server has the web serve in the Trusted Sites and Trusted Sites has Full Access.
The web server has the web serve in the Trusted Sites and Trusted Sites has Full Access.
The desktop has the web serve in the Trusted sites and Trusted Sites has Full Access.
And I get the same error.
The .net framework needs to be updated on your machines... you have version v2.0.50727 which had issues with the error you are receiving the link to download is here:

http://www.microsoft.com/downloads/details.aspx?familyid=333325FD-AE52-4E35-B531-508D977D32A6&displaylang=en 
ASKER CERTIFIED SOLUTION
Avatar of Cloned3
Cloned3
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial