Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Deployment of Custom ModulesDeployment of Custom Modules
Previous
 
Next
New Post
2/6/2007 12:18 AM
 
Hi,

We have developed a dotnetnuke website(4.4.0) in our development environment.
It consists of mostly the HTML/Text module and some custom modules.
Now we want to deploy the same in production.
For this, we created a new starter site in production and copied all the files from the development to the production.
The html pages were getting displayed correctly - no problems.
We wanted to install the custom modules without exposing the code.
So we followed these steps:
1.Used Publish website to get the dlls
2. Packaged the custom modules with dlls and removed .cs files. Changed dnn file paths that referred the .cs files and replaced them with the dlls.
3. We uninstalled the custom modules which had got automatically installed in production because of copying the files.
4. Removed the custom module from web.config <codesubdirectories>.
5. Used module defintions to install the new module using the .zip file.
6. Installed properly.
7. When we add this module in the page, it gives an error saying it cannot find the ViewModuleName.ascx.cs file
8. Get Module Load exception and cannot find the code behind file.
Can someone provide any help on this as soon as possible?
Thanks
 
New Post
2/6/2007 3:21 AM
 
Check the tutorials from Core Team Member Michael Washington.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/6/2007 12:47 PM
 
Hi,
I have followed the same steps as mentioned in the tutorials.
But I still get this error:
Error: bhCardPartner is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: The file '/Bhn/DesktopModules/bhCardPartner/ViewbhCardPartner.ascx.cs' does not exist. ---> System.Web.HttpParseException: The file '/Bhn/DesktopModules/bhCardPartner/ViewbhCardPartner.ascx.cs' does not exist. ---> System.Exception: The file '/Bhn/DesktopModules/bhCardPartner/ViewbhCardPartner.ascx.cs' does not exist. ---> System.Exception: The file '/Bhn/DesktopModules/bhCardPartner/ViewbhCardPartner.ascx.cs' does not exist. ---> System.Exception: The file '/Bhn/DesktopModules/bhCardPartner/ViewbhCardPartner.ascx.cs' does not exist. ---> System.Web.HttpException: The file '/Bhn/DesktopModules/bhCardPartner/ViewbhCardPartner.ascx.cs' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.UI.TemplateParser.ProcessCodeFile(VirtualPath codeFileVirtualPath) at System.Web.UI.TemplateParser.ProcessMainDirectiveAttribute(String deviceName, String name, String value, IDictionary parseData) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ProcessMainDirectiveAttribute(String deviceName, String name, String value, IDictionary parseData) at System.Web.UI.TemplateControlParser.ProcessMainDirectiveAttribute(String deviceName, String name, String value, IDictionary parseData) at System.Web.UI.TemplateParser.ProcessMainDirective(IDictionary mainDirective) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ProcessMainDirective(IDictionary mainDirective) at System.Web.UI.TemplateControlParser.ProcessMainDirective(IDictionary mainDirective) at System.Web.UI.TemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.BaseTemplateParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateControlParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) --- End of inner exception stack trace --- 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) --- End of inner exception stack trace --- 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.ParseInternal() 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) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

This is my dnn file

<dotnetnuke version="3.0" type="Module">
  <folders>
    <folder>
      <name>bhCardPartner</name>
      <friendlyname>bhCardPartner</friendlyname>
      <foldername>bhCardPartner</foldername>
      <modulename>bhCardPartner</modulename>
      <description>A bhCardPartner module</description>
      <version>01.00.00</version>
      <businesscontrollerclass>BlackHawk.Modules.bhCardPartner.bhCardPartnerController</businesscontrollerclass>
      <modules>
        <module>
          <friendlyname>bhCardPartner</friendlyname>
          <cachetime>60</cachetime>
          <controls>
            <control>
              <src>DesktopModules/bhCardPartner/ViewbhCardPartner.ascx</src>
              <type>View</type>
              <helpurl></helpurl>
            </control>
            <control>
              <key>Edit</key>
              <title>Edit Content</title>
              <src>DesktopModules/bhCardPartner/EditCardPartner.ascx</src>
              <type>Edit</type>
              <helpurl></helpurl>
            </control>
            <control>
              <key>Settings</key>
              <title>CardPartner Settings</title>
              <src>DesktopModules/bhCardPartner/Settings.ascx</src>
              <type>Edit</type>
              <helpurl></helpurl>
            </control>
          </controls>
        </module>
      </modules>
      <files>
        <file>
          <name>ViewbhCardPartner.ascx</name>
        </file>
       
        <file>
          <path>App_LocalResources</path>
          <name>ViewbhCardPartner.ascx.resx</name>
        </file>
        <file>
          <path>App_LocalResources</path>
          <name>EditCardPartner.ascx.resx</name>
        </file>
        <file>
          <path>App_LocalResources</path>
          <name>Settings.ascx.resx</name>
        </file>
        <file>
          <name>App_SubCode_bhCardPartner.dll</name>
        </file>
       
    <file>
          <name>App_Web_viewbhcardpartner.ascx.6c92486a.dll</name>
       </file>

        <file>

          <name>Uninstall.SqlDataProvider</name>
        </file>
      </files>
    </folder>
  </folders>
</dotnetnuke>

Regards
Padma
 
New Post
2/8/2007 5:38 PM
 
Hi,
The solution to the above problem is to get the ascx file from the  published content. When we publish the webiste, it removes the "CodeFile" and modifies the Inherits  tag to pick up the correct dll. rather than the .cs file.
Eg:
<%@ control language="C#" inherits="Sample.Modules.BhCardPartner.ViewBhCardPartner, App_Web_viewbhcardpartner.ascx.6c92486a" autoeventwireup="true" %>
<%@ Register TagPrefix="dnn" TagName="Audit" Src="~/controls/ModuleAuditControl.ascx" %>

So, when we package the module we should use this ascx file.
Maybe it was a simple thing, but I just noticed it now.

Regards
Padma
 
New Post
2/9/2007 4:05 AM
 

Complicated... Try using the WAP approach to developing modules (check the link in my sig), it will make your life much easier...

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Deployment of Custom ModulesDeployment of Custom Modules


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out