Click here to Skip to main content
15,740,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have been using many application using server.

Now i have changed and migrated my domain. previously it was "ABCO".

Now, Current domain is "ABCONET".

After changing the domain, i am unable to open the link file. very first link file in the row of the application i am able to open, but the rest of the files i am not able to open.

It will throw the error as below.
Server Error in '/' Application.


Network access is denied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.IOException: Network access is denied.

Source Error: 
Line 93:             Response.AddHeader("ContentDisposition", "attachment;filename=path")
Line 94: 
Line 95: Response.TransmitFile(path) Line 96:             Response.End()
Line 97:         Else 

The samething was working before changing the domain.

What is the problem. and how we can solve this...?
Updated 30-May-12 21:12pm

This is a good article to understand ASp.NET security configuration: Understanding ASP.NET Impersonation Security[^]

Check what happens, after setting the permission to the folder for ASPNET User and NETWROK Service.
Share this answer
Maciej Los 31-May-12 9:30am    
Short and to the point, my 5!
Sandeep Mewara 31-May-12 14:52pm    
Thanks losmac.:)
It definitely sounds like a permissions issue. Check the security tab in the folder options of the folder you are trying to access and ensure that the necessary users are available and are referencing the correct domain.

I hope this helps in some way.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900