Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 26th, 2007, 01:35 PM
Registered User
Join Date: Jul 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bin, App_code path problem

Is there a way to set the default path for the bin and app_code?

The problem occurs when the web page looks for the required dll in the bin folder (or a class in the app_code folder). My page is on the web server in a subdirectory and it looks for the folders in the root directory of the page...

Desired Result: http://theweb/subdir1/subdir2/bin
Occurring Result: http://theweb/bin

Any help would be greatly appreciated. Also, I had to remove the "~/" from the link controls url because it was going to the root and looking for the web pages as well.

  #2 (permalink)  
Old July 28th, 2007, 05:15 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

You need to mark subdir2 as an application in IIS, the Web Server. To do this, locate that folder in IIS, open up its Properties and click the Create button on the Directory to turn the folder into an application.



Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
  #3 (permalink)  
Old August 2nd, 2007, 07:31 AM
Friend of Wrox
Join Date: Feb 2006
Location: noida, UP, India.
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gaurav_jain2403

I think by copying the dll's from subfolder bin to parent (main) application bin folder, this problem can be solved.

For second problem of "~/", you can write "~/subdir1/subdir2/" or "~/subdir2/".

Similar Threads
Thread Thread Starter Forum Replies Last Post
Path problem sureshp2p Apache Tomcat 1 September 4th, 2007 06:13 AM
Implementing the all-path shortest path problem bitwords XSLT 1 December 6th, 2006 11:37 AM
Renaming App_Code jacob .NET Web Services 5 July 4th, 2006 12:20 AM
problem with x-path expression ashyabhi_hp XSLT 3 February 1st, 2006 05:07 AM
DB Path problem creative_eye Classic ASP Databases 1 March 7th, 2005 11:14 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.