0

i have an error when trying to start default.aspx.

Compiler Error Message: CS0433: The type 'MySql.Data.MySqlClient.MySqlConnection' exists in both 
'c:\Windows\assembly\GAC_MSIL\MySql.Data\6.3.6.0__c5687fc88969c44d\MySql.Data.dll' and 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\elwazefa\fd12d8de\3446c68c\assembly`\dl3\dc121b8b\00d6e0c3_62aacb01\MySql.Data.CF.DLL'`

i am using asp.net 3.5 what is the problem, thanks

1
  • Try deleting the temporary file they mention. Commented Apr 25, 2011 at 20:08

2 Answers 2

4

It looks to me like you have references to both the Compact Framework and the standard framework MySQL libraries in your project. You need to remove the references to the ones that have .CF in their filename.

Sign up to request clarification or add additional context in comments.

2 Comments

I don't have CF. what should i do then?
You have the exact same error message, but don't have CF? You do have CF if you're getting that error message. If you are getting a different error, open a new question.
0

Check your web.config file assemblies section for multiple references:

<compilation>
  <assemblies>
    ...             
  </assemblies>
</compilation>

If there is more than one then remove it (the one not in the GAC, I would say off-hand.)

Also, as @Abe suggests, delete the temporary files under the following path:

c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\

1 Comment

i didnt fine ant duplicates in the assemblies and i tried to remove the temp files which made work on local host but it still doesnt work on the actual host

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.