Link to home
Start Free TrialLog in
Avatar of fred2k3
fred2k3

asked on

Error Could load assembly with IIS

I have developed a web service in C#, however, when I move the files to a server running with iis 6.0. I get the error detailed below. Can anyone help solve this problem?

Thanks

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=1.0.7.30072' or one of its dependencies. The system cannot find the file specified.

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

ASKER CERTIFIED SOLUTION
Avatar of Ashley Bryant
Ashley Bryant
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RedKelvin
RedKelvin

Is it your own server, if it is hosted by an ISP, they tend to block controls that do not have full trust.

If it is on someone elses server, may pay to give them a call.

RedK
make sure mysql.data.dll is in the same folder as your assembly
Avatar of fred2k3

ASKER

This is my own server.

mysql.data.dll is in the same folder as my assembly.

Any other ideas?
take a look at this, someone fixed a similar problem by making sure their publickeytoken was all caps
http://forums.asp.net/t/1055304.aspx

do you have full trust for that assembly
http://msdn2.microsoft.com/en-us/library/wyts434y.aspx

you will want to see this
http://community.sgdotnet.org/blogs/shunjie/archive/2006/01/12/23896.aspx

Hope that is helpful
Any word?
Avatar of fred2k3

ASKER

Sorry for the late reply.....managed to try the solutions and once the dll was installed in the server's GAC....no more error.

Thanks for your help.

Fred
Forced accept.

Computer101
EE Admin