Link to home
Start Free TrialLog in
Avatar of stretch73
stretch73Flag for United States of America

asked on

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
Avatar of kraffay
kraffay

Did you set up the site as a virtual directory in IIS, or are running from VisualStudio's web server (http://localhost:port#)?
Avatar of stretch73

ASKER

Running from visual studio's web server
Are there any subfolder under the root of your site?  You may have nested web sites.
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.
1.  Open up IIS
2.  Right-click the Web Site\Default Web Site\Mobility_NET node.
3.  Click "Create"
I don't think I have IIS installed on my local machine.  I haven't needed it before to set up a .NET site.
IIS creates the Inetpub folder when it is installed.  Can you open Control Panel/Admin Tools/Internet Info Services?
There's no IIS listed under Admin Tools
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.
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
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.
What is the URL of the site you trying to browse?
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?
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.
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.

Okay, scratch that.  Moved the tag register out of the master page and now it's at least erroring out somewhere else.
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.  
ASKER CERTIFIED SOLUTION
Avatar of kodiakbear
kodiakbear

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial