Hi,
Do you always have to make a folder an application if you have a web.config
in that folder?
Thanks,
Andy 9 1312
Do you always have to make a folder an application if you have a web.config
in that folder and the web.config has Forms Authentication?
"Andy Sutorius" <an**@sutorius. com> wrote in message
news:hc******** *************@t wister.southeas t.rr.com... Hi,
Do you always have to make a folder an application if you have a
web.config in that folder?
Thanks,
Andy
Yes. Or a virtual directory. Or the root of you website.
This might be different if you are developing on Web Matrix as it has it's
own built-in webserver..but for VS.Net development or for production on IIS,
yes.
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/
"Andy Sutorius" <an**@sutorius. com> wrote in message
news:hc******** *************@t wister.southeas t.rr.com... Hi,
Do you always have to make a folder an application if you have a
web.config in that folder?
Thanks,
Andy
> Do you always have to make a folder an application if you have a web.config
No. Only if you want to run an ASP.Net app in it. ;-)
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
"Andy Sutorius" <an**@sutorius. com> wrote in message
news:hc******** *************@t wister.southeas t.rr.com... Hi,
Do you always have to make a folder an application if you have a web.config in that folder?
Thanks,
Andy
You can get away without having to make the app run within a virtual
directory if you exculde the <authentication > , and <sessionState > elements
in the web.config file. There are others but these elements are put in the
web.config file by default by VS.NET. These 2 tags along with a couple others
can only be defined at the application level. So, this is why the virtual
directory is needed to use Forms Authentication
"Andy Sutorius" wrote: Do you always have to make a folder an application if you have a web.config in that folder and the web.config has Forms Authentication? "Andy Sutorius" <an**@sutorius. com> wrote in message news:hc******** *************@t wister.southeas t.rr.com... Hi,
Do you always have to make a folder an application if you have a web.config in that folder?
Thanks,
Andy
Actually, in spite of Karl and Kevin's opinions
to the contrary, you do *not* need to make a
folder an application, nor even a virtual directory,
in order to run a web.config in that directory.
All that's needed is for the directory to be a sub-directory
of an application, and you *will* be able to run a web.config
file in that directory which establishes rules for that sub-dir.
What you *cannot* do is, in a directory's web.config,
make application-level changes. Local changes which
modify the way the application reacts to requests *within*
that sub-directory are fine.
You could have a zillion directories,
and a zillion web.configs i each sub-dir,
all running under *one* application root.
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
=============== ======
"Andy Sutorius" <an**@sutorius. com> wrote in message
news:hc******** *************@t wister.southeas t.rr.com... Hi,
Do you always have to make a folder an application if you have a web.config in that folder?
Thanks,
Andy
You're correct, Juan. I was only partially correct, in that the web itself
needs to be configured as an application, but a sub-directory of that
application can contain a web.config and not be configured as a separate app
(and in fact, in many cases, SHOULD not be). Thanks for clearing that up!
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:eD******** ******@TK2MSFTN GP10.phx.gbl... Actually, in spite of Karl and Kevin's opinions to the contrary, you do *not* need to make a folder an application, nor even a virtual directory, in order to run a web.config in that directory.
All that's needed is for the directory to be a sub-directory of an application, and you *will* be able to run a web.config file in that directory which establishes rules for that sub-dir.
What you *cannot* do is, in a directory's web.config, make application-level changes. Local changes which modify the way the application reacts to requests *within* that sub-directory are fine.
You could have a zillion directories, and a zillion web.configs i each sub-dir, all running under *one* application root.
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español =============== ======
"Andy Sutorius" <an**@sutorius. com> wrote in message news:hc******** *************@t wister.southeas t.rr.com... Hi,
Do you always have to make a folder an application if you have a web.config in that folder?
Thanks,
Andy
This is along the same lines but maybe you can help me figure our what went
wrong. I came across a issue last week where I had a folder under my wwwroot
with a few aspx pages and I tried to run one of the pages and I got an error
that IIS could not load the type of the page. ie. It would not load my .dll
from my bin directory. However, if I made it a virtual directory then the
pages ran just fine. So, in that senario, is a virtual directory necessary
for those aspx files to run?
BTW. I didn't had any web.config file in that folder..because I didn't
need it
"Juan T. Llibre" wrote: Actually, in spite of Karl and Kevin's opinions to the contrary, you do *not* need to make a folder an application, nor even a virtual directory, in order to run a web.config in that directory.
All that's needed is for the directory to be a sub-directory of an application, and you *will* be able to run a web.config file in that directory which establishes rules for that sub-dir.
What you *cannot* do is, in a directory's web.config, make application-level changes. Local changes which modify the way the application reacts to requests *within* that sub-directory are fine.
You could have a zillion directories, and a zillion web.configs i each sub-dir, all running under *one* application root.
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español =============== ======
"Andy Sutorius" <an**@sutorius. com> wrote in message news:hc******** *************@t wister.southeas t.rr.com... Hi,
Do you always have to make a folder an application if you have a web.config in that folder?
Thanks,
Andy
re: I got an error that IIS could not load the type of the page. ie. It would not load my .dll from my bin directory.
However, if I made it a virtual directory then the pages ran just fine. So, in that scenario, is a virtual directory necessary for those aspx files to run?
Absolutely. You need a virtual directory if the /bin
directory below the directory where the files are
located is going to work.
If you're running .aspx pages from a directory which
hasn't been made a virtual directory or an ASP.NET app,
then the /bin directory below /wwwroot will be the directory
where the page will look for the assembly.
Juan T. Llibre
ASP.NET MVP http://asp.net.do/foros/
Foros de ASP.NET en Español
=============== ======
"Tampa .NET Koder" <Ta***********@ discussions.mic rosoft.com> wrote in
message news:B3******** *************** ***********@mic rosoft.com... This is along the same lines but maybe you can help me figure our what went wrong. I came across a issue last week where I had a folder under my wwwroot with a few aspx pages and I tried to run one of the pages and I got an error that IIS could not load the type of the page. ie. It would not load my .dll from my bin directory. However, if I made it a virtual directory then the pages ran just fine. So, in that senario, is a virtual directory necessary for those aspx files to run?
BTW. I didn't had any web.config file in that folder..because I didn't need it
"Juan T. Llibre" wrote:
Actually, in spite of Karl and Kevin's opinions to the contrary, you do *not* need to make a folder an application, nor even a virtual directory, in order to run a web.config in that directory.
All that's needed is for the directory to be a sub-directory of an application, and you *will* be able to run a web.config file in that directory which establishes rules for that sub-dir.
What you *cannot* do is, in a directory's web.config, make application-level changes. Local changes which modify the way the application reacts to requests *within* that sub-directory are fine.
You could have a zillion directories, and a zillion web.configs i each sub-dir, all running under *one* application root.
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español =============== ======
"Andy Sutorius" <an**@sutorius. com> wrote in message news:hc******** *************@t wister.southeas t.rr.com... > Hi, > > Do you always have to make a folder an application if you have a > web.config > in that folder? > > > Thanks, > > Andy > >
YOU ROCK MAN! Some books don't explain this clearly. I have always wondered
about this. See, this is what you get when vs.net does everything for you.
Ah well, I still can't live without it! :-)
"Juan T. Llibre" wrote: re: I got an error that IIS could not load the type of the page. ie. It would not load my .dll from my bin directory.
However, if I made it a virtual directory then the pages ran just fine. So, in that scenario, is a virtual directory necessary for those aspx files to run?
Absolutely. You need a virtual directory if the /bin directory below the directory where the files are located is going to work.
If you're running .aspx pages from a directory which hasn't been made a virtual directory or an ASP.NET app, then the /bin directory below /wwwroot will be the directory where the page will look for the assembly.
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español =============== ======
"Tampa .NET Koder" <Ta***********@ discussions.mic rosoft.com> wrote in message news:B3******** *************** ***********@mic rosoft.com... This is along the same lines but maybe you can help me figure our what went wrong. I came across a issue last week where I had a folder under my wwwroot with a few aspx pages and I tried to run one of the pages and I got an error that IIS could not load the type of the page. ie. It would not load my .dll from my bin directory. However, if I made it a virtual directory then the pages ran just fine. So, in that senario, is a virtual directory necessary for those aspx files to run?
BTW. I didn't had any web.config file in that folder..because I didn't need it
"Juan T. Llibre" wrote:
Actually, in spite of Karl and Kevin's opinions to the contrary, you do *not* need to make a folder an application, nor even a virtual directory, in order to run a web.config in that directory.
All that's needed is for the directory to be a sub-directory of an application, and you *will* be able to run a web.config file in that directory which establishes rules for that sub-dir.
What you *cannot* do is, in a directory's web.config, make application-level changes. Local changes which modify the way the application reacts to requests *within* that sub-directory are fine.
You could have a zillion directories, and a zillion web.configs i each sub-dir, all running under *one* application root.
Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español =============== ======
"Andy Sutorius" <an**@sutorius. com> wrote in message news:hc******** *************@t wister.southeas t.rr.com... > Hi, > > Do you always have to make a folder an application if you have a > web.config > in that folder? > > > Thanks, > > Andy > > This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: gregory_may |
last post by:
I have an application I created called "JpegViewer.exe". It simply loads a
Jpeg file and displays in on the screen. It works great, in my lab.
When I am using it at a customer site, things change. Occasionally, it
blows up with an Application Exception. It seems to only die at the
customer site
|
by: Brian |
last post by:
Create a simple MDI form and a child form, and try the following simple code
to add a new menu item on the Edit menu popup:
private void editMenu_Popup(object sender, System.EventArgs e)
{
editMoreMenu.MenuItems.Add("New MI " + count);
count++;
}
and get "An unhandled exception of type 'System.NullReferenceException'
|
by: Rajat Tandon |
last post by:
Hello there,
I am relatively new to the newsgroups and C#. I have never been disappointed
with the groups and always got the prompt replies to my queries.This is yet
another strange issue, I am facing. Please please help me to solve this as
soon as possible.
So here we go ...
I am not able to take the screen shot of the windows form based "Smart
|
by: Ollie Riches |
last post by:
I understand the use of Application.DoEvents() to process all outstanding
messages on the message queue in a winforms application if you have long
running process on the UI thread. But can anyone explain to me why I need to
call DoEvents when I am using a COM component that calls back to into the
..Net application? - If I don't call DoEvents after receiving a callback then
sometimes no more messages are pumped, it appears that the message...
|
by: Charles Law |
last post by:
I want to display the name and version of all assemblies (dlls?)
used/required by my application in a Help | About box. Is there a way to do
this?
One of the problems I anticipate is that assemblies are only loaded when
required. When my app loads not all assemblies are loaded. If the user goes
straight to the Help About box then there will still be assemblies required
but not yet loaded, so I would need a way of getting these as well....
| |
by: Jordan S. |
last post by:
SQL Server will be used as the back-end database to a non trivial client
application.
In question is the choice of client application:
I need to be able to speak intelligently about when one client (MS Access vs
..NET Windows Forms) would be preferred over the other. While I have some
good arguments on both sides, I would appreciate your points of view on the
topic.
|
by: =?Utf-8?B?TVNU?= |
last post by:
To demonstrate my problem, I have a very simple VB Windows application. It
has a text box that is used to display a counter, a button to reset the
counter, and a timer that increments the counter every second.
I remote desktop to the computer hosting this application and run the
application. It starts up and displays the counter incrementing every
second. If I disconnect the network cable between the two computers for 10
seconds and...
|
by: |
last post by:
I have a multi threaded windows form application that runs great after
calling Application.Run(). Application.Run is required for a COM component
I a using in the app (required for message loop). I have created a windows
service from VStudio 2005 template. What is the windows service replacement
for Application.Run()?
|
by: bharathreddy |
last post by:
Here I will given an example on how to access the session, application and querystring variables in an .cs class file.
Using System.Web.HttpContext class.
1) For accesing session variables : System.Web.HttpContext.Current.Session
2) For accesing Application variables : System.Web.HttpContext.Current.Application
3) For accesing QueryString variables : System.Web.HttpContext.Current.Request.QueryString
Here is a simple example where...
|
by: saggydel |
last post by:
I have 3 web application these all are independent to each other.
1 web application have .aspx, .aspx.cs, web.config, .dll and some other
Supporting files. I want to make a common setup of all 3 web application
With this setup I want to install the 3 web application in the /inetpub/wwwroot
Folder. I don’t want to include source code in wwwroot folder. Then I want to run all
3 application separately from browser with parameters.
I tried...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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, and deployment—without 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...
|
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();...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |