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 ForumsSurveySurvey'Could not load type' error... just can't solve it!
Previous
 
Next
New Post
8/2/2011 1:50 PM
 
Hi there!

When I install your ready-made Survey_04.70.00_Install.zip file on my DNN site, it works like a charm!  However, my boss would like me to make some modifications to it so I've been trying to make an installable module from your source code at http://dnnsurvey.codeplex.com/SourceControl/changeset/view/60144.

I keep getting the following error:

Error: Survey is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type 'DotNetNuke.Modules.Survey.survey'. ---> System.Web.HttpParseException: Could not load type 'DotNetNuke.Modules.Survey.survey'. ---> System.Web.HttpParseException: Could not load type 'DotNetNuke.Modules.Survey.survey'. ---> System.Web.HttpException: Could not load type 'DotNetNuke.Modules.Survey.survey'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throw ) at System.Web.UI.TemplateParser.ProcessInheritsAttribute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirectiveAttributes(IDictionary parseData) --- 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 DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---



You can see my current file structure here.

In the properties, I've set the framework to DNN 3.5 (to match my site's version).

Both the namespace for the project and the assembly name are "DotNetNuke.Modules.Survey".

I haven't modified any of the vb or aspx files.

To make the package, I currently have a batch script runs after a successful compile and zips up all the files and folders in the project.  The zipped version looks exactly the same as the unzipped one, except it doesn't include the build.bat file  :)

Oh, and there *is* a bin\DotNetNuke.Modules.Survey.dll file - it's just hidden in this view.  But it does get copied over to the installation zip file (packed in a "bin" folder) with the rest of the files.

Do you guys have any idea what I might be doing wrong?  It installs without any errors at all... just won't run properly when I put it on a page (as the error shows).

Thanks so much  :)  If there's any other information I can post that might help solve the problem, please let me know.
 
New Post
8/2/2011 8:32 PM
 
HttpParseExceptions can be difficult to track down as the exception is thrown during the parsing the the .ascx markup (in this case in Survey.ascx) before any debugging tools such as setting a breakpoint in your vb code can be used. It is usually not a namespacing issue.

I would very carefully compare your modified Survey.ascx with that in the original package. It could be a missing or doubled quote, less-then or greater-than symbol, overlapping element tags, missplaced % symbol in a compiler directive or databinding markup, etc.

Also, the DNN Survey module is a WSP project without an assembly which requires the vb files to be included in the installable package. Have you changed it to a WAP project which will build to an assembly dll and not require inclusion of the vb files in the installable package? If so, were designer files (such as Survey.ascx.designer.vb) created during the conversion from WSP to WAP?

Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
8/3/2011 2:57 PM
 
Thank you so much for your reply!

I haven't actually made changes to any of the files - I'm trying to get it working as-is before making any changes!  I did double-check using the SourceGear file comparer (DiffMerge), and my survey.ascx files is identical to the original.

This is a VB ASP.NET Web Application - to put it together, I created a new project (vb web app) in Visual Studio, threw out the template files, and copied all the Survey module files into it.  Yes, designer files were created for Survey.ascx, EditSurvey.ascx, and Settings.ascx, and a dll was created in the bin folder

I'm not sure how to use just the dll to install my module.... so far, whenever I've made modules, I've included the dll as well as all the files (otherwise, the dnn file complains that stuff is missing when I try to install it).  How can I do this?  Or would you recommend I re-create this as a Web Site Project?

(As a side note, I'd like the users of this module to just be able to click "Install New Module" in DNN, select the package, and be ready to make surveys  :)  I don't want them to have to put together anything themselves in DNN)

Thanks again, very much!
 
New Post
8/3/2011 7:00 PM
 
As a side note... the version of the Survey module I downloaded looks like it is already a WAP, from the way it's set up.  In the comments on the Survey.ascx.vb page, it also says this:

4/15/2011 - Converted to WAP and Updated to DNN 5 Compliance by Robert J Collins

Hopefully this helps narrow down the possibilities of what the problem could be... I'm pretty stumped!
 
New Post
8/4/2011 3:03 PM
 
I don't know for sure, but I might have narrowed it down a little bit.... here are two things I found out:

(1)
I changed my build.bat file to create a folder that exactly matches the extracted contents of Survey_04.70.00_Install.zip (double-checked this with a folder diff), but I still got exactly the same error.

So I did a file diff on Survey_04.70.00_Install.zip and on my own zipped module. It said their raw content was different! But when I extracted my zipped files again and compared them to the extracted Survey_04.70.00_Install.zip files, they were the same again.

I'm using 7-zip to compress my files - if you're using different compression software, do you think it might be doing something differently?

(2)
Even though everything compiles properly, survey.ascx doesn't seem to like EditUrl or FormatQuestion. A blue wriggly line shows up under the "Content" tab with one of two messages (the message switches between them after I build/rebuild the project):

'EditUrl' is not declared. It may be inaccessible due to its protection level.
'FormatQuestion' is not declared. It may be inaccessible due to its protection level.

Do either of these give you any ideas on what could be happening? Thanks again so much for helping me with this!
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsSurveySurvey'Could not load type' error... just can't solve it!


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