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. Configuration issue regarding bin directory.

Configuration issue regarding bin directory.

Scheduled Pinned Locked Moved ASP.NET
workspacecsharpasp-netsysadminhelp
4 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.
  • J Offline
    J Offline
    johncogan
    wrote on last edited by
    #1

    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?

    A P 2 Replies Last reply
    0
    • J johncogan

      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?

      A Offline
      A Offline
      antbates
      wrote on last edited by
      #2

      I think the wrong bus but I could be wrong... All my .aspx pages and .aspx.cs and .aspx.resx pages are in the same directory. No reason why that should be the case, but I think that's the default.

      1 Reply Last reply
      0
      • J johncogan

        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?

        P Offline
        P Offline
        Paul Watson
        wrote on last edited by
        #3

        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?

        J 1 Reply Last reply
        0
        • P Paul Watson

          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?

          J Offline
          J Offline
          johncogan
          wrote on last edited by
          #4

          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 ;)

          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