can't import external assembly using single-file asp.net

A

Andy Fish

Hi,

I have a single-file aspx file (no codebehind). when I try to do this:

<%@ Import Namespace="MySql.Data.MySqlClient" %>

I get this:

CS0246: The type or namespace name 'MySql' could not be found (are you
missing a using directive or an assembly reference?)

I have the MySql.Data assembly registered in the gac. Any ideas why it won't
pick it up?

Andy
 
A

Andy Fish

ok, so I have put this in the top of the file

<%@ Assembly Name="MySql.Data" %>

but I just get the error message

File or assembly name MySql.Data, or one of its dependencies, was not found

I'm not sure what you mean by the "fully qualified" assembly name. according
to the documentation I cannot put the path or file extension in the assembly
directive, just the assembly name
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top