Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  DNN4 Custom module doesn't find its codefile
Previous Previous
 
Next Next
New Post 5/9/2006 6:29 AM
User is offline Carsten Meyer
14 posts
www.dnnsap.net
10th Ranked


DNN4 Custom module doesn't find its codefile 
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 10:18 AM
User is offline Can Dogancan
9 posts
www.navartus.com
10th Ranked


Re: DNN4 Custom module doesn't find its codefile 
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 11:53 AM
User is offline Carsten Meyer
14 posts
www.dnnsap.net
10th Ranked


Re: DNN4 Custom module doesn't find its codefile 
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 9:18 AM
User is offline Simon Pham
9 posts
10th Ranked


Re: DNN4 Custom module doesn't find its codefile 
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/23/2006 10:34 PM
User is offline Jason Honingford
437 posts
www.portvista.com
8th Ranked


Re: DNN4 Custom module doesn't find its codefile 
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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  DNN4 Custom module doesn't find its codefile
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


UK - DotNetNuke providers
UK providers of DNN module development and skin package design. Oxford Information Labs provides cost-effective solutions for businesses and organisations specialising in Skin design and bespoke module development.
www.oxil.co.uk
TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com
The Forerunner Network
The Forerunner Network consists of a group of Dynamic Website & Interactive Membership Portal hosting services that are managed by Forerunner Communications. Our services span a wide range of markets and enable individuals, organizations and businesses to build and manage dynamic, interactive portals and websites.
The Forerunner Network

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP