Rank: Newbie
Joined: 11/3/2008 Posts: 1 Points: 3
|
Hello Guys I’m trying to add BlogEngine.NET 1.4.5 to my existing ASP.NET 2.0 website on my local machine. I have moved the BlogEngine.Web folder to my website folder. According to official documentations if I set my website to an application in IIS 7 there wouldn’t be any problem. But the following error is shown when I try to run my website:
Error21 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. C:\inetpub\wwwroot\myWebsite\BlogEngine.Web\Web.Config
It seems that something wrong about IIS. Do you guys have any Idea what I should do to solve this problem?
|
Rank: Newbie
Joined: 9/20/2008 Posts: 4 Points: 12 Location: Minnesota
|
This is because your main website has a web.config and blog engine has a web.config. I am assuming you are putting blogengine under ~/blog/ or something. If this is the case you can either 1) Merge both the web.config's and put the merged file on the root of the website ~/ while deleting the one in ~/blog/ or you can 2) make ~/blog/ a separate web application inside IIS by making it a new separate virtual directory.
|