Remote Web Access is not working

Posted on 2013-05-15
Medium Priority
Last Modified: 2013-12-02
After a migration from 2003 SBS to 2011, I can not browse most of my sites.  The only sites I can see are http://connect and https://remote.domain.com/owa

Viewing https://remote.domain.com/remote from the server I see:

Server Error in '/Remote' Application.

Access to the path 'C:\Program Files\Windows Small Business Server\Logs\WebApp' 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:\Program Files\Windows Small Business Server\Logs\WebApp' 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 and IIS 7, and the configured application pool identity on IIS 7.5) 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 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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:

[UnauthorizedAccessException: Access to the path 'C:\Program Files\Windows Small Business Server\Logs\WebApp' is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +12898791
   System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj) +1594
   System.IO.Directory.CreateDirectory(String path) +311
   Microsoft.WindowsServerSolutions.Diagnostics.Logging.TraceListeners.RotatingFileStreamFactory.CreateInitialFileStream() +55
   Microsoft.WindowsServerSolutions.Diagnostics.Logging.TraceListeners.RotatingLogTraceListener.UpdateWriter(String message) +100
   Microsoft.WindowsServerSolutions.Diagnostics.Logging.TraceListeners.LogTraceListener.Write(String message) +74
   Microsoft.WindowsServerSolutions.Diagnostics.Logging.TraceListeners.LogTraceListener.TraceData(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, Object data) +195
   Microsoft.WindowsServerSolutions.Diagnostics.Logging.LogTraceSource.TraceData(TraceEventType eventType, Int32 id, LogEventInfo logEventInfo) +231
   Microsoft.WindowsServerSolutions.Diagnostics.Logging.LogOrchestrator.Write(LogEventInfo log) +511
   Microsoft.WindowsServerSolutions.Diagnostics.Logging.Log.Write(Object value, IEnumerable`1 categories, Int32 priority, Int32 eventId, TraceEventType severity, String description) +296
   Microsoft.WindowsServerSolutions.Diagnostics.Logging.Log.WriteInfo(Object value, String category) +47
   Microsoft.WindowsServerSolutions.Web.RemoteAccessSite.Global.Application_Start(Object sender, EventArgs e) +53

[HttpException (0x80004005): Access to the path 'C:\Program Files\Windows Small Business Server\Logs\WebApp' is denied.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +4055413
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375

[HttpException (0x80004005): Access to the path 'C:\Program Files\Windows Small Business Server\Logs\WebApp' is denied.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11698928
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4867637


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272


From any other computer I see:

Server Error in '/Remote' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

<!-- Web.Config Configuration File -->

        <customErrors mode="Off"/>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File -->

        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>

I've attached a screen shot of the IIS7 Manager and SBS console
Question by:tsgroup1
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 26

Accepted Solution

Tony J earned 2000 total points
ID: 39170747
From http://social.technet.microsoft.com/Forums/en-US/smallbusinessserver/thread/d86d0183-c1dc-4114-85c9-352e77e07071 :

Can you check the NTFS permissions on the "C:\Program Files\Windows Small Business Server\Logs\WebApp" folder? The issue could also be that it doesn't exist.

Permissions here are:

System: Full Control
Network Service: Modify (all except full control / special)
Domain Administrators: Full Control
Administrators: Full Control

The owner of the RemoteAccess.log in the folder is the Network Service account. Issues could also come from the website running under another user or something like that (which doesn't have permissions to write to the log file)

Author Comment

ID: 39179427
Sorry it has taken so long to respond.  My oldest just got his Doctor of Pharmacy at University of Wisconsin so I've been out of town.  

There is no folder in logs called WebApp.  There is one in Bin though.  

Should I uninstalled IIS7 and reinstall and if I do that, what is the affect on SBS2011?
LVL 26

Assisted Solution

by:Tony J
Tony J earned 2000 total points
ID: 39179744

No.. At this stage I'd just create the folder where it's asking.

Author Comment

ID: 39179943
Did and it did.  Thank you.

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question