473,387 Members | 1,517 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,387 software developers and data experts.

allow definaetion=Machine to application

Hi EveryBody:

I face the following error when I debugg my web application:

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.

the source of this error when I make spearet folder in my solution explorer
and but my membership pages inside it and I want to make authentication for
this folder by appliying the following code in the web.config file which new
web config file that I replace it Into that folder:

<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authentication mode="Forms">
<forms name=".ASPXAUTH" loginUrl="~/Default.aspx" />
</authentication>
</system.web>
</configuration>
the red line that I recived when my application debugging as an error is :

<authentication mode="Forms">
some body toled me that I have to go to my project under the default
websites in IIS and right click my project directory then I will see a button
grayied which create new under applcation setting but when I did so nothing
change and I still recived the same error.

So any one can help me with this issue or redirect me?

regard's

Husam



Jul 13 '07 #1
3 5219
Make sure the website in question is running under the proper version of the
framework. If you are developing with Visual Studio 2005 or the Web
Developer Express product(s), you need ASP.NET 2.0. For Visual Studio .NET
it will be either 1.0 or 1.1.

You can use the aspnet_regiis with the -s flag to set your website up to the
proper version or manually set the types in the IIS Manager. Here is an
article that explains things
http://msdn2.microsoft.com/en-us/lib...y5(vs.71).aspx
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************************************************
Think outside the box!
************************************************
"Husam" <Hu***@discussions.microsoft.comwrote in message
news:7E**********************************@microsof t.com...
Hi EveryBody:

I face the following error when I debugg my web application:

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.

the source of this error when I make spearet folder in my solution
explorer
and but my membership pages inside it and I want to make authentication
for
this folder by appliying the following code in the web.config file which
new
web config file that I replace it Into that folder:

<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authentication mode="Forms">
<forms name=".ASPXAUTH" loginUrl="~/Default.aspx" />
</authentication>
</system.web>
</configuration>
the red line that I recived when my application debugging as an error is :

<authentication mode="Forms">
some body toled me that I have to go to my project under the default
websites in IIS and right click my project directory then I will see a
button
grayied which create new under applcation setting but when I did so
nothing
change and I still recived the same error.

So any one can help me with this issue or redirect me?

regard's

Husam



Jul 13 '07 #2
Besides what Greg specified, this errror often occurs when you have a
web.config file in a folder or subfolder that is not marked in IIS as an
Application.

Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder(BETA): http://www.blogmetafinder.com

"Husam" wrote:
Hi EveryBody:

I face the following error when I debugg my web application:

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.

the source of this error when I make spearet folder in my solution explorer
and but my membership pages inside it and I want to make authentication for
this folder by appliying the following code in the web.config file which new
web config file that I replace it Into that folder:

<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authentication mode="Forms">
<forms name=".ASPXAUTH" loginUrl="~/Default.aspx" />
</authentication>
</system.web>
</configuration>
the red line that I recived when my application debugging as an error is :

<authentication mode="Forms">
some body toled me that I have to go to my project under the default
websites in IIS and right click my project directory then I will see a button
grayied which create new under applcation setting but when I did so nothing
change and I still recived the same error.

So any one can help me with this issue or redirect me?

regard's

Husam


Jul 13 '07 #3
Make sure the directory from where you are running your code
is configured as an Application, or at least a vurtual directory, in IIS.

You can use the IIS Manager to create your virtual directory/application.

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/
======================================
"Husam" <Hu***@discussions.microsoft.comwrote in message news:7E**********************************@microsof t.com...
Hi EveryBody:

I face the following error when I debugg my web application:

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.

the source of this error when I make spearet folder in my solution explorer
and but my membership pages inside it and I want to make authentication for
this folder by appliying the following code in the web.config file which new
web config file that I replace it Into that folder:

<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<authentication mode="Forms">
<forms name=".ASPXAUTH" loginUrl="~/Default.aspx" />
</authentication>
</system.web>
</configuration>
the red line that I recived when my application debugging as an error is :

<authentication mode="Forms">
some body toled me that I have to go to my project under the default
websites in IIS and right click my project directory then I will see a button
grayied which create new under applcation setting but when I did so nothing
change and I still recived the same error.

So any one can help me with this issue or redirect me?

regard's

Husam



Jul 13 '07 #4

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

Similar topics

9
by: Marina Anufreichik | last post by:
Hi, After deploymnet web application on web server I can access page on local machine and login fine but when I'm trying to access web site from remote machine I can see login page, but when I'm...
4
by: Rohith | last post by:
I need to import dlls that are present in the remote machine. Its a dll written in C that exposes methods. I want to import that dll in my C# application. But that dll is not present in the local...
4
by: Ian | last post by:
Can anyone help I have a web server on the internet with and ASP.NET application on it, the application is set to allow Anonymous Access and Integrated Windows. The Web.config is set to use...
3
by: Wm. Scott Miller | last post by:
What is the difference between using a username and password in the processmodel section vs using one in impersonation in the machine.config file? What are the advantages of each and what are the...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
13
by: Amjad | last post by:
Hi, Is there an equivalent to the "Application.Doevents" method in modules or Windows services? I want to make a Windows service that calls a DLL. The DLL would have all my functions and it...
3
by: wizofaus | last post by:
I've now created the same setup on four different machines, where I'm changing the processModel section machine.config so that ASP.NET (1.1) runs as SYSTEM, to give it permission to do various...
5
by: =?Utf-8?B?TWFydHluIEZld3RyZWxs?= | last post by:
From the amount of articles about this one I’m sure this gets asked a lot, but I haven’t yet found a succinct article which explains what is required in its entirety. I work using Visual...
4
by: Rahul B | last post by:
Hi, When i do a "db2 list applications", i get the required applications with their ip addresses. However, some of the application Ids are ip addresses while some application Ids are...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.