Hello.
I'm having a big problem with asp .net. Initially, when I create a new web
applicaction and I try to open an aspx page, I get an error message:
It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.
Source Error:
Line 44: por Microsoft que ofrece un inicio de sesión único y
servicios de perfil principal para sitios miembro.
Line 45: -->
Line 46: <authentication mode="Windows" />
Line 47:
Line 48: <!-- AUTORIZACIÓN
I've seen somebody else in this forum had had this problem, but mine is
worse, because my computer completely stops responding if I change the
application directory property in site properties, which is the way another
users have solved the problem.
I've checked this problem dissapear if I uninstall .net framework, so I
think there must be a conflict with this.
Does anybody have any idea?
Thanks 4 1279
This error is almost invariably caused by the directory that your trying to
access not being defined as an virtual directory to IIS. What the message is
really saying is that you're accessing a directory (through a browser) that
contains a web.config file. While this is quite acceptable, when ASP.NET is
processing the config file, it finds a setting that cannot be defined in the
subdirectory of an existing virtual directory.
The solution (at least in my experience) has been to go to IIS manager and
right-click on the Default Web Site. Then select New | Virtual Directory.
Give the virtual directory a name and provide a path that points to exactly
where this project is living. After you've finished the wizard, you should
be able to browser to the page successfully.
Hope that helps.
Bruce Johnson [.NET MVP] http://www.objectsharp.com/blogs/bruce
"Problem doesn't solve" wrote: Hello. I'm having a big problem with asp .net. Initially, when I create a new web applicaction and I try to open an aspx page, I get an error message:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 44: por Microsoft que ofrece un inicio de sesión único y servicios de perfil principal para sitios miembro. Line 45: --> Line 46: <authentication mode="Windows" /> Line 47: Line 48: <!-- AUTORIZACIÓN
I've seen somebody else in this forum had had this problem, but mine is worse, because my computer completely stops responding if I change the application directory property in site properties, which is the way another users have solved the problem. I've checked this problem dissapear if I uninstall .net framework, so I think there must be a conflict with this. Does anybody have any idea? Thanks
Hello.
Thanks for your response. I think I've tried every possible combination with
virtual directories as you said, and when I try to access my aspx page, my
system stops responding (as what it happened before).
Problem is the same when I introduce the virtual directory address and my
habitual address (normal project address).
I don't know if is it possible to use a virtual address as an habitual
address way.
I explain you steps I've followed:
- My project is in directory wwwroot/prueba1
- I've created a virtual directory called "virtual", which points to this
directory.
- I've tried in my browser with addresses: localhost/prueba1/p.aspx and
localhost/virtual/p.aspx , and problem keeps being the same (system blocked
and rebooting needed).
The truth is that I'm quite desperate.
Do you find any other solution?
Thank you
"Bruce Johnson [.NET MVP]" wrote: This error is almost invariably caused by the directory that your trying to access not being defined as an virtual directory to IIS. What the message is really saying is that you're accessing a directory (through a browser) that contains a web.config file. While this is quite acceptable, when ASP.NET is processing the config file, it finds a setting that cannot be defined in the subdirectory of an existing virtual directory.
The solution (at least in my experience) has been to go to IIS manager and right-click on the Default Web Site. Then select New | Virtual Directory. Give the virtual directory a name and provide a path that points to exactly where this project is living. After you've finished the wizard, you should be able to browser to the page successfully.
Hope that helps.
Bruce Johnson [.NET MVP] http://www.objectsharp.com/blogs/bruce
"Problem doesn't solve" wrote:
Hello. I'm having a big problem with asp .net. Initially, when I create a new web applicaction and I try to open an aspx page, I get an error message:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 44: por Microsoft que ofrece un inicio de sesión único y servicios de perfil principal para sitios miembro. Line 45: --> Line 46: <authentication mode="Windows" /> Line 47: Line 48: <!-- AUTORIZACIÓN
I've seen somebody else in this forum had had this problem, but mine is worse, because my computer completely stops responding if I change the application directory property in site properties, which is the way another users have solved the problem. I've checked this problem dissapear if I uninstall .net framework, so I think there must be a conflict with this. Does anybody have any idea? Thanks
The question is: Why would you set up a virtual directory to point to
another directory already in IIS.
I develop with my project in a regular directory outside of the wwwroot and
then create a virtual directory that points to that real directory
structure. IT looks like you are taking a pre-existing web app created
within an actual directory under wwwroot (ie Non-virtual). You can verify
this is the case by using file explorer and see if that directory actually
exists under the inetpub\wwwroot directory.
Next go into IIS and make sure the directory is checked as an application.
"virtual" just may not be set to being an application. If all pruebal is is
a directory to hold files, I suggest you move those files out of wwwroot for
security purposes.
hth
Harry Simpson
"Problem doesn't solve" <Pr****************@discussions.microsoft.com> wrote
in message news:51**********************************@microsof t.com... Hello. Thanks for your response. I think I've tried every possible combination with virtual directories as you said, and when I try to access my aspx page, my system stops responding (as what it happened before). Problem is the same when I introduce the virtual directory address and my habitual address (normal project address). I don't know if is it possible to use a virtual address as an habitual address way. I explain you steps I've followed: - My project is in directory wwwroot/prueba1 - I've created a virtual directory called "virtual", which points to this directory. - I've tried in my browser with addresses: localhost/prueba1/p.aspx and localhost/virtual/p.aspx , and problem keeps being the same (system blocked and rebooting needed). The truth is that I'm quite desperate. Do you find any other solution? Thank you
"Bruce Johnson [.NET MVP]" wrote:
This error is almost invariably caused by the directory that your trying to access not being defined as an virtual directory to IIS. What the message is really saying is that you're accessing a directory (through a browser) that contains a web.config file. While this is quite acceptable, when ASP.NET is processing the config file, it finds a setting that cannot be defined in the subdirectory of an existing virtual directory.
The solution (at least in my experience) has been to go to IIS manager and right-click on the Default Web Site. Then select New | Virtual Directory. Give the virtual directory a name and provide a path that points to exactly where this project is living. After you've finished the wizard, you should be able to browser to the page successfully.
Hope that helps.
Bruce Johnson [.NET MVP] http://www.objectsharp.com/blogs/bruce
"Problem doesn't solve" wrote:
> Hello. > I'm having a big problem with asp .net. Initially, when I create a new > web > applicaction and I try to open an aspx page, I get an error message: > > It is an error to use a section registered as > allowDefinition='MachineToApplication' beyond application level. This > error > can be caused by a virtual directory not being configured as an > application > in IIS. > > Source Error: > > > Line 44: por Microsoft que ofrece un inicio de sesión único y > servicios de perfil principal para sitios miembro. > Line 45: --> > Line 46: <authentication mode="Windows" /> > Line 47: > Line 48: <!-- AUTORIZACIÓN > > > I've seen somebody else in this forum had had this problem, but mine is > worse, because my computer completely stops responding if I change the > application directory property in site properties, which is the way > another > users have solved the problem. > I've checked this problem dissapear if I uninstall .net framework, so I > think there must be a conflict with this. > Does anybody have any idea? > Thanks
The response is very simple: I tried the simplest way and it didn't work. I'm
a novice in web development, but I've been in it some months and I never had
to change this configuration because I was making a simple application, so it
was hosted in wwwroot directory.
Now, I think that at least I know where the problem is, although I don't
know why it's produced. I've checked sometimes project properties in IIS are
changed automatically, specifically the "application configuration" ones, (in
Directrory tab). I suppose this is the problem source.
Do you know if I've to write anything in application name?
The most extrange thing is that I've managed to build a new project that
works, and its properties are exactly the same that non-working projects.
Any idea?
Thanks.
"Harry Simpson" wrote: The question is: Why would you set up a virtual directory to point to another directory already in IIS.
I develop with my project in a regular directory outside of the wwwroot and then create a virtual directory that points to that real directory structure. IT looks like you are taking a pre-existing web app created within an actual directory under wwwroot (ie Non-virtual). You can verify this is the case by using file explorer and see if that directory actually exists under the inetpub\wwwroot directory.
Next go into IIS and make sure the directory is checked as an application. "virtual" just may not be set to being an application. If all pruebal is is a directory to hold files, I suggest you move those files out of wwwroot for security purposes.
hth Harry Simpson
"Problem doesn't solve" <Pr****************@discussions.microsoft.com> wrote in message news:51**********************************@microsof t.com... Hello. Thanks for your response. I think I've tried every possible combination with virtual directories as you said, and when I try to access my aspx page, my system stops responding (as what it happened before). Problem is the same when I introduce the virtual directory address and my habitual address (normal project address). I don't know if is it possible to use a virtual address as an habitual address way. I explain you steps I've followed: - My project is in directory wwwroot/prueba1 - I've created a virtual directory called "virtual", which points to this directory. - I've tried in my browser with addresses: localhost/prueba1/p.aspx and localhost/virtual/p.aspx , and problem keeps being the same (system blocked and rebooting needed). The truth is that I'm quite desperate. Do you find any other solution? Thank you
"Bruce Johnson [.NET MVP]" wrote:
This error is almost invariably caused by the directory that your trying to access not being defined as an virtual directory to IIS. What the message is really saying is that you're accessing a directory (through a browser) that contains a web.config file. While this is quite acceptable, when ASP.NET is processing the config file, it finds a setting that cannot be defined in the subdirectory of an existing virtual directory.
The solution (at least in my experience) has been to go to IIS manager and right-click on the Default Web Site. Then select New | Virtual Directory. Give the virtual directory a name and provide a path that points to exactly where this project is living. After you've finished the wizard, you should be able to browser to the page successfully.
Hope that helps.
Bruce Johnson [.NET MVP] http://www.objectsharp.com/blogs/bruce
"Problem doesn't solve" wrote:
> Hello. > I'm having a big problem with asp .net. Initially, when I create a new > web > applicaction and I try to open an aspx page, I get an error message: > > It is an error to use a section registered as > allowDefinition='MachineToApplication' beyond application level. This > error > can be caused by a virtual directory not being configured as an > application > in IIS. > > Source Error: > > > Line 44: por Microsoft que ofrece un inicio de sesión único y > servicios de perfil principal para sitios miembro. > Line 45: --> > Line 46: <authentication mode="Windows" /> > Line 47: > Line 48: <!-- AUTORIZACIÓN > > > I've seen somebody else in this forum had had this problem, but mine is > worse, because my computer completely stops responding if I change the > application directory property in site properties, which is the way > another > users have solved the problem. > I've checked this problem dissapear if I uninstall .net framework, so I > think there must be a conflict with this. > Does anybody have any idea? > Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Adam |
last post by:
Hi
I had Ruby 1.6.8-8 for Windows installed on my WinXP Pro machine prior
to installing Python 2.3. After installing Python 2.3, I tried to
<----- screen output of python interactive command...
|
by: Tolga Tanriverdi |
last post by:
I wrote my program with visual c#2005 so it s written with .net framework
2.0 but after that i take my code and compiled with visual studio .net 2003
it was working good until today.
Today i...
|
by: Joseph Geretz |
last post by:
I recently upgraded my server to Windows 2003. The first thing I noticed is
that my sample WebService pages no longer worked. The Invoke test button is
missing. This is addresed by the following KB...
|
by: hzgt9b |
last post by:
Situation:
I've been using VS .NET 2003 to develop apps w no problems. So, today, my
manager had me install VS 2005 (& with it the .NET 2.0 framework) so now my
machine has VS .NET 2003 (.NET...
|
by: HartsVideo |
last post by:
Hi,
No one seems to know the answers to these questions or they're just not
telling.
I downloaded and installed .NET Framework 2.0 and along with it came
ASP.NET. .NET Framework 2.0 wrecked...
|
by: mookid |
last post by:
Good day group!
My problem is this:
I have an old legacy application, which must be installed using an
unmanaged installer. This unmanaged installer complains that .NETfx 1.1
is not installed,...
|
by: Steve Cross |
last post by:
I need a procedure for a manual .Net 2.0 Framework uninstall.
dotnetfx /C doesn't work
Manaully running the .msi from the %systemroot%\installer directory doesn't
work.
It appears to be...
|
by: lotus18 |
last post by:
Hello World
I have a problem in detecting the conflict schedule (Day and Time).
Day
1. M
2. T
3. W
4. TH
5. F
|
by: lotus18 |
last post by:
Hello all
I have these records on my Day Table for my complete database table please click here
1. M
2. T
3. W
4. TH
5. F
6. S
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |