zoukankan      html  css  js  c++  java
  • 转:asp.net "Web Site Administration Tool "使用中遇到的问题

      今天学习asp.net2.0提供的membership功能,在vs2k5中 Website\ASP.NET configuration 菜单调出 “asp.net  Web Site Administration Tool "后,选择 Security 选项卡老是出错,结果在下面的网址找到了答案:
    http://forums.microsoft.com/msdn/showpost.aspx?postid=81990&siteid=1&PageID=0

           原来这个选项卡是要经过一翻设置才能使用的(我用sqlserver2k5 enterprise edition, express edition我就不知道了)。首先,运行 aspnet_regsql 来安装membership所要建立的数据库。然后,修改机器上web.config文件(C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config)或者是工程的web.config文件。我的工程下的web.config文件如下:
     

    <?xml version="1.0" encoding="utf-8"?>
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <connectionStrings>
      
    <remove name="LocalSqlServer" />
      
      
    <add name="LocalSqlServer" connectionString="Data Source=localhost;Initial Catalog=aspnetdb;Integrated Security=True"
       providerName
    ="System.Data.SqlClient" />
     
    </connectionStrings>
    <system.web>
            
    <compilation debug="true"/>
    </system.web>
    </configuration>

     要注意<connectionStrings> ... </connectionStrings>这个节

          如果你也遇到同样的问题,希望我篇文章能给你一点提示。

  • 相关阅读:
    Subsequence
    【模板】AC自动机(加强版)
    1563: hzwer的跳跳棋(hop)
    P2469 [SDOI2010]星际竞速
    P2746 [USACO5.3]校园网Network of Schools
    Blocks
    Training little cats
    Period
    UVA-3942 Remember the Word
    初学线段树(poj3264+poj2777)
  • 原文地址:https://www.cnblogs.com/bigguai/p/2526233.html
Copyright © 2011-2022 走看看