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

Tag as favorite
Problem in Embeding BlogEngine.net Inside my Website
jaab
#1 Posted : Monday, November 03, 2008 4:15:09 PM
Rank: Newbie

Medals:

Joined: 11/3/2008
Posts: 1
Points: 3

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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  
 
jwendl
#2 Posted : Thursday, November 06, 2008 7:03:52 PM
Rank: Newbie

Medals:

Joined: 9/20/2008
Posts: 7
Points: 21

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
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
Tag as favorite
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.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 RC1 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.048 seconds.