Re: Refrencing DLL in ASP.NET 1.0 Inline VB SCRIPT?

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Mar 18, 11:35 am, bruce barker
<brucebar...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
see the @Assembly page directive


What I've have done in the past.. and it's not working for some
reason...

is drop my vb.net 2.0 class library DLL in the BIN directory of the
old project.

that class has a namespace.

then in my inline code:

<%@ Import Namespace="JCP"%>

and in my code
Dim xx as new JCP.Myclass(")

But this gives me error:

Type 'JCP.Myclass' is not defined.

I'm not sure how I can use the @Assembly directive? Also, do I need to
worry that my class was compiled in 2.0 and that this server only has
1.0 .NET framework installed?

my namespace is JCP
my class is MyClass
the file is MyClass.DLL
It's compiled in 2.0
I'm attempting to access it from 1.0 (which sounds like might be a
problem anyway )

Thank you.


.



Relevant Pages

  • RE: Reuse code on multiple pages of project
    ... work for inline code? ... If you place the class file in the bin directory than asp.net will ... compile that class each time the application runs and make it ... Put your class in a namespace and make all its functions shared. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: using vb.net DLL class in inline 1.0 code without referencing DLL in project??
    ... is drop my vb.net 2.0 class library DLL in the BIN directory of the ... that class has a namespace JCP. ... That's why you should know the source code of DLL that contains the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: deploying applications that share dlls with asp.net & vb back
    ... They don't force you to use codebehind though, if you use inline code you will have no dll's.. ... This sounds like DLL hell v.2 You mentioned deployment tools, can you recommend any and will they take care of this particular problem. ... In my test environment everything works like a champ. ... bin directory where the online component lives and also in the bin dir that contains the backend vb.net programs. ...
    (microsoft.public.dotnet.framework.aspnet)
  • BIN directory not picked up by IIS 6
    ... I have installed IIS 6 and deployed my dll's to the bin directory. ... when the aspl.net page is compiled it complains: ... "The type or namespace name 'MyNameSpace' could not be found (are you ...
    (microsoft.public.inetserver.iis)