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

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
stretch73Asked:
Who is Participating?
 
kodiakbearConnect With a Mentor Commented:
Closed, 200 points refunded.
kb
Experts Exchange Moderator
0
 
kraffayCommented:
Did you set up the site as a virtual directory in IIS, or are running from VisualStudio's web server (http://localhost:port#)?
0
 
stretch73Author Commented:
Running from visual studio's web server
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
kraffayCommented:
Are there any subfolder under the root of your site?  You may have nested web sites.
0
 
stretch73Author Commented:
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
 
kraffayCommented:
1.  Open up IIS
2.  Right-click the Web Site\Default Web Site\Mobility_NET node.
3.  Click "Create"
0
 
stretch73Author Commented:
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
 
kraffayCommented:
IIS creates the Inetpub folder when it is installed.  Can you open Control Panel/Admin Tools/Internet Info Services?
0
 
stretch73Author Commented:
There's no IIS listed under Admin Tools
0
 
kraffayCommented:
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
 
stretch73Author Commented:
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
 
stretch73Author Commented:
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
 
kraffayCommented:
What is the URL of the site you trying to browse?
0
 
muzzy2003Commented:
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
 
ethothsCommented:
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
 
stretch73Author Commented:
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
 
stretch73Author Commented:
Okay, scratch that.  Moved the tag register out of the master page and now it's at least erroring out somewhere else.
0
 
stretch73Author Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.