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
  1. Home
  2. Web Development
  3. ASP.NET
  4. assemblies in /bin?

assemblies in /bin?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netwindows-admintutorialquestion
4 Posts 2 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.
  • C Offline
    C Offline
    Chemisus
    wrote on last edited by
    #1

    i have been trying to learn how to use asp.net with c# and i cant seem to get my website to work with files that i have put in the /bin. i have tried uncompiled .cs files, and dlls. i am under the impression that all i need to do is, if i wanted to inherit a page type, is add the tag: <%@ Page Language="c#" Inherits="BasePage" %> is that wrong? what other steps do i need to take to have this work? i will let you know this though, i did create the site manually. (meaning i just added a folder /bin to it. IIS didnt do it.) do i need to do something in IIS to let it know that there are files to link to? thanks.

    D 1 Reply Last reply
    0
    • C Chemisus

      i have been trying to learn how to use asp.net with c# and i cant seem to get my website to work with files that i have put in the /bin. i have tried uncompiled .cs files, and dlls. i am under the impression that all i need to do is, if i wanted to inherit a page type, is add the tag: <%@ Page Language="c#" Inherits="BasePage" %> is that wrong? what other steps do i need to take to have this work? i will let you know this though, i did create the site manually. (meaning i just added a folder /bin to it. IIS didnt do it.) do i need to do something in IIS to let it know that there are files to link to? thanks.

      D Offline
      D Offline
      DavidNohejl
      wrote on last edited by
      #2

      hi, Chemisus wrote: i will let you know this though, i did create the site manually. (meaning i just added a folder /bin to it. IIS didnt do it.) do i need to do something in IIS to let it know that there are files to link to? huh you must have a) installed ASP.NET (e.g set mapping .aspx & other extentions to aspnet_isapi) - .NET tool aspnet_regiis.exe (ASP.NET IIS Registration Tool (Aspnet_regiis.exe)[^]) will do it for you. b) you must create virtual directory in IIS (e.g right - click on Default Web Site->New->Virtual directory ) from your web app folder. You need there all .aspx files there, plus all dlls in /bin folder. Your @page seem to be ok... maybe include namespace into name, e.g "MyNamespace.BasePage". David Never forget: "Stay kul and happy" (I.A.)
      David's thoughts / dnhsoftware.org / MyHTMLTidy

      C 1 Reply Last reply
      0
      • D DavidNohejl

        hi, Chemisus wrote: i will let you know this though, i did create the site manually. (meaning i just added a folder /bin to it. IIS didnt do it.) do i need to do something in IIS to let it know that there are files to link to? huh you must have a) installed ASP.NET (e.g set mapping .aspx & other extentions to aspnet_isapi) - .NET tool aspnet_regiis.exe (ASP.NET IIS Registration Tool (Aspnet_regiis.exe)[^]) will do it for you. b) you must create virtual directory in IIS (e.g right - click on Default Web Site->New->Virtual directory ) from your web app folder. You need there all .aspx files there, plus all dlls in /bin folder. Your @page seem to be ok... maybe include namespace into name, e.g "MyNamespace.BasePage". David Never forget: "Stay kul and happy" (I.A.)
        David's thoughts / dnhsoftware.org / MyHTMLTidy

        C Offline
        C Offline
        Chemisus
        wrote on last edited by
        #3

        thanks for your input. i am working on this on a windows 2003 server. even this is new to me. i dont understand how to use the asp.net iis registration tool, and after looking at the list, i dont know which parameter i would use. my current directory structure is as follows: /root (not the default website) |-/bin | |-file.dll | |-Default.aspx |-other files i deleted the default website, and looking back at it now, that was probably a mistake. its just something im used to doing because i never used it from when i worked with regular asp.

        D 1 Reply Last reply
        0
        • C Chemisus

          thanks for your input. i am working on this on a windows 2003 server. even this is new to me. i dont understand how to use the asp.net iis registration tool, and after looking at the list, i dont know which parameter i would use. my current directory structure is as follows: /root (not the default website) |-/bin | |-file.dll | |-Default.aspx |-other files i deleted the default website, and looking back at it now, that was probably a mistake. its just something im used to doing because i never used it from when i worked with regular asp.

          D Offline
          D Offline
          DavidNohejl
          wrote on last edited by
          #4

          Chemisus wrote: i am working on this on a windows 2003 server. even this is new to me. i dont understand how to use the asp.net iis registration tool, and after looking at the list, i dont know which parameter i would use. -i I guess. Chemisus wrote: my current directory structure is as follows: /root (not the default website) |-/bin | |-file.dll | |-Default.aspx |-other files i deleted the default website, and looking back at it now, that was probably a mistake. If root is virtual directory (NOT c:/ but e.g http://localhost/) then it's ok... but IMO you must have your asp.net application in virtual directory. David Never forget: "Stay kul and happy" (I.A.)
          David's thoughts / dnhsoftware.org / MyHTMLTidy

          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