Solved

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

Posted on 2006-11-10
19
403 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

627 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