I have my first ASP.Net app that I am attempting to roll out to our server so users can access this application. The system works find on my local machine. However it does not work when I access it from the server.
The piece that is not working is the code that refers to Active Directory.
The first errors that I get are when I actually build the solution. My solution consists of the web app and a deploy package. The deploy package has the follow pieces to it:[tt]
File System on Target Machine
Web Application Folder [Folder icon]
Bin [type: folder]
Content File from DubRequest (active) [type: output]
Primary output from DubRequest (active) [type: output]
[/tt]
When I build the solution I get 2 build errors.[tt]
1. 'activeds.tbl' should be excluded because is source file 'C:\WINDOWS'System32\activeds.tbl' is under windows system file protection.
2. (low priority) This setup does not contain the .Net framework which must be installed on the target machine by running dotnetfix.exe before this setup will install. you can find dotnetfix.exe on the Visual Studio .Net 'Windows Component Update' media. dotnetfix.exe can be redistributed with your setup.
[/tt]
I install the web app on the server with no errors. Then when I go to the website from a remote machine I will get the following error when I reach the code referencing Active Directory.
[tt]Server Error in '/DubRequest_Test' Application.
-----------------------------------------------------------
Exception from HRESULT: 0x8000500C.
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: Exception from HRESULT: 0x8000500C.
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 (0x8000500c): Exception from HRESULT: 0x8000500C.]
ActiveDs.IADsUser.Groups() +0
DubRequest.WebForm1.Page_Load(Object sender, EventArgs e) +592
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724
-----------------------------------------------------------Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288
[/tt]
Everything runs fine from the local machine under my account. Any ideas why? I searched google for the error message above, but couldn't find anything helpful to my situation.
Thanks for your time
Jason Meckley
Database Analyst
WITF
The piece that is not working is the code that refers to Active Directory.
The first errors that I get are when I actually build the solution. My solution consists of the web app and a deploy package. The deploy package has the follow pieces to it:[tt]
File System on Target Machine
Web Application Folder [Folder icon]
Bin [type: folder]
Content File from DubRequest (active) [type: output]
Primary output from DubRequest (active) [type: output]
[/tt]
When I build the solution I get 2 build errors.[tt]
1. 'activeds.tbl' should be excluded because is source file 'C:\WINDOWS'System32\activeds.tbl' is under windows system file protection.
2. (low priority) This setup does not contain the .Net framework which must be installed on the target machine by running dotnetfix.exe before this setup will install. you can find dotnetfix.exe on the Visual Studio .Net 'Windows Component Update' media. dotnetfix.exe can be redistributed with your setup.
[/tt]
I install the web app on the server with no errors. Then when I go to the website from a remote machine I will get the following error when I reach the code referencing Active Directory.
[tt]Server Error in '/DubRequest_Test' Application.
-----------------------------------------------------------
Exception from HRESULT: 0x8000500C.
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: Exception from HRESULT: 0x8000500C.
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 (0x8000500c): Exception from HRESULT: 0x8000500C.]
ActiveDs.IADsUser.Groups() +0
DubRequest.WebForm1.Page_Load(Object sender, EventArgs e) +592
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +29
System.Web.UI.Page.ProcessRequestMain() +724
-----------------------------------------------------------Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288
[/tt]
Everything runs fine from the local machine under my account. Any ideas why? I searched google for the error message above, but couldn't find anything helpful to my situation.
Thanks for your time
Jason Meckley
Database Analyst
WITF