简体   繁体   English

VS2010 - ASP.NET配置无法打开

[英]VS2010 - ASP.NET Configuration Won't Open

I have a standard ASP.NET project. 我有一个标准的ASP.NET项目。 I have created a login control on the page and now I would like to start adding the option to register as a member on my page. 我在页面上创建了一个登录控件,现在我想开始添加选项以在我的页面上注册为成员。

My problem is that when I click "Asp.net Configuration" in the solution explorer or under the Projects tab. 我的问题是,当我在解决方案资源管理器中或“项目”选项卡下单击“Asp.net配置”时。 Nothing opens up. 什么都没打开。

I have made sure that my project is not running, the configuration window just won't open. 我确保我的项目没有运行,配置窗口就不会打开。

SOLVED! 解决了! I had exactly the same problem, Firefox was my default browser, after I reset Internet Explorer as the default browser, it worked! 我有完全相同的问题,Firefox是我的默认浏览器,在我将Internet Explorer重置为默认浏览器后,它工作正常! The configuration page is (for some silly reason) a web page, and perhaps it only jives with IE. 配置页面是(出于一些愚蠢的原因)一个网页,也许它只与IE一起生日。

I had the same problem, but I didn't want to keep switching from Firefox to IE to solve the issue. 我有同样的问题,但我不想继续从Firefox切换到IE来解决问题。 Digging a bit deeper, it seems the provided URL is incomplete. 深入挖掘,似乎提供的URL不完整。 You need to use the following template: 您需要使用以下模板:

http://localhost:<port>/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=<projectPath>&applicationUrl=/

Hope that helps. 希望有所帮助。

First check if you have an aspnetdb.mdf under the App_Data subfolder of that you previously set up the needed tables for the application services in another database. 首先检查您之前在另一个数据库中为应用程序服务设置所需表的App_Data子文件夹下是否有aspnetdb.mdf。

If you haven't got these then build the solution and navigate to the page which has the login control on it. 如果您还没有这些,那么构建解决方案并导航到具有登录控件的页面。 Normally ASP.NET will generate the needed database aspnetdb.mdf in the App_Data folder. 通常,ASP.NET将在App_Data文件夹中生成所需的数据库aspnetdb.mdf Once you have that database you should be able to use the configuration which starts a web application with which you can create your users and define the roles to which they belong. 拥有该数据库后,您应该能够使用启动Web应用程序的配置,您可以使用该配置创建用户并定义它们所属的角色。

Grz, Kris. 格兹,克里斯。

有时,如果未在VS编辑器上打开web.config文件,则不会显示ASP配置浏览器页面,因此请确保在VS编辑器中打开web.config,然后尝试访问配置。

I was having the same issue with a brand new ASP.NET project in Visual Studio 2012. 我在Visual Studio 2012中遇到了一个全新的ASP.NET项目同样的问题。

When trying to open Project --> ASP.NET Configuration from Visual Studio, it was saying: An error was encountered. Please return to the previous page and try again. 当试图从Visual Studio打开项目 - > ASP.NET配置时 ,它说: An error was encountered. Please return to the previous page and try again. An error was encountered. Please return to the previous page and try again.

The path to my application was: E:\\\\_Dev\\C#\\Site 我的应用程序的路径是: E:\\\\_Dev\\C#\\Site

I changed the Path to: E:\\\\_Dev\\Web\\Site and guess what? 我将路径更改为: E:\\\\_Dev\\Web\\Site并猜测是什么? It works . 它有效

So even the # from C# was causing an issue. 所以即使是来自C#的#也引起了一个问题。 This thing is very picky on special characters... 这件事对特殊人物非常挑剔......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM