VS2005:Asp.net Web Site Administration Tool
来源:互联网 发布:paxos算法 编辑:程序博客网 时间:2024/05/16 10:22
详细介绍参考《ASP.NET 2.0中的登陆控件简介 》
其中文中提及到的Asp.net Web Site Administration Tool中Security需要一些相关的设置才可以应用,具体设置方法如下:
(Microsoft MSDN:http://forums.microsoft.com/msdn/showpost.aspx?postid=81990&siteid=1&PageID=0
)
)
在你的SQL服务器上建立ASP.NET 2.0的应用程序支持数据,需要建立一些表,缺省是放在aspnetdb的数据库里面。而安装时并没有生成aspnetdb数据库所以出错。
首先,运行 aspnet_regsql(C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/aspnet_regsql.exe) 来安装membership所要建立的数据库。
然后,修改机器上web.config文件(C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/CONFIG/web.config)或者是工程的web.config文件。我的工程下的web.config文件如下:
要注意<connectionStrings> ... </connectionStrings>这个节
要注意<connectionStrings> ... </connectionStrings>这个节
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
/Windows/Microsoft.Net/Framework/v2.x/Config
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>
<connectionStrings>
<remove name="LocalSqlServer" />
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
/Windows/Microsoft.Net/Framework/v2.x/Config
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings/>
<connectionStrings>
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=localhost;Initial Catalog=aspnetdb;Integrated Security=True"
providerName="System.Data.SqlClient" />
providerName="System.Data.SqlClient" />
<add name="NorthwindConnectionString" connectionString="Data Source=.;Initial Catalog=Northwind;Persist Security Info=True;User ID=sa;Password=vivian"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true"/>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>
- VS2005:Asp.net Web Site Administration Tool
- asp.net网站管理工具 的 地址(Web Site Administration Tool )
- vs2012 打开ASP.net Web Site Administration Tool
- 如何让你发布的项目拥有VS2005 的Web Site Administration Tool
- .net tool web site
- VS2005的问题:如果Visual Web Developer Web Server不是安装在C:, Web Site Administration tool的问题
- HOW TO Analyze ASP.NET Web Application Performance by Using the Performance Administration Tool
- 使用asp.net website administration tool时报错的原因
- 在没有安装Visual Studio 2005的计算机上面使用Web Site Administration Tool
- ASP.NET编程之Web Site基础
- Why does the asp.net website administration tool give timeout message (mysql db)?
- VS2005 不能新建 ASP.net WEB应用程序
- 遇到 asp.net 2.0 web site 站点发布问题(一)
- Host an ASP.NET Site Web in IIS7 with Postgresql
- VS2010 asp.net web site项目使用log4net
- 如何解决看不到Tomcat Web Server Administration Tool 的页面
- 安装实用工具Web Server Administration Tool(Tomcat5.5)
- DOT NET Web Site Favorite
- 《让程序员成为正常人》(笔记)
- WebPart
- DEV C++中调出MSDN作为帮助
- 三个范式
- VS2005:PasswordRecovery
- VS2005:Asp.net Web Site Administration Tool
- 如何将float转换为string
- Linux驱动入门
- VS2005:GridView
- VS2005+SQL2005
- 选择排序(selection sort)
- Pivot Table的今生前世(二)
- 网络是最多创新的地方也是最没有创新的地方-邀请
- 指针与引用