Configuration issue regarding bin directory.
-
Hi My fellow collegue has setup a server with ASP.NET (on win2000) etc and all seems to be running fine apart from one small thing. My test page that uses codebehind to access a file in the /Bin directory only works if I reference the file relatively. This works: <%@ Page Language="vb" AutoEventWireup="false" Src="bin/WebForm2.aspx.vb" Inherits="WebForm2"%> Where as this does not: <%@ Page Language="vb" AutoEventWireup="false" Src="WebForm2.aspx.vb" Inherits="WebForm2"%> Its as if the system doesnt know that it is meant to look in the bin directory for the file. Is this meant to be a setting in the global web.config file (which strangely doesn't exist) or in the local web.config file (which I added for my test app) or am I on the wrong bus all together?
-
Hi My fellow collegue has setup a server with ASP.NET (on win2000) etc and all seems to be running fine apart from one small thing. My test page that uses codebehind to access a file in the /Bin directory only works if I reference the file relatively. This works: <%@ Page Language="vb" AutoEventWireup="false" Src="bin/WebForm2.aspx.vb" Inherits="WebForm2"%> Where as this does not: <%@ Page Language="vb" AutoEventWireup="false" Src="WebForm2.aspx.vb" Inherits="WebForm2"%> Its as if the system doesnt know that it is meant to look in the bin directory for the file. Is this meant to be a setting in the global web.config file (which strangely doesn't exist) or in the local web.config file (which I added for my test app) or am I on the wrong bus all together?
-
Hi My fellow collegue has setup a server with ASP.NET (on win2000) etc and all seems to be running fine apart from one small thing. My test page that uses codebehind to access a file in the /Bin directory only works if I reference the file relatively. This works: <%@ Page Language="vb" AutoEventWireup="false" Src="bin/WebForm2.aspx.vb" Inherits="WebForm2"%> Where as this does not: <%@ Page Language="vb" AutoEventWireup="false" Src="WebForm2.aspx.vb" Inherits="WebForm2"%> Its as if the system doesnt know that it is meant to look in the bin directory for the file. Is this meant to be a setting in the global web.config file (which strangely doesn't exist) or in the local web.config file (which I added for my test app) or am I on the wrong bus all together?
Why are you storing your code-behind files in the bin folder? regards, Paul Watson Bluegrass South Africa Anna-Jayne Metcalfe wrote: "Cynicism has it's place in life - but it should be kept well away from your inner self." Crikey! ain't life grand?
-
Why are you storing your code-behind files in the bin folder? regards, Paul Watson Bluegrass South Africa Anna-Jayne Metcalfe wrote: "Cynicism has it's place in life - but it should be kept well away from your inner self." Crikey! ain't life grand?
Hi The online tutorial I took the code from was in two parts. The first part demonstrating the codebehind (with inherit) method. The second part was using the Src attribute instead of the former and the path in the code example was <%@ Page Language="vb" AutoEventWireup="false" Src="WebForm2.aspx.vb" Inherits="WebForm2"%> with no indication that WebForm2.aspx.vb should be in the same directory as the calling script. As the codebehind version of the code had the compiled version of WebForm2.aspx.vb in the bin directory i assumed the uncompiled version of WebForm2.aspx.vb to also stay in the bin. Obviously there was errata or ommisions in that regard. Anyway, I now know that is not the case, lesson learned ;)