Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Website Administrator Tool in VS 2013

Tags:

asp.net

Is there a short cut method to open website administrator in visual studio 2013, other than the method specified below

http://blogs.msdn.com/b/webdev/archive/2013/08/19/asp-net-web-configuration-tool-missing-in-visual-studio-2013.aspx

like image 429
Jatin Avatar asked Nov 05 '13 21:11

Jatin


People also ask

How do I access the ASP Net website administration tool?

ASP.NET Web Site Administration Tool can be accessed by clicking ASP.NET Configuration from the Website menu or Project menu in Visual Studio 2010 Professional, or by clicking on the ASP.NET Configuration icon in the Solution Explorer window.

Can I use .NET core in Visual Studio 2013?

Yes, it's possible to build against the . NET Core 5 contracts in Visual Studio 2013 by creating a Portable Class Library that targets . NET Framework 4.5 and Windows 8.

What is the .NET framework for Visual Studio 2013?

NET Framework. Visual Studio 2013 provides enhanced support for prototyping, designing, and modeling and improved testing tools that let developers build Windows, web, and cloud applications.


2 Answers

  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.NET\Framework\v4.0.30319\

    %systemroot% usually refers to C:\Windows

  2. On VS2013+ \ Solution Explorer Window, do right click on your solution name; go over Add, on expanded menu click on Existing Web Site... item.

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

  4. In added web site, in folder App_Code, find and open WebAdminPage.cs then:

    4.1. find class WebAdminPage , find method OpenWebConfiguration that has 3 parameters, replace last line of code with this:

    return WebConfigurationManager.OpenMappedWebConfiguration(fileMap, path, "localhost");
    

    you can use domain name or IP Address instead of localhost

    4.2. find class WebAdminModule, find method SetSessionVariables, find first if block:

    if (application.Context.Request != null) { ... }
    

    inside if block, replace two lines of codes with these:

    queryStringAppPath = "/";
    queryStringApplicationPhysicalPath = @"D:\PHYSICAL\PATH\OF\YOUR\MAIN\WEB\APPLICATION\";
    

    4.3. Make sure provided physical path ends with a BACKSLASH.

    4.4. [NEW] if you going to run this tool on localhost, in class WebAdminModule, find method OnEnter then find first if block:

    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.NETWebAdminFiles website as StartUp Project then run it.

  5. It works, I use it for my applications over Intranet and web.

Good luck.

like image 145
Perseus Avatar answered Sep 19 '22 11:09

Perseus


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.

like image 31
Jatin Avatar answered Sep 20 '22 11:09

Jatin