Visual Studio 2010 + ASP.Net Web Project: Looking in current folder for web.config (instead of root) -


so have been developing application boss on past few weeks , last night administrator jacks machine. think thing did rename computer name, there more. anyway, reopen project after getting on computer , asp.net web project looking current directory of every aspx file web.config instead of web.config in root of project directory (where has been whole time).

description: error occurred during processing of configuration file required service request. please review specific error details below , modify configuration file appropriately.

parser error message: error occurred loading configuration file: failed start monitoring changes 'c:\*web project location*\pages' because access denied.

source error:

[no relevant source lines]

source file: c:\*web project location*\pages\web.config

the web.config file located , should load under c:\*web project location*\web.config. there no other web.config files in project. have various folders defined in project different parts of application, folder usercontrols , masterpages. if open aspx file 1 of these sub folders, <%@ page %> directive says looking web.config file in directory instead of root of project.

please help! have been googling , searching stack answer no results. details can find related occurring when deploying iis. not doing that.

thank in advance help. appreciated.

i found answer question. web project impersonating identity.

from web.config:

<authentication mode="windows" /> <identity impersonate="true" username="domain\appuser" password="password" /> 

not sure why issue started occurring after machine name changed, able resolve problem adding impersonating identity workstation (win7) under control panel > users > manage users , adding full permissions project directory identity.

i found post led me better possible option:

http://bytes.com/topic/asp-net/answers/309339-failed-start-monitoring-file-changes

http://support.microsoft.com/default.aspx?scid=kb;en-us;824308

changing security policy of workstation should prevent future problems if other identities used. did not try option yet however, because have deadline meet.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -