473,320 Members | 2,146 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,320 software developers and data experts.

The allowDefinition='MachineToApplication' error

Hi all,

Im having a big problem. Im trying out a program which works fine
yesterday but today it gives me more headache. It is about session
sharing between ASP and ASP.NET application.

The error is:

================================================== ======================
Parser 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 52: <sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="20"
/>

================================================== ======================
and by the way, I have turned off the ASP session under the ASP
Configuration tab. Is the problem lies in the session timeout?

Anyone help me out please. thank you....

Nov 17 '06 #1
3 9798
And oh, by the way, the program works perfectly fine in Mozilla Firefox
browser but not in Internet Explorer 7. Any idea what is the cause of
this? Thank you again in advance..

Nov 17 '06 #2
You are attempting to define Session State in a web.config
in a directory which is not configured as an Application.

If there's a parent directory defined as an Application,
simply remove the <sessionState mode...lines from
the web.config in the current directory.

If there's no parent directory configured as an IIS Application,
create an IIS Application which points to the directory where
the web.config exists...and leave the <sessionState mode...lines in.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
<pr*************@gmail.comwrote in message
news:11*********************@h54g2000cwb.googlegro ups.com...
Hi all,

Im having a big problem. Im trying out a program which works fine
yesterday but today it gives me more headache. It is about session
sharing between ASP and ASP.NET application.

The error is:

================================================== ======================
Parser 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 52: <sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="20"
/>

================================================== ======================
and by the way, I have turned off the ASP session under the ASP
Configuration tab. Is the problem lies in the session timeout?

Anyone help me out please. thank you....

Nov 17 '06 #3
Hi Juan T. Libre,

Thanks for that. It works. But the problem now lies in the .asp page.
This is what it says:

================================================== ================
"This type of page is not served.

Description: The type of page you have requested is not served because
it has been explicitly forbidden. The extension '.asp' may be
incorrect. Please review the URL below and make sure that it is
spelled correctly. "

The extension is correct. I tried adding this code into the page
requested, testPage.asp,

"<%
Response.Write("LOGON_USER: " & _
Request.ServerVariables("LOGON_USER"))
%>"

================================================== ================

But to no avail. I am the only user in this computer, and I have set
"Everyone" have the "Read" access. But the result is the same. I'm
confused. Thank you.

Nov 20 '06 #4

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

Similar topics

1
by: Alex D. | last post by:
I upgraded one of my applications to beta 2. conversion seemed to work OK, problem is when trying to build I get an error like: it is an error to use a section registered as...
3
by: Boonaap | last post by:
I have been looking around on different sites and fora, and i have a similar problem than some people had before... it is an error to use a section registered as...
3
by: Patrick Paquin | last post by:
Hi, I have an application ("appls") on my website. This application is a subfolder of the website root. This subfolder is configured as an application in the IIS Manager When I want...
23
by: deathtospam | last post by:
A day or two ago, I wrote a quick ASPX page with a CS codebehind using Visual Studio .NET 2005 -- it worked, I saved it and closed the project. Today, I came back to the project, reopened the...
4
by: K Viltersten | last post by:
We have a project working well today and it's developed on VS2005. Since we're planing to switch to VS2008 in a soon future, i've been trying to move the project to VS2008 Express (Web...
4
by: cghost | last post by:
I'm attempting to build website that was previously published using VS.NET 2005 and the .Net framework 2.0, the site is using a local sql server as the data source. This copy i'm attempting to...
1
by: jc | last post by:
RE: It is an error to use a section registered as allowDefinition='MachineToApplication' There's an asp.net 1.1 vb.net vs 2003 solution under a virtual directory on one of our sites. I can see...
1
by: Icon Iconoclast | last post by:
Why is this being caused and what is the solution? I am using a book that teaches ASP.NET 2.0 but trying out the example codes on my ASP.NET 3.5 running the development server instead of IIS. What...
0
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...
0
isladogs
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...
1
isladogs
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...
0
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...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
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
0
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...

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.