Link to home
Start Free TrialLog in
Avatar of AxeonTech

asked on

Cannot open Companyweb - Server Error in '/' Application - runtime error Access is denied

I recently am having issues with opening companyweb on my Server 2008 pc.  it was working fine until this morning and now i receive this error:

Server Error in '/' Application.

Access 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.Runtime.InteropServices.COMException: Access is denied.

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:

[COMException (0x80070005): Access is denied.
   System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +557
   System.DirectoryServices.DirectoryEntry.Bind() +44
   System.DirectoryServices.DirectoryEntry.get_IsContainer() +42
   System.DirectoryServices.ChildEnumerator..ctor(DirectoryEntry container) +36
   System.DirectoryServices.DirectoryEntries.GetEnumerator() +36
   Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.System.Web.IHttpModule.Init(HttpApplication app) +699
   System.Web.HttpApplication.InitModulesCommon() +124
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1162
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +312
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +133
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +196


Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4205
Avatar of mattibutt
Flag of United States of America image

have you access using different username try to give permission in nt security from website folder properties allow everyone and see
Are all SharePoint services running on your server?  Did you recently install any updates (SP2?)
Avatar of AxeonTech


All Sharepoint Services are running and I did not install any updates recently, unless the server did it overnight on its own.  Every user account has this issue, it does not matter if your a standard user or administrator, it wont open for anyone.  
can you try to add another test application and see what happens
I would need some help in running a test application because I have not set one up before.  
alright if you have never setup then i would say do you know how to use mssql server? if not then post back i asked you something a bit earlier did you allowed diretory access to everyone?
if you go in c drive then inetpub folder right click on it and then properties and security give permission to everyone and then see what happens
I am not completely familiar with mssql setup.  But I did what you wanted me to try and gave "everyone" full control to the inetpub folder, and I am still getting the same error.  
you know if you go in sbs console and then select one user properties allow him to access company web then try to connect using him
I just tried granting company web access to a user, and then tried accessing it as the user and still received the same error.  I even created a brand new user with company web access and still got the same error.  
are you sure you havent installed any updates
can you run comapnyweb inside the server or its not running there either sql server is running
do you notice any errors related to this in the event log?
check security events log as well
no, i can not run companyweb even from the server.  I checked "Installed Updates" under Programs and Features and there was nothing listed since 8-18-10, which this issue just started today, and yes sql server is running.  
have you changed password for any admin account or any account which are running services
have you checked the event log? it might be another issue preventing access, such as disk is low in space
Ok, when I try to access companyweb i get this error under Application in the Event Viewer with Source ASP.NET 2.0.50727.0 and Event ID 1309:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 9/8/2010 1:58:25 PM
Event time (UTC): 9/8/2010 8:58:25 PM
Event ID: 32cf7d131b7d4c87a3533fbe62999b83
Event sequence: 7
Event occurrence: 6
Event detail code: 0
Application information:
    Application domain: /LM/W3SVC/594812419/ROOT-1-129284524798368802
    Trust level: WSS_Minimal
    Application Virtual Path: /
    Application Path: C:\Program Files\Windows Small Business Server\Bin\WebApp\InternalWebSite\
    Machine name: KEYSTONE
Process information:
    Process ID: 4376
    Process name: w3wp.exe
Exception information:
    Exception type: COMException
    Exception message: Access is denied.
Request information:
    Request URL: http://companyweb/ 
    Request path: /
    User host address:
    Is authenticated: False
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
    Thread ID: 9
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
   at System.DirectoryServices.DirectoryEntry.Bind()
   at System.DirectoryServices.DirectoryEntry.get_IsContainer()
   at System.DirectoryServices.DirectoryEntries.ChildEnumerator..ctor(DirectoryEntry container)
   at System.DirectoryServices.DirectoryEntries.GetEnumerator()
   at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.System.Web.IHttpModule.Init(HttpApplication app)
   at System.Web.HttpApplication.InitModulesCommon()
   at System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers)
   at System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context)
   at System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context)
   at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
Custom event details:
this is what i said nt authority account is not getting security pass try to run the service with your admin account and see what happen
Avatar of mattibutt
Flag of United States of America image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
how would I change the service to use a different account or give NT AUTHORITY access?