• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 298
  • Last Modified:

Accessing a UNC file in ASP.NET

I am trying to open and read a text file stored on another sever via ASP.Net (VB). using the Micorsoft.scripting COM compenent. The code works fine when I run it on my development machine, however when I post to our live intranet server. I get the error shown below. I thought it may be to do with the permissions on the user account running the code under IIS, so I changed it to a domain user with domain admin rights to test this theory, however it still fails.

Can anyone help?



Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Exception from HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED).

1 Solution

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now