Solved

It is an error to use a section registered as allowDefinition='MachineToApplication'

Posted on 2006-11-10
19
384 Views
Last Modified: 2008-02-01
I am new to .NET and in trying to install the IE Web Controls I started getting the following error:

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.

I'm running this on my local machine so I am not sure how to configure any of the directories as an application.

Any thoughts?

Thanks,

N
0
Comment
Question by:stretch73
19 Comments
 
LVL 9

Expert Comment

by:kraffay
ID: 17916042
Did you set up the site as a virtual directory in IIS, or are running from VisualStudio's web server (http://localhost:port#)?
0
 

Author Comment

by:stretch73
ID: 17916067
Running from visual studio's web server
0
 
LVL 9

Expert Comment

by:kraffay
ID: 17916154
Are there any subfolder under the root of your site?  You may have nested web sites.
0
 

Author Comment

by:stretch73
ID: 17916171
Yes, I do.  

Here's the path to the site:

C:\Inetpub\wwwroot\eec_portal\Mobility_NET

Mobility_NET is the site I am currently working on.
0
 
LVL 9

Expert Comment

by:kraffay
ID: 17916206
1.  Open up IIS
2.  Right-click the Web Site\Default Web Site\Mobility_NET node.
3.  Click "Create"
0
 

Author Comment

by:stretch73
ID: 17916303
I don't think I have IIS installed on my local machine.  I haven't needed it before to set up a .NET site.
0
 
LVL 9

Expert Comment

by:kraffay
ID: 17916381
IIS creates the Inetpub folder when it is installed.  Can you open Control Panel/Admin Tools/Internet Info Services?
0
 

Author Comment

by:stretch73
ID: 17916487
There's no IIS listed under Admin Tools
0
 
LVL 9

Expert Comment

by:kraffay
ID: 17916576
Are you logged in with local admin rights?

Also, can you confirm that you can create a new web site in Visual Studio?

I think your system was installed with IIS and you either don't have rights to admin it or it was uninstalled after your site was setup.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:stretch73
ID: 17916601
I am logged in with local admin rights, I'm sure of that.  

Yes, I can create a new web site in Visual Studio.

As far as rights or uninstall, I don't know
0
 

Author Comment

by:stretch73
ID: 17916696
I got it to work, it had something to do with the web.config file.  I created a new site and then just copied the files I needed into it.  Left the config file and just added the lines I needed into the new one.
0
 
LVL 9

Expert Comment

by:kraffay
ID: 17916703
What is the URL of the site you trying to browse?
0
 
LVL 16

Expert Comment

by:muzzy2003
ID: 17916712
IIS under Admin Tools would appear as either Internet Information Services or Internet Services Management (or something like that). Are you sure it's not there under any name like this?
0
 
LVL 11

Expert Comment

by:ethoths
ID: 17917558
OK here we go...

I you don't have IIS installed becuase your using the built in web server that comes with VS2005. It's called Pegasus or somthing like that. You should notice some activity near your system tray when you start yor web. I don't use it becuase I have IIS but it's a really idea since it allows you to distribute your web as a folder and anybold that has 'Pegasus' it can run as a web site. It a bit of a virtual server.

Your web config issue is just what you said. Basically there is a conflict in settings. On your machine you will have a file called machine.config which is the root of all the configuration files on your machine. Below this you have your individual web.config files. There are some things in the machine.config that cannot be changed in a higher level config file. Somehow your got a setting in your web.config that conflicted with your machine.config.

Sorry I did not get to you sooner but it looks like you've got it sorted now.
0
 

Author Comment

by:stretch73
ID: 17929812
ethoths

Thanks for the response, that must have been the problem.  Maybe you can help me with the original problem that got me into the latest one.

I'm trying to install the IE Web Controls and just cannot get it to fly.  I followed the installation instructions to the letter but I'm still getting the following error:

Parser Error Message: Unknown server tag 'aspnet:tabstrip'.

Source Error:

Line 8:              <aspnet:tabstrip id="mytabstrip"
Line 9:                    onSelectedIndexChange="IndexChange"

I did have to change the way I registered the tag.  I'm using master pages and had to put the reference in the actual master page.

0
 

Author Comment

by:stretch73
ID: 17929851
Okay, scratch that.  Moved the tag register out of the master page and now it's at least erroring out somewhere else.
0
 

Author Comment

by:stretch73
ID: 17943345
It wasn't an IIS problem, .NET 2.0 doesn't support Webcontrols.  I went with the Multiview control and built a custom control out of linkbuttons that passed which view object to display.  
0
 
LVL 1

Accepted Solution

by:
kodiakbear earned 0 total points
ID: 17975404
Closed, 200 points refunded.
kb
Experts Exchange Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now