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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNN4 Custom module doesnDNN4 Custom module doesn't find its codefile
Previous
 
Next
New Post
5/9/2006 8:29 AM
 
Hi !
Know that I managed to create a module for DNN4, I tested the deployment as well and ran into a problem. I don't want to give away the source so I followed Shaun Walker's directions #2 (http://forums.asp.net/1114393/ShowPost.aspx). I made up a manifest file, zipped everything and installed it to a second DNN installation (on the same machine). The upload and installation as such were no problem.
The problem is, that the ascx does not find the (compiled) class from the codefile. The errormessage is "Could not load type namespace.classname". All necessary code is of course compiled and copied to the bin folder.


As soon as I copy the ascx.vb files also anything works fine...

Any hints / ideas?

Cheers, carsten
 
New Post
5/9/2006 12:18 PM
 
You must first compile your code. But you can not do it by VS Express. You need the VS 2005 pro edition. So you have to pay for it. VS2005 wil create a dll (or a couple of dlls according your project) and then you will also copy these dlls to DNNs bin directory then your project will run w/o need of vb files.
 
New Post
5/9/2006 1:53 PM
 
I already got VS 2005 pro and I even precompiled my developement environment including my own module.
Now I have one .dll based on the the code in the App_Code Folder of DNN4 and one App_Web_*.ascx.dll for each codebehind file.
I packaged everything in a zip file and uploaded the module in an other testing env. Uploading worked perfectly.
The problem is, that the ascx files of the module (like settings.ascx) do not find the (compiled) class from the code behind file. The errormessage is "Could not load type myCompany.Module.View.CodeBehindClass". All necessary code is of course compiled and copied to the bin folder.

It's really strange cause every other namespace like "myCompany.Module.Data" can be used / accessed.
Only the ones defined in the codebehinds cannot be used in the *.ascx files.

 
New Post
8/29/2006 11:18 AM
 
HI,
I have the same problem as you post here. If you have got solution, please, let me know. I almost have given up.
Thank
 
New Post
9/24/2006 12:34 AM
 
You guys ever figure this out?

In the vb:
Namespace PortVista.Modules.MyModule
    Partial Public Class View
        Inherits DotNetNuke.Entities.Modules.PortalModuleBase

...

In the ascx:
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="View.ascx.vb" Inherits="PortVista.Modules.MyModule.View" %>
...


Am I missing something?



Jason Honingford - Web & Software Developer
www.PortVista.com
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNN4 Custom module doesnDNN4 Custom module doesn't find its codefile


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