473,435 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,435 software developers and data experts.

Organizing file resources in VS 2003 / VSS environment

I have a VS solution with 3 c# class library projects and an "asp.net
web application" project. The whole stuff is under integrated source
control provided by VSS. The application is under development, I use
copy project/[only files needed to run this application] frequently to
deploy and test it.

I need to store different external resources (text files, documents,
etc.) in a separate folder. These should not be accessible via http at
all, they're only used by the application. Question is: where should I
put this folder whitin the solution so that it is deployed with copy
project but can't be accessed from the web.
If I just put it into the web app project, it's going to be served via
http. I tried different web.config settings like putting the following
into the web.config:
<httpHandlers>
<add verb="*" path="ResourceDir/*"
type="System.Web.HttpForbiddenHandler" />
</httpHandlers>
Didn't work.
I'd prefer a solution which would completely prevent accessing these
files from the web, like somehow moving this folder outside the virtual
directory, but I don't know how to do that without sacrificing the
simple deployment.
What's the best way to handle this problem?

Regards,
Sandor

Nov 19 '05 #1
2 1158
Put them into a web directory that has all HTTP permissions removed.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Sandor Palfy" <go**********@netchan.cotse.net> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
I have a VS solution with 3 c# class library projects and an "asp.net
web application" project. The whole stuff is under integrated source
control provided by VSS. The application is under development, I use
copy project/[only files needed to run this application] frequently to
deploy and test it.

I need to store different external resources (text files, documents,
etc.) in a separate folder. These should not be accessible via http at
all, they're only used by the application. Question is: where should I
put this folder whitin the solution so that it is deployed with copy
project but can't be accessed from the web.
If I just put it into the web app project, it's going to be served via
http. I tried different web.config settings like putting the following
into the web.config:
<httpHandlers>
<add verb="*" path="ResourceDir/*"
type="System.Web.HttpForbiddenHandler" />
</httpHandlers>
Didn't work.
I'd prefer a solution which would completely prevent accessing these
files from the web, like somehow moving this folder outside the virtual
directory, but I don't know how to do that without sacrificing the
simple deployment.
What's the best way to handle this problem?

Regards,
Sandor

Nov 19 '05 #2
Hi Kevin,

Could you elaborate this a bit more? Where can I set HTTP permissions
on folders in a VS 2003 solution?

Regards,
Sandor

Nov 19 '05 #3

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

Similar topics

10
by: Rada Chirkova | last post by:
Hi, at NC State University, my students and I are working on a project called "self-organizing databases," please see description below. I would like to use an open-source database system for...
9
by: Anubhav Jain | last post by:
Hi, I am having few .net source files(.cs or .vb) and I want to dynamically generate the corresponding .net project file(.csproj or .vbproj) for them without using visual studio.So that I could...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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 project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.