Problem with module ascx

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/15/2011 4:34:16 AM
Gravatar
Total Posts 8

Problem with module ascx

Hi Joe, I have develop a module ASCX, in debug mode works, but when the component is published in IIS find this message into System Registry of mojoPortal:

2011-03-10 10:35:06,660 ERROR mojoPortal.Web.UI.CmsPage - failed to load control Modules/HtmlModuleIFrame.ascx
System.Web.HttpParseException (0x80004005): Could not load type 'mojoPortal.Web.ContentUI.HtmlModuleIFrame'. ---> System.Web.HttpParseException
   (0x80004005): Could not load type 'mojoPortal.Web.ContentUI.HtmlModuleIFrame'. ---> System.Web.HttpException (0x80004005): Could not load type
   'mojoPortal.Web.ContentUI.HtmlModuleIFrame'.
   at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError)
   at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly)
   at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData)
   at System.Web.UI.TemplateParser.ProcessException(Exception ex)
   at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
   at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
   at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
   at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
   at System.Web.UI.TemplateParser.Parse()
   at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
   at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
   at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
      allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean
      allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp,
      Boolean allowBuildInPrecompile, Boolean ensureIsUpToDate)
   at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath)
   at mojoPortal.Web.UI.CmsPage.LoadPage()

In mojoPortal version 2.3.4.2 dotnet 2 works.

In mojoPoratl version 2.3.6.2 dotnet 4 don't works.

Can you help me? Thanks in advance (I'm sorry for my bad english)

3/15/2011 1:18:22 PM
Gravatar
Total Posts 18439

Re: Problem with module ascx

It sounds like you have created a custom module control at Modules/HtmlModuleIFrame.ascx and compiled it into your old copy of mojoPortal but it is not compiled in the new version so it cannot load the control. You should not be compiling custom code into mojoPortal, it should be in your own project using your own namespace.

You must sign in to post in the forums. This thread is closed to new posts.