Importing an assembly?



Hi All

I am trying to get access to an assembly in an ASPX project. I have added
the assembly to GAC using gacutil and added an "%@Import namespace =
"MyNamespace" %" to the .aspx file but this is seemingly not enough since
the using directive in the .aspx.cs file gives the error:

"The type or namespace name "MyNamespace" could not be found (are you
missing a using directive or an assembly reference?)"

Erm, it's the using directive is there. It just fails to compile - and what
on earth is an assembly reference?

More generally, where (and how) can I find the information on how to do
this?

BTW, is your opinion on the Visual Studio help system as low as mine? I find
it virtually impossible to find any information on how to do tasks. Google
is usually much better although in this case it has failed me as well.

Ebbe


.



Relevant Pages

  • Re: Importing an assembly?
    ... I am trying to get access to an assembly in an ASPX project. ... "The type or namespace name "MyNamespace" could not be found " ... Placing an assembly in the GAC is not enough to make it available in your project. ... You must add an assembly reference in the Solution explorer: Right click on the "References" folder, choose "Add reference", and then select your assembly. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Installing to GAC using Deployment Project
    ... If you need to mimic the process of 'gacutil' and/or 'regasm' because ... p.GacInstall(file); // for gac installation ... > codebase on the dll's properties. ...
    (microsoft.public.dotnet.general)
  • Adding GACUtil on right click menu
    ... I've quite some files to push into GAC ... Opend registry ... Set default value for command to path of gacutil followed by /i "%1" ... click of dll files; clicking that will send dll to GAC ...
    (microsoft.public.biztalk.general)
  • Re: Search and indexing error
    ... No old stssoap.dll in the GAC - "gacutil /u stssoap" ... Disable proxy or, if using, make sure the bypass list doesn't include ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Installing to GAC using Deployment Project
    ... look at properties, the is an entry for Codebase, which references the ... location of the dll I installed using the GACUTIL. ... If I check the GAC after I use the installer there is no entry for the ... codebase on the dll's properties. ...
    (microsoft.public.dotnet.general)

Loading