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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryCould not load type Could not load type 'DotNetNuke.Modules.Repository.UserUpload'
Previous
 
Next
New Post
3/6/2006 5:26 PM
 
Hi

I may have an issue with the installation of the Repository under DNN V4.0.2. When I try to run my test web site in VWD after installing the repository module I get two messages:

Could not load type 'DotNetNuke.Modules.Repository.UserUpload'
Error    Could not load type 'DotNetNuke.Modules.Repository.UserUpload'.    C:\web\WannaSki\DesktopModules\Repository\UserUpload.ascx    3

 I remove the Repository sub directory and it goes away and everything works.

I have the non-Visual Studio cheap-skate system, namely Visual Web Developer, SQL Express 2005, DNN V4.0.2 running under Win2K. I installed as  Repository  as normal under Host and the installation looked fine.

The source of the first compilation error is Line 3 in EditRepository.ascx:

<%@ Control language="vb" CodeBehind="EditRepository.ascx.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.Modules.Repository.EditRepository" %>

If I open the class explorer for the Repository DLL I see an alphabetic list of members:

AboutRepository
DashBoardSettings
DataProvider
Downloader
EditComment
Form

The EditRepository class seems to be missing. The same is true of UserUpload. I am new to DNN so I may be completely off the ball here. But I will see if I can use Visual Basic Express to  have a look at the source files and regenerate the dll.

Paul Cotter - who would be glad if you replied and told me I was on a wild goose chase.





 
New Post
3/6/2006 5:45 PM
 
Well...... it sort of makes sense as UserUpload and EditRepository aren't used anymore (they were replaced by Form in 3.1.18) though they're still included in the source. In VS2003 they're not included as part of the project but possibly they are in VWD. Try removing those files from the solution and then see what happens
 
New Post
3/6/2006 6:17 PM
 
Thanks for the prompt response. The removal worked.

I do not own VS nor do I know how the project works.

When I do an install without the source there is no project file, just things copied to a directory. In VWD  we create a website (a sort of project) for DNN 4. In order to run the web site it must compile without errors. VWD compiles all the source in all directories by looking for .apsx and .ascx and the appropriate source-behind fields. A source file can be excluded from the build with RHMB->exclude. This renames the files to mycontrol.ascx.exclude.

VWD does NOT work like IIS works, on a compile-when-needed basis. IIS would have no problem as the files are not used. VWD does and refuses to bring up the special run time web server.

After the 'disable rename' it is now excluded from the build as it is no longer a recognised compilable file type.
<hypothesis> In VS you can specify that a file is excluded.</hypothesis>

This means any included source file MUST compile. The easy solution to this is either remove the source files or rename them to have '.exclude' appended to them.

I was surprised this had not come up before, so I was fairly certain initially I had screwed things up - nothing in any of the forums I could find.

I come from a client-server background, so I'm trying to digest html, Java, vb, dnn, c#, IIS and ASP at one go. Occasionally, it sticks in the gullet.

Paul   -  paul*-who-is-at-*paulcotter.com

 
New Post
3/6/2006 6:26 PM
 
Most likely the reason that it hasn't come up before is that I "think" the majority of the userbase that would be opening up a project in any way is still using DNN3/VS2003.
 
New Post
3/6/2006 6:36 PM
 
It's good to be at the bleeding edge. Thanks again for your prompt response.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryCould not load type Could not load type 'DotNetNuke.Modules.Repository.UserUpload'


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