Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Configuring reference dll file

Configuring reference dll file

Scheduled Pinned Locked Moved ASP.NET
helpquestioncsharpasp-netsysadmin
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    store_cold
    wrote on last edited by
    #1

    :confused: Hello, Can anybody please help me, I am creating a web site using asp.net 2.0 on m/c(1) from m/c(2) (through network), and now i will be creating a class library project on m/c(2) and i want to add reference to the dll file of the class library developed on m/c(2)to web site created on m/c(1) from m/c(2), it is adding the reference but if i see the result in browser then it shows me the exception as "security exception". How can i tackle this problem...... By gacutil.exe ? or how, please let me know in detail. Thanks.

    P I 2 Replies Last reply
    0
    • S store_cold

      :confused: Hello, Can anybody please help me, I am creating a web site using asp.net 2.0 on m/c(1) from m/c(2) (through network), and now i will be creating a class library project on m/c(2) and i want to add reference to the dll file of the class library developed on m/c(2)to web site created on m/c(1) from m/c(2), it is adding the reference but if i see the result in browser then it shows me the exception as "security exception". How can i tackle this problem...... By gacutil.exe ? or how, please let me know in detail. Thanks.

      P Offline
      P Offline
      pjc 0
      wrote on last edited by
      #2

      hi, You must check your code which you have written in class library.All variables and functions in class library should be public.I think you may not declared them as public.So I think If you declared all of them as public your problem may b solved.

      S I 2 Replies Last reply
      0
      • P pjc 0

        hi, You must check your code which you have written in class library.All variables and functions in class library should be public.I think you may not declared them as public.So I think If you declared all of them as public your problem may b solved.

        S Offline
        S Offline
        store_cold
        wrote on last edited by
        #3

        pjc*, i had declared all the functions with public access specifiers and not only that but some of the function are public shared. well thanks for your reply any other solution.........:confused:

        1 Reply Last reply
        0
        • P pjc 0

          hi, You must check your code which you have written in class library.All variables and functions in class library should be public.I think you may not declared them as public.So I think If you declared all of them as public your problem may b solved.

          I Offline
          I Offline
          Ista
          wrote on last edited by
          #4

          huh? 1 line of code equals many bugs. So don't write any!!

          1 Reply Last reply
          0
          • S store_cold

            :confused: Hello, Can anybody please help me, I am creating a web site using asp.net 2.0 on m/c(1) from m/c(2) (through network), and now i will be creating a class library project on m/c(2) and i want to add reference to the dll file of the class library developed on m/c(2)to web site created on m/c(1) from m/c(2), it is adding the reference but if i see the result in browser then it shows me the exception as "security exception". How can i tackle this problem...... By gacutil.exe ? or how, please let me know in detail. Thanks.

            I Offline
            I Offline
            Ista
            wrote on last edited by
            #5

            you are accessing a resource that the currently running user for the site does not have access to 1 line of code equals many bugs. So don't write any!!

            S 1 Reply Last reply
            0
            • I Ista

              you are accessing a resource that the currently running user for the site does not have access to 1 line of code equals many bugs. So don't write any!!

              S Offline
              S Offline
              store_cold
              wrote on last edited by
              #6

              thanks for reply, But now i had done one thing, i had registered my dll into webserver's GAC and now it is working fine but what if my webserver is not with me, i.e the web server is on remote m/c and i just need to publish my site and then what about my dlls which are added as adding reference. :confused:

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups