Solved

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

Posted on 2006-11-10
19
395 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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
 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

790 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