Running BlogEngine.NET with ASP.NET MVC on the same site?

Can someone help me with this? I have a Windows 2008 server and the MVC 2.0 site is located in the root directory of IIS 7.0. The site works great. I want to use BlogEngine.NET with my site. For example, if my name is as http://mysite.com (which is the root of IIS) and the blog should be http://mysite.com/blog/Default.aspx

Is it possible? Can I create a sub-virtual directory in my root (where the MVC 2 application is located) and run ASP.NET BlogEngine.Net in it?

Any ideas appreciated.

+4
source share
2 answers

If you decide to go with one web application, you can find the following useful links:

http://redditech.wordpress.com/2009/02/16/howto-convert-blogenginenet-from-web-site-to-web-application-project/

http://www.upfromthesky.com/blog/post/2009/01/30/Integrate-BlogEngine-145-into-an-exisitng-website-%28VSNET-Website-Project%29.aspx

I currently have a blog running on mysite.com/blog - it seems to be working fine, I'm just going to consolidate membership services to work with my credentials.

There are important comments on the first link that you probably need to make in order to work with the extensions correctly.

+2
source

Disable the / blog application from the MVC application using

<clear /> 

under

 <system.web><pages><namespaces><clear /> 

See the link for more details.

http://www.dondraper.com/2010/02/how-to-stop-inheritance-of-webconfig-files/

0
source

Source: https://habr.com/ru/post/1305893/


All Articles