Solved

Remote Web Access is not working

Posted on 2013-05-15
4
2,997 Views
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

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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 -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

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 -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I've attached a screen shot of the IIS7 Manager and SBS console
5-16-2013-00-33-39.jpg
5-16-2013-00-32-20.jpg
0
Comment
Question by:tsgroup1
  • 2
  • 2
4 Comments
 
LVL 25

Accepted Solution

by:
Tony1044 earned 500 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)
0
 

Author Comment

by:tsgroup1
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?
0
 
LVL 25

Assisted Solution

by:Tony1044
Tony1044 earned 500 total points
ID: 39179744
Congratulations!

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

Author Comment

by:tsgroup1
ID: 39179943
Did and it did.  Thank you.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

The articles for turning off the Client firewall policy on the internet are for SBS 2008 and don't really help for SBS 2011. They actually moved the Client firewall policy. In 2011, the client firewall policy has moved to the SBS computers conta…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now