assemblies in /bin?
-
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.
-
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.
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 -
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 / MyHTMLTidythanks 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.
-
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.
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