khaivq:I have been able installed WebAdminTool for Production Servers using the following steps:
Create a virtual directory ASP.NETWebAdminFiles in IIS that point to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles
Open properties windows of the new virtual directory, make sure that it is configured to run with ASP.NET 2.0, and in Security tab, uncheck Anonymous Access, check Integrated Windows Authentication.
After that, you will be able to connect to WebAdminTools using the following syntax
http://localhost/ASP.NETWebAdminFiles/default.aspx?applicationPhysicalPath=XXX&applicationUrl=/YYY
in my case, it is:
http://localhost/ASP.NETWebAdminFiles/default.aspx?applicationPhysicalPath=D:\Tasks\Libranyon\Photonyon\&applicationUrl=/Photonyon
Although I don't recommend to do it, if you want to access WebAdminTool from other computer, open WebAdminPage.cs from (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ASP.NETWebAdminFiles\App_Code) and comment the following code block
if (!application.Context.Request.IsLocal) {
SecurityException securityException = new SecurityException((string)HttpContext.GetGlobalResourceObject("GlobalResources", "WebAdmin_ConfigurationIsLocalOnly"));
WebAdminPage.SetCurrentException(application.Context, securityException);
application.Server.Transfer("~/error.aspx");
}
WebAdminTool still be protected by Intergrated Windows Authentication, so you still some have some defense here.
Hi khaivq,
Your post on http://forums.asp.net/p/932674/1155428.aspx is very useful. I got it working on a development machine (and also a virtual machine). However, when I transferred it to a production machine, I keep getting the message "This tool cannot be remotely accessed.". Very frustating! I have checked that both machines have the same setup:
1. Operating system (Windows 2000 Server SP4)
2. .NET version (2.0)
3. Directory structure: web application is installed in E:\BusinessReporting, Website Administration Tool website is in E:\BusinessReporting\ASP.NETWebAdminFiles.
4. Virtual directory set up for E:\BusinessReporting\ASP.NETWebAdminFiles, using ASP.NET 2.0, Directory Security set to Integrated Windows Authentication.
5. Link to the WSAT:
Response.Redirect("http://" & Server.MachineName() & "/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=E:\BusinessReporting\&applicationUrl=/BusinessReporting")
I wasn't sure about whether Integrated Windows Authentication was working on the development and production machines but for both machines, from my workstation:
User.Identity.AuthenticationType = Negotiate
User.Identity.IsAuthenticated = True
The impersonated account is an Administrator so there shouldn't be any permissions issue.
I think that if I reinstall everything on the production server, it will probably work but I'm hoping to avoid this.
Is there something I've missed?
Thanks in advance for any help.
Kui Meng Ng.