ASP.NET网站管理工具未知错误ASP.NET 4 VS 2010 [英] ASP.NET Web Site Administration Tool unkown Error ASP.NET 4 VS 2010

查看:71
本文介绍了ASP.NET网站管理工具未知错误ASP.NET 4 VS 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在具有完整sql server 2008 r2的计算机上遵循 MVCMusic 教程 和完整的Visual Studio Professional,在 ASP.NET 4.0 中,当我进入设置会员资格的页面(第66页附近)时,Web管理工具将无法正常工作,出现以下错误:

I was following the MVCMusic tutorial with an machine with full sql server 2008 r2 and full visual studio professional, in ASP.NET 4.0 and when I got to the page where it sets up membership (near page 66) the Web administration tool wont work, i got the following error:

遇到错误.请返回上一页,然后重试.

An error was encountered. Please return to the previous page and try again.

我的网络配置是这样的:

my web config is like this:

<connectionStrings>
        <clear />
        <add name="MvcMusicStoreCN" connectionString="Data Source=.;Initial Catalog=MvcMusicStore;Integrated Security=True" providerName="System.Data.SqlClient" />
        <add name="MvcMusicStoreEntities" connectionString="metadata=res://*/Models.Store.csdl|res://*/Models.Store.ssdl|res://*/Models.Store.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=.;Initial Catalog=MvcMusicStore;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
    </connectionStrings>

<system.web>
<membership defaultProvider="AspNetSqlMembershipProvider">
            <providers>
                <clear />
                <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" 
                     connectionStringName="MvcMusicStoreCN" enablePasswordRetrieval="false" 
                     enablePasswordReset="true" requiresQuestionAndAnswer="true" requiresUniqueEmail="false" 
                     maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" 
                     passwordAttemptWindow="10" applicationName="/" passwordFormat="Hashed"  />
            </providers>
        </membership>
        <profile>
            <providers>
                <clear />
                <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" 
                     connectionStringName="MvcMusicStoreCN" applicationName="/" />
            </providers>
        </profile>
        <roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">
            <providers>
                <clear />
                <add connectionStringName="MvcMusicStoreCN" applicationName="/"
                  name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" />
                <add applicationName="/" name="AspNetWindowsTokenRoleProvider"
                  type="System.Web.Security.WindowsTokenRoleProvider" />
            </providers>
        </roleManager>
        <customErrors mode="Off">
        </customErrors>
</system.web>

我已经运行

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regsql.exe

可执行文件并将表成功添加到我的MvcMusicStore数据库中,从 MY 应用程序(MVCMusicStore)更改了web.config,并尝试运行ASP.NET配置快捷方式,并得到了错误. 我的默认浏览器是firefox,当我单击快捷方式时,浏览器甚至都无法打开页面,只有当我右键单击任务栏图标并选择在Web浏览器中打开时.

executable and added the tables to my MvcMusicStore database sucessfully, changed the web.config from MY application (MVCMusicStore), and tryed running the ASP.NET Configuration shortcut, and got the error. My Default Browser is firefox, and when I click the shortcut the browser doesn't even open the page, only when I right click on the tray icon and choose open in web browser.

推荐答案

我已经解决了,我进入了另一个项目(VS 2010不允许我更改MVC项目中的默认浏览器),更改了默认浏览器,回到MVC项目,并尝试再次打开配置,它成功了. 看起来该配置不允许使用Firefox. 还是谢谢拉吉.

I've solved it, I entered another project (VS 2010 doesn't let me change the default browser in an MVC project) changed the default browser, changed back to the MVC project and tryed opening the configuration again, and it worked. Looks like the configuration doesn't allow firefox. Thanks Anyway Raj.

这篇关于ASP.NET网站管理工具未知错误ASP.NET 4 VS 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆