I am doing a dotnetnuke tutorial.
I gave full access to the local ASPNET account. I gave full access t o the dotnetnuke folder and the file LogConfig.xml.resources. I also gave ASP.nET access to the C drive. I tried deleting the file so DNN could recreate it. None of these worked.
I am refereng to the DNN hungle ttorial if that helps:
I was able to get to the
site but when I logged in a as a host ( as that’s what the instructions said this is the error message I get:
Server Error in '/dotnetnuke' Application.
--------------------------------------------------------------------------------
Access to the path "C:\dotnetnuke\Portals\_default\Logs\LogConfig\LogConfig.xml.resources" 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.UnauthorizedAccessException: Access to the path "C:\dotnetnuke\Portals\_default\Logs\LogConfig\LogConfig.xml.resources" is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET write access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
Line 879: If File.Exists(strConfigDoc) = False Then
Line 880: Dim TemplateLogConfig As String = HttpRuntime.AppDomainAppPath + "Portals\_default\Logs\LogConfig\LogConfigTemplate.xml.resources"
Line 881: File.Copy(TemplateLogConfig, strConfigDoc)
Line 882: File.SetAttributes(strConfigDoc, FileAttributes.Normal)
Line 883: End If
Source File: C:\dotnetnuke\Providers\LoggingProviders\XMLLoggingProvider\XMLLoggingProvider.vb Line: 881
Stack Trace:
[UnauthorizedAccessException: Access to the path "C:\dotnetnuke\Portals\_default\Logs\LogConfig\LogConfig.xml.resources" is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) +345
System.IO.File.Copy(String sourceFileName, String destFileName) +7
DotNetNuke.Logging.XMLLoggingProvider.GetConfigDoc() in C:\dotnetnuke\Providers\LoggingProviders\XMLLoggingProvider\XMLLoggingProvider.vb:881
DotNetNuke.Logging.XMLLoggingProvider..ctor() in C:\dotnetnuke\Providers\LoggingProviders\XMLLoggingProvider\XMLLoggingProvider.vb:25
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.Reflection.RuntimeConstructorInfo.InternalInvoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault) +0
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +500
System.Reflection.ConstructorInfo.Invoke(Object[] parameters) +14
DotNetNuke.Logging.LoggingProvider.Instance() in C:\dotnetnuke\components\Logging\LoggingProvider.vb:83
DotNetNuke.Logging.LogController.AddLog(Object objLogInfo, String LogType, Int32 PortalID, String PortalName, Int32 UserID, String UserName, Boolean BypassBuffering) in C:\dotnetnuke\components\Logging\PortalLog.vb:466
DotNetNuke.Logging.ExceptionLogController.AddLog(BasePortalException objBasePortalException) in C:\dotnetnuke\components\Logging\ExceptionLog.vb:55
DotNetNuke.Exceptions.ProcessPageLoadException(Exception exc, String URL) in C:\dotnetnuke\components\Exceptions\Exceptions.vb:214
DotNetNuke.BasePage.Page_Error(Object Source, EventArgs e) in C:\dotnetnuke\components\BasePage.vb:41
System.Web.UI.TemplateControl.OnError(EventArgs e) +109
System.Web.UI.Page.HandleError(Exception e) +68
System.Web.UI.Page.ProcessRequestMain() +2100
System.Web.UI.Page.ProcessRequest() +218
System.Web.UI.Page.ProcessRequest(HttpContext context) +18
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87