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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Renaming Renaming 'YourCompany' to 'MyCompany'
Previous
 
Next
New Post
3/5/2010 4:21 PM
 

I've thus far been able to create a new project using the DNN module template, build it, import it into my DNN site (using a fix) when I run it I expect to see a SQL-related error.

I do not.  I get this one:

Error: Data Connection Test is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load type 'YourCompany.Modules.DataConnection.ViewDataConnection'. ---> System.Web.HttpParseException: Could not load type 'YourCompany.Modules.DataConnection.ViewDataConnection'. ---> System.Web.HttpParseException: Could not load type 'YourCompany.Modules.DataConnection.ViewDataConnection'. ---> System.Web.HttpException: Could not load type 'YourCompany.Modules.DataConnection.ViewDataConnection'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) 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.ParseReader(StreamReader reader, VirtualPath virtualPath) 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.UI.TemplateParser.Parse(ICollection referencedAssemblies, VirtualPath virtualPath) 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.Compilation.BuildManager.GetVPathBuildResult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) in C:\CCNet_Builds\DotNetNuke_5_Maintenance\WorkingDirectory\Library\UI\ControlUtilities.vb:line 55 at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() in C:\CCNet_Builds\DotNetNuke_5_Maintenance\WorkingDirectory\Library\UI\Modules\ModuleHost.vb:line 229 --- End of inner exception stack trace ---

 Any hints as to why it is not finding the assembly?

I should point out that I am using a different directory structure under DesktopModules - it is under MyCompany\ModuleName unlike the the normal path.  I have already corrected the manifest to point to the specific user controls

 
New Post
3/6/2010 4:49 AM
 
make sure to provide proper namespace names and folder names and edited it in all places. if you create a WSP module with classes in app_code subdirectory, the subdirectory needs to be registered in web.config.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/8/2010 10:13 AM
 

As I've heard from other developers that changing the web.config should be avoided I tried adding the dll to the dotnetnuke\bin directory.  Is this an acceptable practice?

If not I can research more into changing the web.config to point to the binaries in my project directory

New error though:

New error now:

BC30560: 'SqlHelper' is ambiguous in the namespace 'Microsoft.ApplicationBlocks.Data'.

Line 149:        ''' <param name="Parameter">Parameter object.</param>
Line 150:        Public Overrides Sub AddParameter(ByVal Parameter As IFrameParameter)
Line 151:            SqlHelper.ExecuteNonQuery(ConnectionString, GetName(AddParamProc), _
Line 152:                                       Parameter.ModuleID, Parameter.Name, Parameter.Type, Parameter.TypeArgument)
Line 153:        End Sub

Source File: c:\inetpub\wwwroot\dotnetnuke\App_Code\IFrame\Providers\DataProviders\SqlDataProvider\SqlDataProvider.vb    Line: 151

I should mention that there were errors when I first started the template project - a few surrounding the 'SqlDataProvider' object which is provided in Microsoft.ApplicationBlocks.Data.  I removed the reference and added the one found in dotnetnuker\bin.

Is there a step by step tutorial in doing all this?  As of yet I only know of the webinar Nik created and it already seems to be out of date

 
New Post
3/8/2010 2:45 PM
 
if you are creating WAP modules, you need to copy your .dll file into the /bin folder. make sure not to include another version of Microsoft DAAB.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Renaming Renaming 'YourCompany' to 'MyCompany'


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