Is there a short cut method to open website administrator in visual studio 2013, other than the method specified below
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
-
By Windows Explorer, copy folder ASP.NETWebAdminFiles and all its content to your solution folder (root folder of your WebApplications).
ASP.NETWebAdminFiles exists in %systemroot%Microsoft.NETFrameworkv4.0.30319
%systemroot% usually refers to C:Windows
- On VS2013+ Solution Explorer Window, do right click on your solution name; go over Add, on expanded menu click on Existing Web Site… item.
- On opened dialog, on left pane choose File System, on right pane browse to your solution folder and select ASP.NETWebAdminFiles then click on Open button.
-
In added web site, in folder App_Code, find and open WebAdminPage.cs then:
4.1. find class
WebAdminPage, find methodOpenWebConfigurationthat has 3 parameters, replace last line of code with this:return WebConfigurationManager.OpenMappedWebConfiguration(fileMap, path, "localhost");
you can use
domain nameorIP Addressinstead oflocalhost4.2. find class
WebAdminModule, find methodSetSessionVariables, find firstifblock:if (application.Context.Request != null) { ... }inside
ifblock, replace two lines of codes with these:queryStringAppPath = "/"; queryStringApplicationPhysicalPath = @"D:PHYSICALPATHOFYOURMAINWEBAPPLICATION";
4.3. Make sure provided physical path ends with a BACKSLASH.
4.4. [NEW] if you going to run this tool on
localhost, in classWebAdminModule, find methodOnEnterthen find firstifblock:if (!application.Context.Request.IsLocal) {...}make whole of block as commented text:
//if (!application.Context.Request.IsLocal) {...}4.5. On VS2013+ Solution Explorer Window, click on
ASP.NETWebAdminFiles, on Properties Window set Windows Authentication as Enabled then set Anonymous Authentication as Disabled.4.6. Set
ASP.NETWebAdminFileswebsite as StartUp Project then run it. - It works, I use it for my applications over Intranet and web.
Good luck.
Method 2
After a long wait, here is the replacement for the ASP.NET Website Administrator Tool:
Thinktecture.IdentityManager as a replacement for the ASP.NET WebSite Administration tool
Since then, ASP.NET has introduced ASP.NET Identity and community member Brock Allen created IdentityReboot with some significant improvements and extensions. Brock Allen and Dominick Baier have gone even further and created Thinktecture IdentityManager. It’s the beginnings of a nice bootstrapped replacement for the missing ASP.NET Website Administration Tool. It is nicely factored and supports both ASP.NET Identity and their alternative called MembershipReboot.
Hope this helps.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0