473,748 Members | 10,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Directory structure App_Code, Bin when using partitioned website and SSL

Hi,

I have a situation which I think is fairly common.

1. Public area
2. Secure area accessed via SSL

e.g.
MyWebsite/
/MySecureWebsite

Where MyWebsite currently contains the App_Code, and the Bin directory.
(and as such, my namespace in all code that belongs to MySecureWebsite is
MyWebsite.MySec ureWebsite)

However, it appears to me (and maybe because I'm fairly new to .NET) that
only one Bin and one App_Code directory can live under a Visual Studio 2005
Pro Project.

I suppose I can move the App_Code and Bin directory to the MySecureWebsite
area, but then what if I want to turn my public website into ASPX pages that
use codebehind and custom biz classes? Wouldn't this require a /Bin and a
/App_Code directory at the root level of MyWebsite?

And moving these directories also breaks the namespace.

Note that MySecureWebsite may also be a Virtual Directory under IIS, and
when it is, I get different behavior -- pages don't load, etc. Things
happening I don't fully understand just yet.

I'm basically asking for tips on how to go about setting up my
project/solution so that I can have a public website, and within that
website have a secure partition, where /images /css can be shared/accessed,
and where /bin is visible to the partition.
MS has tips here, but I'm not seeing anything about the /bin and /app_code
locations:

http://msdn2.microsoft.com/en-us/lib...ht000012_step3

Thanks!
Frank
Mar 19 '07 #1
1 1871
Hi

first the security regarding source files ( App_Code )
is irelevant to the security in global
because it's compiled
the point is that you have to secure certain pictures / pages
and for that you should use the asp.net 2.0 security model , it's great
using website configuration and web.config spread around the relevant
directories
( web.config with security configured appropriately for each directory )

-----------------------------
If my answer helped you please press "Yes" bellow
---------
אם תשובה זו עזרה לך, א*א הצבע "כן" למטה

Adlai Maschiach
http://blogs.microsoft.co.il/blogs/adlaim/
"Frank Miverk" wrote:
Hi,

I have a situation which I think is fairly common.

1. Public area
2. Secure area accessed via SSL

e.g.
MyWebsite/
/MySecureWebsite

Where MyWebsite currently contains the App_Code, and the Bin directory.
(and as such, my namespace in all code that belongs to MySecureWebsite is
MyWebsite.MySec ureWebsite)

However, it appears to me (and maybe because I'm fairly new to .NET) that
only one Bin and one App_Code directory can live under a Visual Studio 2005
Pro Project.

I suppose I can move the App_Code and Bin directory to the MySecureWebsite
area, but then what if I want to turn my public website into ASPX pages that
use codebehind and custom biz classes? Wouldn't this require a /Bin and a
/App_Code directory at the root level of MyWebsite?

And moving these directories also breaks the namespace.

Note that MySecureWebsite may also be a Virtual Directory under IIS, and
when it is, I get different behavior -- pages don't load, etc. Things
happening I don't fully understand just yet.

I'm basically asking for tips on how to go about setting up my
project/solution so that I can have a public website, and within that
website have a secure partition, where /images /css can be shared/accessed,
and where /bin is visible to the partition.
MS has tips here, but I'm not seeing anything about the /bin and /app_code
locations:

http://msdn2.microsoft.com/en-us/lib...ht000012_step3

Thanks!
Frank
Mar 20 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
3397
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set it up as C:\domains\appA. Locally, my IIS root points to C:\domains. I don't point it to C:\domains\appA since if I have an appB under C:\domains I wouldn't be able to get to it. So to access it via my browser I go to localhost/appA.
11
29875
by: Steve Franks | last post by:
I'm using VS.NET 2005 Beta 2. I have a helper C# class I wrote that I placed in my /App_Code directory. Everything runs fine locally. However when I use the "Copy Web" function to upload the site to the production server, I get the following error when trying to run the page on production: "System.Web.HttpException: The directory '/App_Code' is not allowed because the application is precompiled." Anyone know this works fine locally but...
4
1781
by: paul | last post by:
Hi, Im trying to add a dataset to the app_code directory using vs2005 \ SQL2005 beta 2. When I run through the wizard I select the option to auto create new Stored Procedures (Select, update, delete, insert commands) after already specifying a very basic select command that consists of two fields. All procedures are created fine and i'm able to save the xsd file. Then I create a new gridview in which i use the xsd file object as my
1
1469
by: I2 | last post by:
I am new to .net and am stumped as to how to use "include" files in my asp application. Currently I have created classes in the app_code directory that are shared between various aspx pages and this works fine. The problem, however, is - I am trying to include aspx functionality as part of a pre-existing classic asp 3.0 website. I.e., in iis I have old website as normal - within this application their is a folder which contains the...
2
5787
by: jd1978 | last post by:
I don't have Team System, but I'd like to be able to unit test the code in my app_code directory using nunit, or something else. Is there any way to do this? I can't add a reference from another page, and I can't find the dll for these classes. Thoughts? Thanks. -jeff
2
5980
by: Jim in Arizona | last post by:
My goal, somehow, is to populate a dropdownlist with all the user names in active directory. I don't even know where to begin, really. I added a reference to System.DirectoryServices so I could use the System.DirectoryServices.ActiveDirectory namespace. I don't even know if this is the right way to go as I can't seem to find anything in that namespace that would help me query active directory for names. I can't use an LDAP query...
9
2594
by: antonyliu2002 | last post by:
I have a C# class GeneralUtilities.cs , which many of my aspx.cs files will refer to. So, I've put it under the App_Code folder and compiled it to library using csc /target: library from the DOS console. I can use objects of type GeneralUtilities in any aspx.cs file in my web application without any problem if only I make my web application folder a virtual directory. If I don't make it a virtual directory, the compiler complains...
5
3009
by: Randy | last post by:
I've converted a VS 2003 project to VS 2005. I have one utility class that it put in the APP_CODE directory. When I try and compile I'm getting this error... Error 1 The type or namespace name 'WelcomeToPFP' could not be found (are you missing a using directive or an assembly reference?) C:\Inetpub\wwwroot\PFPApp\App_Code\Utils.cs 19 9 WelcomeToPFP is a class defined in the root directory of the solution. My question is...I'm drawing a...
13
2810
by: lawpoop | last post by:
Hello all - I have a two part question. First of all, I have a website under /home/user/www/. The index.php and all the other website pages are under /home/user/www/. For functions that are used in multiple files, I have php files under / home/user/www/functions/. These files simply have So, in index.php and other files, I have
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8242
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2782
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.