开发者

How do I resolve the config error which states a machine to application error

I imported a website made in visual studio express 2008 to visual studio express 2010. When I run the home page I get the following error:

"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."

When I looked up the meaning of this on Google I read their needed to 开发者_JS百科be a change to the configuration of the virtual directory. Another suggestion was to change the web config files . T

Were these suggestions correct? If so how do I emplement them so that I can view these website pages on my local machine.


To try the first suggestion:

Right-Click MY_COMPUTER, choose MANAGE.

Expand the SERVICES (then IIS) section(s) in the left-hand pane until you can see the directory containing the "home page"

Right-Click that folder and Choose PROPERTIES.

Click the "Create Application" button.

================================ EDIT ADDED after I realized I could edit an answer

No, you can't create an app using the WINDOWS EXPLORER...

So... here's a more descriptive instruction:

Once you've expanded "Services and Apps" the left hand pane should contain (at least) "Services", Indexing Service, and "Internet Information Services."

Click the "+" to the left of "Internet Information Services" and that action should expose (at least) "Web Sites", Again click the "+" to expose (at least) "Default Web Site."

Once more click the "+" to the left of Default, to expose the Virtual Directories.

Hopefully you will find the FOLDER in question (containing your 'Home Page'). Right-click it, choose PROPERTIES, and see the "Create Application" on the "Directory" tab of the window that pops up.

////////////////////////////////\

If You Do Not See your folder in that final list, it is because there is no virtual directory pointing to the My Documents folder that contains your web site (and home page.)

To create a virtual directory, right-click on that DEFAULT WEB SITE (now visible in the left hand pane) Click "New.." and choose "Virtual Directory." Follow the directions offered in the popup window ... i.e. Browse to your folder, etc.

Too bad StackOverflow does not offer the ability for me to add pictures.

If you still have trouble, I can create a set of screen shots for you and put a link to it in another response.


Did the directory tree get jacked up on import? I've gotten this when for whatever reason, I end up with two web.configs in the directories of the project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜