Showing posts with label webconfig. Show all posts
Showing posts with label webconfig. Show all posts

Monday, March 26, 2012

Strange error - Permissions and web.config?

I've added additional security to a sub folder in a web site where the user must provide a User ID and PWD to access a certain folder. It's not allowing anonymous access to the folder as designed.

Here is the folder: http://www.drpt.virginia.gov/ftp/blabaugh/

And the UID and PWD is both "labaugh-user".

Check out the error message once you log in. I've never seen that before. Any ideas? I searched this forum but didn't have any luck finding the solution.

"Server Error in '/' Application.
------------------------

Access denied to 'E:\websites\drpt2004\ftp\blabaugh\web.config'. Failed to start monitoring file changes. "

HUH?

Thanks!after googling a bit, it seems you should look at your authentication. Are you using impersonation? Does the ASPNET account have permissions to the directory you application resides in?

<a href='http://support.microsoft.com/default.aspx?kbid=317955'> KB Article 317955 </a>
Not doing any impersonation but that article helped. I added ASPNET account and it fixed it. Thanks!

Saturday, March 24, 2012

Strange error, fixed my adding/removing custom error page and web.config?!

Whilst working on my ASP.NET project, I have been encountering this rather strange error.

It seems that sometimes my page will break, and to fix it, ie make it load at least, i have to upload my custom error page and web.config file to the server, or remove them if they are there!


Why is this happening? and how can i possibly fix the problem so i can concentrate on making the main project work.

thankyou in advance.

Paul

Hi Mr_pablo,

Based on my understanding, your web application runs in the server. Sometimes, there are something wrong with your application about custom error page and web.config. If I have misunderstood you, please feel free to let me know.

To better understand your issue, could you please provide more detail information about the issue. For example:

When a page broke, what is happened in the server? Does it show a custom error page or something?