Wrox Programmer Forums
|
BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5
This is the forum to discuss the Wrox book Professional DotNetNuke Module Programming by Mitchel Sellers and Shaun Walker - Wrox DotNetNuke Series Editor; ISBN: 978-0-470-17116-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 15th, 2011, 03:57 PM
Registered User
 
Join Date: Apr 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default How can i compile the module

using VS 2010?

it writes that i have errors, and the DNN write that it has a lot of errors.

Is the book so old?
 
Old April 15th, 2011, 04:22 PM
Wrox Author
 
Join Date: Jul 2008
Posts: 74
Thanks: 1
Thanked 8 Times in 8 Posts
Send a message via MSN to msellers
Default

There should not be any issue with compiling the code.

WHat are the specific errors that you are seeing?

Are all references resolving properly?
__________________
Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

My blog for .NET and DotNetNuke info

Author of "Professional DotNetNuke Module Programming"

Tech Editor on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
 
Old April 15th, 2011, 05:08 PM
Registered User
 
Join Date: Apr 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default I tried to import

your codes that i downloaded from this website into the DNN.

The first thing that i tried to do is to open the GuestbookVB.sln in VS 2010, a textbox is appeared that display the message: "The source control provider associated with this solution could not be found. The project will be treated as not under source control"

When I try to open the GuestbookCS.sln in VS2010 a (after upgrading the code) a textbox is appeared that display the message:"the associated source control plug-in is not installed or could not be initiallized"


The next thing I tried is to Create Module inside the Portal,
for the VB version of the module i Recieved the message: "There was an error importing the module control, please see the event log for further details
"

for the C# version I mange to install with a Test Page, and in the TestPage I recieved the following error list:

Error: Guestbook CS is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException : Could not load type 'WroxModules.GuestbookCS.ViewGuestbookCS'. ---> System.Web.HttpParseException: Could not load type 'WroxModules.GuestbookCS.ViewGuestbookCS'. ---> System.Web.HttpParseException: Could not load type 'WroxModules.GuestbookCS.ViewGuestbookCS'. ---> System.Web.HttpException: Could not load type 'WroxModules.GuestbookCS.ViewGuestbookCS'. at System.Web.UI.TemplateParser.GetType(String typeName, Boolean ignoreCase, Boolean throwOnError) at System.Web.UI.TemplateParser.ProcessInheritsAttrib ute(String baseTypeName, String codeFileBaseTypeName, String src, Assembly assembly) at System.Web.UI.TemplateParser.PostProcessMainDirect iveAttributes(IDictionary parseData) --- End of inner exception stack trace --- at System.Web.UI.TemplateParser.ProcessException(Exce ption ex) at System.Web.UI.TemplateParser.ParseStringInternal(S tring 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(StreamRea der 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.g et_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTy peFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.Proc essBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.Perf ormBuild() at System.Web.Compilation.BuildManager.CompileWebFile (VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildR esultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildR esultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildR esult(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualP ath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl () --- End of inner exception stack trace ---

What can I do to solve the prolems?

Aviv
 
Old April 15th, 2011, 05:29 PM
Wrox Author
 
Join Date: Jul 2008
Posts: 74
Thanks: 1
Thanked 8 Times in 8 Posts
Send a message via MSN to msellers
Default

Did you get an error when installing the module for the C# Version? It appears that the DLL did not get copied.
__________________
Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

My blog for .NET and DotNetNuke info

Author of "Professional DotNetNuke Module Programming"

Tech Editor on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
 
Old April 15th, 2011, 05:48 PM
Registered User
 
Join Date: Apr 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default how can I compile the module

when the VS doesn't reload it?
how can solve this problem?
 
Old April 15th, 2011, 05:50 PM
Wrox Author
 
Join Date: Jul 2008
Posts: 74
Thanks: 1
Thanked 8 Times in 8 Posts
Send a message via MSN to msellers
Default

To install and run the module, you must compile it, or install an install package of it. Have you done that?
__________________
Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

My blog for .NET and DotNetNuke info

Author of "Professional DotNetNuke Module Programming"

Tech Editor on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
 
Old April 15th, 2011, 05:53 PM
Registered User
 
Join Date: Apr 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default I didn't succeed to open the solution in visual studio

so i didn't compile the module.
I had errors with the opening.

how can i open the solution in visual studio?
(I prefer working on the VB version)
 
Old April 15th, 2011, 06:04 PM
Wrox Author
 
Join Date: Jul 2008
Posts: 74
Thanks: 1
Thanked 8 Times in 8 Posts
Send a message via MSN to msellers
Default

It might still have my source bindings on it.

You have two options. 1 Modify the binding, or just say "Work Uncontrolled".
__________________
Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

My blog for .NET and DotNetNuke info

Author of "Professional DotNetNuke Module Programming"

Tech Editor on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
 
Old April 15th, 2011, 06:41 PM
Registered User
 
Join Date: Apr 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default o.k.

I manage to open the VB version, but now i have 102 errors, the first errors I see is that Vs can't imports DotNetNuke, DotNetNuke.Common.Utilities, DotNetNuke.Entities.Modules, etc.

Is there a problem with the starterkit installation?
 
Old April 15th, 2011, 07:18 PM
Wrox Author
 
Join Date: Jul 2008
Posts: 74
Thanks: 1
Thanked 8 Times in 8 Posts
Send a message via MSN to msellers
Default

You just need to be sure that the paths to those DLL's are correct. You might need to remove/add the references.
__________________
Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

My blog for .NET and DotNetNuke info

Author of "Professional DotNetNuke Module Programming"

Tech Editor on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
The Following User Says Thank You to msellers For This Useful Post:
aviv (April 16th, 2011)





Similar Threads
Thread Thread Starter Forum Replies Last Post
module umeshtheone Beginning VB 6 2 May 17th, 2007 05:48 AM
module umeshtheone VB Databases Basics 1 May 14th, 2007 01:41 PM
new module FT BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 March 15th, 2007 06:06 AM
module? flora8 Access VBA 2 September 7th, 2006 11:10 AM
Module sohrabus ASP.NET 2.0 Professional 1 September 1st, 2006 12:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.