• 全部
  • VBS
  • .NET技术
  • VBA
  • VB网络编程
  • VB多媒体
  • VB数据库
  • VB控件
  • VB COM/DCOM
  • VB基础类
  • VB API
  • 问答

搬家后咋就不行了呢,.NET 500错误。!寻大神

三色堇i 2016-08-11 09:06:18
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" warningLevel="4" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" compilerOptions="/unsafe+" />
</compilers>
</system.codedom>

<appSettings>
<add key="jinbibili" value="100" /> <!--金币比例-->
<add key="IDRule" value="0" /> <!--用户ID-->
<add key="SERVERIP" value="183.131.*.*" /><!--游戏服务器IP-->
<add key="SERVERPORT" value="9183" /> <!--游戏服务器端口-->



</appSettings>

<connectionStrings>
<add name="TreasureDB" connectionString="Data Source=.; Initial Catalog=CXTreasureDB; User ID=sa; Password=*.; Pooling=false;Max Pool Size=150;Connect Timeout=500;" />
<add name="ServerInfoDB" connectionString="Data Source=.; Initial Catalog=CXServerInfoDB; User ID=sa; Password=/.; Pooling=false;Max Pool Size=150;Connect Timeout=500;" />
<add name="MessageDB" connectionString="Data Source=.; Initial Catalog=CXMessageDB; User ID=sa; Password=*.; Pooling=false;Max Pool Size=150;Connect Timeout=500;" />
<add name="GameUserDB" connectionString="Data Source=.; Initial Catalog=CXGameUserDB; User ID=sa; Password=*; Pooling=false;Max Pool Size=150;Connect Timeout=500;" />
<add name="CXAgentDB" connectionString="Data Source=.;Initial Catalog=CXAgentDB; User ID=sa; Password=*.; Pooling=false" />
</connectionStrings>

<system.web>
<!--
设置 compilation debug="true" 可将调试符号插入
已编译的页面中。但由于这会
影响性能,因此只在开发过程中将此值
设置为 true。
-->
<!--
设置允许远程HttpPost调用WebService
-->
<webServices>
<protocols>
<add name="HttpPost" />
</protocols>
</webServices>
<httpHandlers>
<add verb="POST" path="Magane/*.htm" type="AgentView.AgentRequest,AgentView" />
<add verb="GET" path="VCode.img" type="VCode.CreateVCode,VCode" />
<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
</httpHandlers>
<customErrors defaultRedirect="error.htm" mode="Off">
<error statusCode="404" redirect="404.htm" />
</customErrors>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
<!--
通过 <authentication> 节可以配置 ASP.NET 用来
识别进入用户的
安全身份验证模式。
-->
<authentication mode="Windows" />
<!--
如果在执行请求的过程中出现未处理的错误,
则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
开发人员通过该节可以配置
要显示的 html 错误页
以代替错误堆栈跟踪。

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<pages enableViewStateMac="false" enableEventValidation="false" viewStateEncryptionMode="Never" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<controls>
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</controls>
</pages>
<globalization requestEncoding="UTF-8" responseEncoding="UTF-8" />
<identity impersonate="true" />
</system.web>
<system.webServer>
<handlers>
<remove name="html_x64*" />
<remove name="ChartImageHandler" />
<add name="htm" path="*.htm" verb="*" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
<add name="Magane" verb="POST" path="Magane/*.htm" type="AgentView.AgentRequest,AgentView" />
<add name="vcode" verb="GET" path="VCode.img" type="VCode.CreateVCode,VCode" />
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="ajaxpro" verb="Default.aspx" path="Default.aspx" type="AjaxPro.AjaxHandlerFactory,AjaxPro.2"/>
</handlers>
<defaultDocument>
<files>
<remove value="index.html" />
<remove value="index.asp" />
<remove value="default.asp" />
<remove value="default.htm" />
<remove value="default.html" />
<remove value="index.htm" />
<remove value="default.php" />
<remove value="index.php" />
<remove value="index.aspx" />
<remove value="default.aspx" />
<add value="login.html" />
</files>
</defaultDocument>
<validation validateIntegratedModeConfiguration="false" />
<directoryBrowse enabled="true" />
<httpErrors>
<remove statusCode="500" subStatusCode="-1" />
<error statusCode="500" prefixLanguageFilePath="" path="/Magane/*.html" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>
<!--
modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll"
在 Internet 信息服务 7.0 下运行 ASP.NET AJAX 需要 system.webServer
节。对早期版本的 IIS 来说则不需要此节。
-->
</configuration>

我是IIS7 NET4.0!!就不知道咋回事搬家后登入不上去 页面http://houtai.7893997.cn/
...全文
1395 点赞 收藏 9
写回复
9 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
rock_333 2018-01-27
还是上百度一下吧
回复
报错那么明显了,在数据库里执行下Exec sp_helpserver看看,应该没你这个服务器链接了CXTreasureDBLink
回复
jthkl 2018-01-26
找不到链接了。
回复
看看这东西'CXTreasureDBLink'是否打开
回复
三色堇i 2016-08-11

[SqlException (0x80131904): 在 sys.servers 中找不到服务器 'CXTreasureDBLink'。请验证指定的服务器名称是否正确。如果需要,请执行存储过程 sp_addlinkedserver 以将服务器添加到 sys.servers。]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +392
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +815
System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4515
System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +61
System.Data.SqlClient.SqlDataReader.get_MetaData() +138
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6738869
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) +6741487
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +586
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +107
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +288
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +237
DBUtility.DBHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) +275
DBUtility.DBHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +257
DAL.CXServerInfoDB.AdminusersService.AdminLogin(Adminusers adminuser, String clientIP) +857
BLL.CXServerInfoDB.AdminusersManager.AdminLogin(Adminusers adminuser, List`1 newAdminComps, List`1 cMarkList, String clientIP) +264
AgentView.AgentRequest.Page_Load() +5216
AgentView.MyHttpHandler.ProcessRequest(HttpContext context) +344
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
回复
三色堇i 2016-08-11
[SqlException (0x80131904): 在 sys.servers 中找不到服务器 'CXTreasureDBLink'。请验证指定的服务器名称是否正确。如果需要,请执行存储过程 sp_addlinkedserver 以将服务器添加到 sys.servers。] System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +392 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +815 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4515 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +61 System.Data.SqlClient.SqlDataReader.get_MetaData() +138 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6738869 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) +6741487 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +586 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +107 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +288 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +237 DBUtility.DBHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) +275 DBUtility.DBHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +257 DAL.CXServerInfoDB.AdminusersService.AdminLogin(Adminusers adminuser, String clientIP) +857 BLL.CXServerInfoDB.AdminusersManager.AdminLogin(Adminusers adminuser, List`1 newAdminComps, List`1 cMarkList, String clientIP) +264 AgentView.AgentRequest.Page_Load() +5216 AgentView.MyHttpHandler.ProcessRequest(HttpContext context) +344 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
回复
anythingBlank 2016-08-11
500的话 你用浏览器看下错误不就行了? 按F12看下错误
回复
三色堇i 2016-08-11
没事我把数据库都用 *代替了!
回复
anythingBlank 2016-08-11
赶紧联系管理删帖吧,这玩意也能随便贴?
回复
相关推荐
发帖
VB
创建于2007-09-28

1.6w+

社区成员

VB技术相关讨论,主要为经典vb,即VB6.0
申请成为版主
帖子事件
创建了帖子
2016-08-11 09:06
社区公告
暂无公告