Results 1 to 2 of 2

Thread: [RESOLVED] Calling class library from aspx

  1. #1

    Thread Starter
    New Member SirPsycho's Avatar
    Join Date
    Aug 2005
    Location
    Albany, NY
    Posts
    7

    Resolved [RESOLVED] Calling class library from aspx

    Hi all this is my first post so forgive me of any faux pas I may commit. I am haing trouble accessing a class library that I have written in vb.net from an aspx page. Here is the code:
    Code:
    <%@ Page Language="VB" Debug="true" CompilerOptions='/R:"C:\Inetpub\wwwroot\ASPDLLTest.dll"'%>
    
    <% 
    
    Dim mydll as new ASPDLLTest.ASPTestClass
    
    Response.Write(mydll.HelloWorld())
    
    %>
    The error that I am receiving is this:
    System.IO.FileNotFoundException: File or assembly name ASPDLLTest, or one of its dependencies, was not found.

    Is this a security issue or am I way off base with my call to the library?

    Thanks for the help.

  2. #2

    Thread Starter
    New Member SirPsycho's Avatar
    Join Date
    Aug 2005
    Location
    Albany, NY
    Posts
    7

    Re: Calling class library from aspx

    I went ahead and created a web application and used visual studio as the editor for my project which allows me to specify references to class libraries. This resolved my issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width