Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2013 and ASP.NET Web Configuration Tool

I'm using Visual Studio 2013 and as you probably know there is no ASP.NET Web Configuration Tool. I wanted as always make fast roles etc. I tried enable it using this article: http://blogs.msdn.com/b/webdev/archive/2013/08/19/asp-net-web-configuration-tool-missing-in-visual-studio-2013.aspx?PageIndex=2#comments . But I'm getting "Invalid application path" error. Any solutions to this error or workarounds?

like image 839
Placek Avatar asked Dec 12 '13 11:12

Placek


People also ask

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.

Where is web config file in Visual Studio?

config file is located in the %SystemRoot%\Microsoft.NET\Framework\%VersionNumber%\CONFIG\ folder. The default settings that are contained in the Machine.


1 Answers

On the console, copy and paste exactly what is written here:

"C:\Program Files\IIS Express\iisexpress.exe" /path:c:\windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETWebAdminFiles /vpath:"/asp.netwebadminfiles" /port:8089 /clr:4.0 /ntlm 

It doesn't matter if you open cmd.exe with administrator privileges or not, just copy paste the above code on the console and don't exit with "q" until you're done!

Then open a browser window and write this on the address bar:

http://localhost:8089/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=[Exact_Project_Path]\&applicationUrl=/ 

Be sure to copy & paste your project path from windows explorer as it is, it will work ;)

I hope Microsoft adds this back to the next update of VS2013! It's not convenient for anybody to copy & paste codes around just to handle membership like we did in the past...

Hope that helps!

IMPORTANT EDIT: I am sorry, I just realized that it matters if you start the console with administrator privileges. Don't do that. If console has administrator rights, the Web Configuration Tool shows this error on the Security page:

There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store. The following message may help in diagnosing the problem: Access to the path 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\1c3fef5c\2180c7f9\hash' is denied.

like image 70
ilter Avatar answered Oct 11 '22 18:10

ilter