Professional Web Applications Themes

newbie - help - where do u store custom classes when importing namespaces in ASP - ASP.NET General

Hi abdul, Copying the dll to the bin directory is more than enough. But, how are you trying to access the class? Can u also provide the error message u r getting? You can refer to http://www.4guysfromrolla.com/webtech/112101-1.2.shtml that will help u to reference a simple dll. thanks and regards, s.ravi sankar   stored in the  files. I am  namespace="hello" but is  place the dll  wwwroot\bin ...

  1. #1

    Default newbie - help - where do u store custom classes when importing namespaces in ASP

    Hi abdul,
    Copying the dll to the bin directory is more than enough.
    But, how are you trying to access the class? Can u also
    provide the error message u r getting?
    You can refer to
    http://www.4guysfromrolla.com/webtech/112101-1.2.shtml

    that will help u to reference a simple dll.

    thanks and regards,
    s.ravi sankar

     
    stored in the 
    files. I am 
    namespace="hello" but is 
    place the dll 
    wwwroot\bin 
    ravi Guest

  2. #2

    Default Re: newbie - help - where do u store custom classes when importing namespaces in ASP

    I assume u have done the following steps
    1. Create a class library project called "testclass" and
    have the name space also as "testclass". Have a class
    called 'Class1' in it & a method 'SayHello()'
    2. When u compile "testclass" project, u get testclass.dll
    3. Create another web project "testwebprj" and have a
    webform webform1.aspx
    4. From project properties add reference to testclass.dll
    (this will copy the dll to the web project dll directroy)
    5. in the code behind
    Dim x as testclass.Class1
    x.SayHello()

    the above steps should work.

    Please let me know if u doing somthing different anywhere.

    regards,
    s.ravi sankar

     
    provided but I end 
    in bin and 
    its actually 
    name 'testclass' 
    an assembly 
    news:<074201c36af1$c2c24500$gbl>... [/ref]
    enough. [/ref][/ref]
    was [/ref][/ref]
    aspx 
    >> namespace="hello" but is [/ref][/ref]
    or [/ref][/ref]
    the [/ref]
    >.
    >[/ref]
    ravi Guest

  3. #3

    Default Re: newbie - help - where do u store custom classes when importing namespaces in ASP

    Hi,

    putting assembly in bin directory or GAC isnt enough. you need to make a
    refernce from your project to the assembly in order to enable CLR loader
    to load that assembly.

    Natty Gur, CTO
    Dao2Com Ltd.
    34th Elkalay st. Raanana
    Israel , 43000
    Phone Numbers:
    Office: +972-(0)9-7740261
    Fax: +972-(0)9-7740261
    Mobile: +972-(0)58-888377


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Natty Guest

  4. #4

    Default Re: newbie - help - where do u store custom classes when importing namespaces in ASP

    Hi, I havnt got Visual Studio so is it possbile to reference it using
    command line options?

    abz

    "ravi sankar" <com> wrote in message news:<063101c36b81$ecf63ee0$gbl>... 
    > provided but I end 
    > in bin and 
    > its actually 
    > name 'testclass' 
    > an assembly 
    > news:<074201c36af1$c2c24500$gbl>... [/ref]
    > enough. [/ref]
    > was
    > stored in the [/ref]
    > aspx
    > files. I am [/ref]
    > namespace="hello" but is [/ref]
    > or
    > place the dll [/ref]
    > the
    > wwwroot\bin 
    > >.
    > >[/ref][/ref]
    abdul Guest

Similar Threads

  1. casting custom classes
    By Sam in forum ASP.NET Building Controls
    Replies: 2
    Last Post: July 27th, 09:50 AM
  2. custom types: classes
    By Chris in forum ASP.NET Web Services
    Replies: 5
    Last Post: June 24th, 05:55 PM
  3. Custom classes with web services
    By Chris Dunaway in forum ASP.NET Web Services
    Replies: 3
    Last Post: December 2nd, 12:52 AM
  4. Custom Classes with loadmovie, help!
    By The dedicated lad webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: February 5th, 10:25 PM
  5. Best Practices - solution - namespaces - classes
    By Craig Deelsnyder in forum ASP.NET General
    Replies: 1
    Last Post: August 4th, 11:27 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139