ASP.NET学习社区

首页 » ASP.NET学习区 » 自由问答 » ASP.NET网站的运行环境?
yy9445836 - 2008-5-18 15:19:00
大家好,我是一个新手,我想问一下,ASP.NET的网站 运行的环境 都要具备哪些?
我的电脑是 windowsXP的。 IIS5.1  也安装了。Microsoft .NET Framework 2.0 配置 也安装了。还需要什么呢?
为什么我从 站长站 下了个 .NET的网站源码程序,放在本机上,就打不开呢。..

 附件: 您所在的用户组无法下载或查看附件
 附件: 您所在的用户组无法下载或查看附件
 附件: 您所在的用户组无法下载或查看附件
 附件: 您所在的用户组无法下载或查看附件
这是我IIS里 的。 给大家看下,帮忙解决一下。..
另外SQL server 所有服务都启动了。
但用IIS浏览网站时,出现

 附件: 您所在的用户组无法下载或查看附件
这是怎么回事呢。...
我记得我安装SQL的时候,没有设置SA帐号和密码,都是本地的。
我现在连在本机想看看ASP.NET的站到底是怎么回事 都不行,别说学ASP.NET了。...
拜托学长们给点提示吧.

附件: Web.config.rar
suresy - 2008-5-18 15:37:00
没有分配IP地址,不知道是否和这个有关系
另外如果SQL不需要密码验证,选Windows用户登陆,不然就要到帐户里设置SA帐号和密码
hawking3000 - 2008-5-18 16:06:00
从截图看到的设置是没问题的,去你的web.config看一下连接字符串是否正确。
aspx1 - 2008-5-18 17:06:00


引用:
原帖由 hawking3000 于 2008-5-18 16:06:00 发表
从截图看到的设置是没问题的,去你的web.config看一下连接字符串是否正确。


的确这样。截图看,你的asp.net配置是正确的,而且已经正确运行了。 只是没有能够正确连接sql server,改一下数据库连接字符串把
yy9445836 - 2008-5-18 20:57:00
可是我不知道怎么改  Web.config里的 数据库连接字符串啊。..
麻烦校长和各位前辈们给我看看好吗?
我已经上传附件了。再1楼,我发的帖子里,最后面有下载.
aspx1 - 2008-5-18 21:42:00
Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=aspx1;Data Source=why\sqlexpress
类似这样的,把 aspx1 改成你的数据库的名称,why\sqlexpress改成你sql数据库服务器的名称
yy9445836 - 2008-5-18 21:59:00
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

在建立与服务器的连接时出错。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.SqlClient.SqlException: 在建立与服务器的连接时出错。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 

堆栈跟踪:


[SqlException (0x80131904): 在建立与服务器的连接时出错。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)]
  System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +734915
  System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
  System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner, Boolean& failoverDemandDone, String host, String failoverPartner, String protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean aliasLookup) +820
  System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +628
  System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170
  System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359
  System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
  System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
  System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
  System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496
  System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
  System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
  System.Data.SqlClient.SqlConnection.Open() +111
  NHibernate.Connection.DriverConnectionProvider.GetConnection() +97
  NHibernate.Impl.SessionFactoryImpl.OpenConnection() +60

[ADOException: cannot open connection]
  AspxNuke.AOP.ProxyInterceptor.Intercept(IInvocation invocation, Object[] args) in E:\downCode\aspxnuke\Framework\AOP\ProxyInterceptor.cs:164
  CProxyTypeAspxNuke_Portal_NHibernateDALChannelNHibernateDAL0.GetObject(Object id) +109
  AspxNuke.Portal.WebUI.Pages.Default.GetChannel(Int32 channelId) in E:\downCode\aspxnuke\Portal\WebUI\Pages\Default.aspx.cs:48
  AspxNuke.Portal.WebUI.Pages.Default.Page_PreInit(Object sender, EventArgs e) in E:\downCode\aspxnuke\Portal\WebUI\Pages\Default.aspx.cs:31
  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
  System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
  System.Web.UI.Page.OnPreInit(EventArgs e) +2009820
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +521




--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42



又出现这个了。`~~~
suresy - 2008-5-18 23:29:00
检查一下有无设置SQL打开远程连接,到这里设置:

 附件: 您所在的用户组无法下载或查看附件
darko2o8 - 2008-5-19 15:04:00
WINDOWXS 登陆:
data source=服务器名称;initial catalog=数据库名;integrated security=sspi;persist security info=false

persist security info=false实现windows登陆的设置
yy9445836 - 2008-5-19 21:31:00
又又又出现问题了。
数据库也附加了。Web.config里的也改了。
Data Source=(local);Initial Catalog=CMS;User ID=MY-TOMATO\ASPNET;PWD=kissme;
可就是出现下面~~~~~~~!>???????????
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

已成功与服务器建立连接,但是在登录过程中发生错误。 (provider: 共享内存提供程序, error: 0 - 管道的另一端上无任何进程。)
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.Data.SqlClient.SqlException: 已成功与服务器建立连接,但是在登录过程中发生错误。 (provider: 共享内存提供程序, error: 0 - 管道的另一端上无任何进程。)

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 

堆栈跟踪:


[SqlException (0x80131904): 已成功与服务器建立连接,但是在登录过程中发生错误。 (provider: 共享内存提供程序, error: 0 - 管道的另一端上无任何进程。)]
  System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +734915
  System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
  System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error) +556
  System.Data.SqlClient.TdsParserStateObject.ReadSni(DbAsyncResult asyncResult, TdsParserStateObject stateObj) +164
  System.Data.SqlClient.TdsParserStateObject.ReadPacket(Int32 bytesExpected) +34
  System.Data.SqlClient.TdsParserStateObject.ReadBuffer() +30
  System.Data.SqlClient.TdsParserStateObject.ReadByte() +17
  System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +59
  System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33
  System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +628
  System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170
  System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +359
  System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
  System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
  System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
  System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496
  System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
  System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
  System.Data.SqlClient.SqlConnection.Open() +111
  NHibernate.Connection.DriverConnectionProvider.GetConnection() +97
  NHibernate.Impl.SessionFactoryImpl.OpenConnection() +60

[ADOException: cannot open connection]
  AspxNuke.AOP.ProxyInterceptor.Intercept(IInvocation invocation, Object[] args) in E:\downCode\aspxnuke\Framework\AOP\ProxyInterceptor.cs:164
  CProxyTypeAspxNuke_Portal_NHibernateDALChannelNHibernateDAL0.GetObject(Object id) +109
  AspxNuke.Portal.WebUI.Pages.Default.GetChannel(Int32 channelId) in E:\downCode\aspxnuke\Portal\WebUI\Pages\Default.aspx.cs:48
  AspxNuke.Portal.WebUI.Pages.Default.Page_PreInit(Object sender, EventArgs e) in E:\downCode\aspxnuke\Portal\WebUI\Pages\Default.aspx.cs:31
  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
  System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
  System.Web.UI.Page.OnPreInit(EventArgs e) +2009820
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +521




--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42
yuanfang525 - 2008-5-22 14:26:00
程序是SQL的数据库,得配置好数据库才能运行,可以下载个acc数据的程序试试。
1
查看完整版本: ASP.NET网站的运行环境?