473,654 Members | 3,040 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

The allowDefinition ='MachineToAppl ication' 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 ='MachineToAppl ication' 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"
stateConnection String="tcpip=1 27.0.0.1:42424" sqlConnectionSt ring="data
source=127.0.0. 1;user id=sa;password= " cookieless="fal se" 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 9818
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.comwrot e in message
news:11******** *************@h 54g2000cwb.goog legroups.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 ='MachineToAppl ication' 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"
stateConnection String="tcpip=1 27.0.0.1:42424" sqlConnectionSt ring="data
source=127.0.0. 1;user id=sa;password= " cookieless="fal se" 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.ServerV ariables("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
114366
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 allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. this error is pointing to this section in my web.config: <authentication mode="Forms">
3
12600
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 allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. this is the solution i've read (almost everywhere) "You need to create an application or a virtual directory ( with...
3
5570
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 precompile my application with the command line C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler -v /appls -p "E:\Sites WWW\devlappl.intracger", I get this message :
23
5090
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 solution, and was greeted with the following error: ======================================================================== It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error...
4
554
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 Developer). After i've moved over all the files, i run into problems compiling and running it. Both versions of VS are run on the same computer (with the sam settings, of course). Still, when i try to run index.aspx, i get error message as follows:
4
2533
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 build is a copy i've made locally on the desktop to preserve the original as I'm going to be updating it, I did verify that there is not a second copy of the web.config file in my desktop copy as I'm aware that is usually a common problem that causes...
1
6606
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 the solution and project files in under the folder where the IIS virtual directory is pointing. The solution is working fine.
1
10163
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 is the solution? WEB.CONFIG says: <authentication mode="Forms"> <forms loginUrl="Default.aspx"></forms>
0
8375
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8290
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,...
0
8707
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 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...
1
8482
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,...
0
8593
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
7306
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, 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...
0
5622
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();...
1
2714
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
1593
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.