Exception App Block 4.1 with ASP.NET 3.5

Topics: Exception Handling Application Block
Oct 12, 2010 at 9:18 PM

Hi there,

Web application is developed on dev machine and migrated to staging and live servers. Its been working fine for last 6 months with no exceptions related to Enterprise Library : Exception application block.

When the application is under development machine it is at 'C:\Documents and Settings\xxx\My Documents\Visual Studio 2008\WebSites\xxx', when it is migrated to production server the path is w:\webpages\xxxx

Now below exception is being generated intermitten (occassionally) . Your help is appreciated in resolving this.

An unhandled exception occurred:
Message: The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyImpl, ExceptionPolicy]) failed: The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter, null]) failed: Access to the path 'C:\Documents and Settings\xxx\My Documents\Visual Studio 2008\WebSites\xxx' is denied. (Strategy type ConfiguredObjectStrategy, index 2) (Strategy type ConfiguredObjectStrategy, index 2)

 Stack Trace:
   at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.GetExceptionPolicy(Exception exception, String policyName, ExceptionPolicyFactory factory) in c:\Builds\EntLibV4\Latest\Source\Blocks\ExceptionHandling\Src\ExceptionHandling\ExceptionPolicy.cs:line 157
   at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception exceptionToHandle, String policyName, ExceptionPolicyFactory policyFactory) in c:\Builds\EntLibV4\Latest\Source\Blocks\ExceptionHandling\Src\ExceptionHandling\ExceptionPolicy.cs:line 63
   at Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicy.HandleException(Exception exceptionToHandle, String policyName) in c:\Builds\EntLibV4\Latest\Source\Blocks\ExceptionHandling\Src\ExceptionHandling\ExceptionPolicy.cs:line 54
   at UserSearch.Search() in w:\webpages\xxxx\Search.aspx.cs:line 903
   at UserSearch.btnSearch_Click(Object sender, EventArgs e) in w:\webpages\xxxx\Search.aspx.cs:line 237
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Oct 13, 2010 at 3:13 AM

Is it running under partial trust?  If yes, check the general and specific permissions needed by the Exception Handling and Logging Application Block here.

 

Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com