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  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Could not load type
Previous Previous
 
Next Next
New Post 4/25/2006 7:51 AM
User is offline Haris Sheikh
66 posts
10th Ranked


Could not load type  

What can be the reason for this error in log viewer:

InnerException: Parser Error: Could not load type 'DotNetNuke.Modules.Admin.PortalManagement.SiteSettings_CMP'.

Last line of exception is:

at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings)

Where SiteSettings_CMP.ascx is my new control copied from SiteSettings.ascx. I have recompiled the solution many times and no error given, all files are present, namespace is correct, all db entries seems to be correct. So what should I check.

Thanks   

 
New Post 5/2/2006 12:17 AM
User is offline Vladan Strigo
505 posts
Vladan.Strigo.NET
8th Ranked




Re: Could not load type  

Well, there can be 2 things:

1. Your assembly is not in the bin
2. The namespace in the control to the class is not correct

 


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

 
New Post 5/3/2006 6:56 AM
User is offline Haris Sheikh
66 posts
10th Ranked


Re: Could not load type  
 Vladan Strigo wrote

Well, there can be 2 things:

1. Your assembly is not in the bin

as this is done in core dotnetnuke project so i guess there should not be a problem of assembly. However I am getting this error when i build the solution:

Cannot copy assembly 'Dotnetnuke' to file 'C:\Inetpub\wwwroot\dnn\bin\DotNetnuke.dll'. The process cannot access the file because it is being used by another process.

Is this creating the problem? How can I fix this? I have tried alot but could not.

 Vladan Strigo wrote
2. The namespace in the control to the class is not correct

no problem with the namespace, in vb:
Namespace DotNetNuke.Modules.Admin.PortalManagement
and
Public MustInherit Class SiteSettings_CMP
Inherits DotNetNuke.Entities.Modules.PortalModuleBase

in html:
<%@ Control Inherits="DotNetNuke.Modules.Admin.PortalManagement.SiteSettings_CMP" CodeBehind="SiteSettings_CMP.ascx.vb" language="vb" AutoEventWireup="false" Explicit="True" enablev13wstat3="True" targetSchema="http://schemas.microsoft.com/intellisense/ie5" debug="False" %><%@ Control Inherits="DotNetNuke.Modules.Admin.PortalManagement.SiteSettings_CMP" CodeBehind="SiteSettings_CMP.ascx.vb" language="vb" AutoEventWireup="false" Explicit="True" enablev13wstat3="True" targetSchema="http://schemas.microsoft.com/intellisense/ie5" debug="False" %><%@ Control Inherits="DotNetNuke.Modules.Admin.PortalManagement.SiteSettings_CMP" CodeBehind="SiteSettings_CMP.ascx.vb" language="vb" AutoEventWireup="false" Explicit="True" enablev13wstat3="True" targetSchema="http://schemas.microsoft.com/intellisense/ie5" debug="False" %>

 
New Post 5/3/2006 8:42 AM
User is offline Olivier Dupuis
112 posts
9th Ranked


Re: Could not load type  
Cannot copy assembly 'Dotnetnuke' to file 'C:\Inetpub\wwwroot\dnn\bin\DotNetnuke.dll'.

I think this is your problem.  I've had this one a couple of times and whenever this pops up, I had to close my solution, and delete both debug folders under my project directory :
  1.  /dnn/DesktopModules/MyModule/obj/Debug
  2. /dnn/DesktopModules/MyModule/Providers/SqlDataProvider/obj/Debug

When this is done and you recompile your project, the error should be gone.  And your module should then work... I hope :)

Olivier

Olivier Dupuis
Aikidev - An Agile Programming Experience
 
New Post 5/5/2006 1:18 AM
User is offline Vladan Strigo
505 posts
Vladan.Strigo.NET
8th Ranked




Re: Could not load type  

Well the "cannot copy...." problem usually occurs when you have multiple referenced assemblies which reference DotNetNuke.dll internally each try to copy it's version of DotNetNuke.dll to the bin directory. The solution is to set to most (if not all) of them (references) the "copy local" attribute to false... then they will not try to put their child dlls in the bin directory.

as for the other problem, do you have maybe the root namespace defined also? if you do you get actually the double namespace to that class.

So, try to solve it in the following way:

1. Check that all dll's that need to go to the bin directory really are deployed there.
2. Check your namespaces (you can take a look at class view to see the complete final path to a certain class)
3. Get your other references in order so that they don't make problems (e.g. DotNetNuke.dll)

hope it helps,

 


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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Could not load type
 


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.

 


Where Every Home is an Investment
Where Every Home is an Investment
www.nestbrokers.com
Faculty of Graduate and Postdoctoral Studies
At the graduate level, the University of Ottawa offers more than 180 graduate certificates, master's degrees and PhDs, as well as interdisciplinary programs such as Women's Studies and Canadian Studies. Many postdoctoral opportunities are available in both the sciences and the humanities. For further information, please consult the site of the Faculty of Graduate and Postdoctoral Studies.
www.grad.uottawa.ca
Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com

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