Welcome Guest Search | Active Topics | Members | Log In | Register

Problem in Embeding BlogEngine.net Inside my Website Options
jaab
Posted: Monday, November 03, 2008 4:15:09 PM
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?

Sponsor
Posted: Monday, November 03, 2008 4:15:09 PM
jwendl
Posted: Thursday, November 06, 2008 7:03:52 PM
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.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.899 seconds.