Trade1026
 New Member Posts:11
 |
| 13 Jul 2011 01:10 PM |
|
Hello. I am new to DNN module development but have been doing VB.Net with Visual Studio for some time. I bought your book and started at page 1. No issues at all until page 52, Setting the option to "Use Local ISS Web Server" and entering "http://localhost/dotnetnuke". Also, for the option just below this "Override application root URL" I have tried setting this with a value of "http://localhost/dotnetnuke" and also "http://localhost" I have also tried unchecking it but none of these options have made a difference. I get the following popup from VS when I try to save.. The local IIS URL http://localhost/dotnetnuke specified for web project GuestbookVB has not been configured. To keep these settings you need to configure the virtual directory. Would you like to create the virtual directory now? Clicking YES results in this error... Unable to create the virtual directory. http://localhost/dotnetnuke. My environment is... Windows Standard Server 2003 R2 32bit All service packs and updates have been applied MS SQL 2005 Enterprise IIS 6.0 Visual Studio Team System 2008 DNN 5.6.3 (installed at c:/inetpub/wwwroot/dotnetnuke) Latest Visual Studio started kit (installed DNN VB compiled module only) Guestbook module created at c:/inetpub/wwwroot/dotnetnuke/desktopmodules/GuestbookVB Any help is greatly appreciated. Thanks. |
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:328
 |
| 13 Jul 2011 03:05 PM |
|
| Did you setup /dotnetnuke as a virtual directory in IIS? |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
Trade1026
 New Member Posts:11
 |
| 13 Jul 2011 03:22 PM |
|
I followed all the instructions in your book. Right click on the DotNetNuke directory in IIS, select properties and do the following... Directory TAB - Click Create Documents TAB - Add an entry for default.aspx ASP.Net TAB - Select 2.0.50727 Anything else I missed or overlooked? On a different note, I continued to read ahead in the book and noticed the instructions to modify the .dnn file to match 5.0 guidelines. Do you have a version of this I can download so I do not have to do all that typing? Thanks |
|
|
|
|
Trade1026
 New Member Posts:11
 |
| 15 Jul 2011 10:21 AM |
|
Hey Mitchel, Any updates on this? I kinda want to get moving on writing my first module and right now I am road blocked. Any help is greatly appreciated. |
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:328
 |
| 15 Jul 2011 10:22 AM |
|
I don't have a copy of the 5.x manifest handy. For the IIS issue, are you running VS as an Administrator. |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
Trade1026
 New Member Posts:11
 |
| 15 Jul 2011 10:39 AM |
|
| Yes, I tried that after seeing that as a possible solution in another forum but it had no effect. |
|
|
|
|
Trade1026
 New Member Posts:11
 |
| 19 Jul 2011 02:45 PM |
|
| 4 days with no response? |
|
|
|
|
Trade1026
 New Member Posts:11
 |
| 21 Jul 2011 12:46 PM |
|
I got everything working on my development machine...the guestbook is up and running. you can see it at http://173.9.8.60/dotnetnuke/Test.aspx I then used DNN to create the install package and all went well when i installed this module on another development machine. I looked over the DNN database to make sure all tables were created and all entries in DNN tables for the control were correct and it's all good. This machine is running DNN 5.6.2 However, when I add the module to a page I get the following error and help is greatly appreciated. Error: My GuestBook is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\GuestbookVB\ViewGuestbookVB.ascx(3): error BC30456: 'rptEntries_ItemDataBound' is not a member of 'ASP.desktopmodules_guestbookvb_viewguestbookvb_ascx'. ---> System.Web.HttpCompileException: C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\GuestbookVB\ViewGuestbookVB.ascx(3): error BC30456: 'rptEntries_ItemDataBound' is not a member of 'ASP.desktopmodules_guestbookvb_viewguestbookvb_ascx'. 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) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace --- |
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:328
 |
| 21 Jul 2011 01:19 PM |
|
It looks like it is missing the code behind linking to the action event. Did the DLL file get put out there with the module? |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
Trade1026
 New Member Posts:11
 |
| 21 Jul 2011 02:08 PM |
|
Yes, WroxModules.GuestbookVB.dll is in c:\inetpub\wwwroot\dotnetnuke\bin The machine has all the latest service packs and updates. It's running Windows Server 2003 R2 32bit IIS 6.0 MS SQL 2005 DNN 5.6.2 I created a super user account for you if you would like to login and peek around. I'll delete it in a few days. This is only a development sight so no harm posting it. http://173.9.8.59/encoresystemsinc/Test.aspx User: WroxSuper Pwd: wroxsuper I can also give you remote access to the box if you like but I would need your enail address to send the login info to. Thanks. |
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:328
 |
| 21 Jul 2011 02:13 PM |
|
| In the code behind is that event there? |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
Trade1026
 New Member Posts:11
 |
| 21 Jul 2011 02:40 PM |
|
If you mean when I look at it in VS2008 on the original development machine, then yes it is there. The module displays and functions fine on the original development machine, also. I do not know how to determine if it is present on the second development machine. I assume it's compiled into the DLL...yes? |
|
|
|
|
Mitchel Sellers Site Moderator
 Basic Member Posts:328
 |
| 21 Jul 2011 03:26 PM |
|
It should be. THe best way to validate would be to build the project and ensure the timestamp matches on the DLL. Otherwise .NET reflector will allow you to view the DLL. |
|
-Mitchel Sellers, Microsoft C# MVP, MCITP
CEO
IowaComputerGurus Inc!
Visit my blog for helpful technical articles
For recommended products and services view the links to the right. |
|
|
Trade1026
 New Member Posts:11
 |
| 21 Jul 2011 04:13 PM |
|
I rebuilt the DLL and redelpoyed it to my development server, no difference. I used .Net Reflector to inspect the DLL on the development server and could see all the souce code in the DLL. I verified that the code for rptEntries_ItemDataBound was ther also. Great tool by the way, Thanks for directing me to it. So, the DLL is not the issue. I also tried installing it on one of my PowerDNN sites and had the same issue. I'm ofiicially dazed and confused. I feel like I missed something basic but have no idea what it could be. Any ideas on what to try next? Should I send you the DLL and my install package?
|
|
|
|
|
Trade1026
 New Member Posts:11
 |
| 21 Jul 2011 04:19 PM |
|
I also get a long error message for the Sign control, here is that error if it helps at all. Please don't miss my last post about the DLL also. - Thanks Error: My GuestBook is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\GuestbookVB\SignGuestbook.ascx(8): error BC30456: 'Page' is not a member of 'ASP.desktopmodules_guestbookvb_signguestbook_ascx'. ---> System.Web.HttpCompileException: C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\GuestbookVB\SignGuestbook.ascx(8): error BC30456: 'Page' is not a member of 'ASP.desktopmodules_guestbookvb_signguestbook_ascx'. at System.Web.Compilation.BuildManager.PostProcessFoundBuildResult(BuildResult result, Boolean keyFromVPP, VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetBuildResultFromCacheInternal(String cacheKey, Boolean keyFromVPP, VirtualPath virtualPath, Int64 hashCode) at System.Web.Compilation.BuildManager.GetVPathBuildResultFromCacheInternal(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) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace --- |
|
|
|
|
Trade1026
 New Member Posts:11
 |
| 22 Jul 2011 12:22 PM |
|
RESOLVED! I knew it would turn out to be something simple that I just couldn't see. As you can see from my provious posts, I said my development machine was at DNN V5.6.3 and my test machine was at DNN V5.6.2. Well, the guestbook DLL I built is referencing DotNetNuke.DLL V5.6.3 and the version on my test machine is DotNetNuke V5.6.2. After upgrading my test machine to 5.6.3 it all works fine. So, if I want to develop a module for DNN 5.6.x I need a development environment based on DNN 5.6.0 correct? Because the 5.6.x DLLs will be backwards compatible... Yes? |
|
|
|
|