简体   繁体   English

服务器上的 ASP.Net 错误?

[英]ASP.Net error on server?

I have an ASP.Net site that pulls back data from a SQL database, it works in visual studio on my local machine but when i upload it to my web space at somee.com i get an error when i try to access the page.我有一个从 SQL 数据库中提取数据的 ASP.Net 站点,它在我本地机器上的 Visual Studio 中工作,但是当我将它上传到我在somee.com 的网络空间时,当我尝试访问该页面时出现错误。

Here i the error page :这是错误页面:

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

From what i can make of that, i don't think the据我所知,我不认为

mysql.data 

reference in the web config is getting loaded in.正在加载 Web 配置中的引用。

Anyone help ?有人帮忙吗?

Thank you谢谢

You either need to make sure that the missing DLL is included when you deploy your web site.您需要确保在部署网站时包含缺少的 DLL。 If you use the VS deploy tool, it should do this for you.如果您使用 VS 部署工具,它应该为您执行此操作。

Check your Publish folder and see if it's there.检查您的发布文件夹,看看它是否在那里。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM