2016-05-13 158 views
-1

我有一个ASP.Net网站,从SQL数据库拉回数据,它在我的本地机器上的Visual Studio中工作,但是当我将它上传到我的网络空间somee.com时,当我尝试访问该页面时出现错误。服务器上的ASP.Net错误?

在这里,我的错误页面:

Server Error in '/' Application. 

Configuration Error 

Description: An error occurred during the processing of a configuration file   required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Could not load file or assembly 'MySql.Data, Version=6.9.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified. 

Source Error: 


An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 

Source File: d:\DZHosts\LocalUser\bman262\www.brandonsLoginTest.somee.com\riviera horticulture\web.config Line: 9 

Assembly Load Trace: The following information can be helpful to determine why the assembly 'MySql.Data, Version=6.9.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' could not be loaded. 


WRN: Assembly binding logging is turned OFF. 
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
Note: There is some performance penalty associated with assembly bind failure logging. 
To turn this feature off, remove the registry value  [HKLM\Software\Microsoft\Fusion!EnableLog]. 

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET  Version:4.6.1069.1 

从我可以做的,我不认为在web配置的

mysql.data 

参考是获得加载

任何帮助?

谢谢

回答

0

您也需要确保丢失的DLL包含在部署你的网站。如果你使用VS部署工具,它应该为你做。

检查您的发布文件夹,看看它是否存在。

+0

感谢您的帮助,什么DLL可能会丢失或我应该尝试添加什么DLL?而且如果它在我的发布文件夹中,我看起来似乎看不到任何其他网站页面和资源? – Bman262

+0

不知道DLL的确切名称,但由于MySqlData是缺少的数据空间,我会冒险猜测它是缺少的主要MySql DLL。如果您在发布文件夹中没有看到自己的文件以外的任何文件,那么听起来您的发布不起作用。你应该有一些微软的东西在那里以及 –

+0

您好,我做了一些四处看看你说什么,并发现我在开发机器上使用DLL而不是我的文件的本地DLL,我下载了SQL DLL并添加了他们位于我的项目文件夹作为参考。这解决了一个未提到的问题,我的项目不在其他机器上工作。它也改变了我在服务器上的错误。现在我已经将dll添加到我的文件中,并使用该服务器服务器说与我的代码错误,而不是web.config它说它无法找到mysql.data当我使用使用mysql.data – Bman262