Developer Tip: ASP.NET Configuration in Visual Studio 2010
I’ve just come across a strange issue in Visual Studio 2010, when trying to launch and access the ASP.NET Configuration tool (used for configuring security settings).
When I tried to access the site by selecting it from the Project menu, it would start the local web server on whatever port it chose, but wouldn’t open the page in my browser automatically. So I manually opened the link by right-clicking the icon for the web server in the system tray and choosing “Open in Web Browser”.
The result was a URL opened such as http://localhost:53764/asp.netwebadminfiles/ and this would cause an error “An error was encountered. Please return to the previous page and try again.”
After testing sites that use both the MySQL Connector/NET provider and the “standard” (?) SQL Server Membership Provider, and suffering the same issue, I tried running the tool from Visual Studio 2008 (on older, pre-upgrade versions of my websites), and found that the issue appears to be related to the full URL not being used when clicking that “Open in Web Browser” link.
The template to use for the URL is:
where xxxxxx is the port that has been used by the web server and path-to-project-file is exactly that… for example:
I hope this helps anyone else having this same issue - if you found anything else that solved it (particularly a more permanent solution!) please let us all know.