İnstalling forum to /forum subfolder

Sep 5, 2012 at 10:04 AM

Hi,

I have a mvc3 web site and I want to integrate forum to /forum folder.

and I didnt  :/ Please do you help me?

I need a topic to do it step by step

 

Thanks,

Best Regards,

Berkay Aydın

Coordinator
Sep 5, 2012 at 10:09 AM

Hi Berkay!

Are you using IIS? 

If yes, you must add a subapplication named "forum" inside your IIS website, then follow the same steps defined on the installation guide.

Here you have more info on sites, applications and virtual directories on IIS7: http://learn.iis.net/page.aspx/150/understanding-sites-applications-and-virtual-directories-on-iis/

 

Kind Regards,

Jorge

Sep 5, 2012 at 2:26 PM

Server Error in '/forumm1' Application.

The partial view 'bodycontainer' was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/Forums/bodycontainer.aspx
~/Views/Forums/bodycontainer.ascx
~/Views/Shared/bodycontainer.aspx
~/Views/Shared/bodycontainer.ascx
~/Views/Forums/bodycontainer.cshtml
~/Views/Forums/bodycontainer.vbhtml
~/Views/Shared/bodycontainer.cshtml
~/Views/Shared/bodycontainer.vbhtml

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: The partial view 'bodycontainer' was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/Forums/bodycontainer.aspx
~/Views/Forums/bodycontainer.ascx
~/Views/Shared/bodycontainer.aspx
~/Views/Shared/bodycontainer.ascx
~/Views/Forums/bodycontainer.cshtml
~/Views/Forums/bodycontainer.vbhtml
~/Views/Shared/bodycontainer.cshtml
~/Views/Shared/bodycontainer.vbhtml

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 


[InvalidOperationException: The partial view 'bodycontainer' was not found or no view engine supports the searched locations. The following locations were searched:
~/Views/Forums/bodycontainer.aspx
~/Views/Forums/bodycontainer.ascx
~/Views/Shared/bodycontainer.aspx
~/Views/Shared/bodycontainer.ascx
~/Views/Forums/bodycontainer.cshtml
~/Views/Forums/bodycontainer.vbhtml
~/Views/Shared/bodycontainer.cshtml
~/Views/Shared/bodycontainer.vbhtml]
   System.Web.Mvc.HtmlHelper.FindPartialView(ViewContext viewContext, String partialViewName, ViewEngineCollection viewEngineCollection) +390
   System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) +351
   System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +158
   NearForums.Web.UI.TemplatedLayout.WriteItem(TemplateItem item) +429
   NearForums.Web.UI.TemplatedLayout.ExecutePageHierarchy() +155
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +173
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +89
   System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +234
   System.Web.WebPages.WebPageBase.PopContext() +234
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +378
   System.Web.Mvc.<>c__DisplayClass1c.b__19() +33
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +726368
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +265
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +726324
   System.Web.Mvc.Controller.ExecuteCore() +159
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +334
   System.Web.Mvc.<>c__DisplayClassb.b__5() +62
   System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +15
   System.Web.Mvc.<>c__DisplayClasse.b__d() +52
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929
I created a forum application in my site.

I have successfully installed near forum to forum application but I have get these errors.

Please help me,

Coordinator
Sep 5, 2012 at 2:39 PM

Hi,

It looks like a problem with templating... are you using a built-in template or a template of your own?

Kind regards,

Jorgebg

Sep 5, 2012 at 3:07 PM

I changed default template through nearforum templates. 

Thanks,

Best Regards