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 July 9th, 2009, 05:17 PM
Registered User
 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot specify ./ in <path> in .dnn file

On page 275 of your book, you said a path element in the files section of the .DNN manifest "could specify a path value of ./, which refers to the parent directory". However, I cannot get this to work, and after studying the DNN source code, I do not believe it is possible to put a file anywhere outside of the DesktopModules directory, unless one uses the special [app_code] token, which of course will put it in the App_Code directory.

I hope you can prove me wrong. :-)

The main problem is that DNN builds up a destination path that looks something like this:

D:\dev\DNN\DesktopModules\GSP\././App_GlobalResources\GSP.resx

This does not place the file where I want it, which is:

D:\dev\DNN\App_GlobalResources\GSP.resx

I tried using ..\, which *does* work when saving:

D:\dev\DNN\DesktopModules\GSP\..\..\App_GlobalReso urces\GSP.resx

However, DNN never gets to the code that saves it because the temp directory that the source file is copied to from the ZIP package is identified as an invalid path:

D:\dev\DNN\Install\Temp\gv1nws1m\..\..\App_GlobalR esources\GSP.resx

Since no source file is found at the above path, the installation fails.

My goal is to place a .resx file in the App_GlobalResources directory. (I am using a custom build provider.) Is this possible?

Thanks,
Roger Martin
 
Old July 9th, 2009, 07:10 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

What version of DNN are you using, and what manifest format? (4.x or 5.x manifests)
__________________
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 July 9th, 2009, 09:40 PM
Registered User
 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am using the latest version of DNN (5.0.1 or 5.1, there seems to be some inconsistency in naming) and the 5.X manifest. But the good news is I finally figured it out!

After I gave up on the backslash approach you mentioned, I tried another technique. I created a second <component type="File"> section that specifically updated App_GlobalResources:

Code:
<component type="File">
  <files>
    <basePath></basePath>
    <file>
      <name>App_GlobalResources\GalleryServerPro.resx</name>
      <sourceFilePath>App_GlobalResources</sourceFilePath>
    </file>
  </files>
</component>
That did the trick!

Thanks for your book; it is quickly becoming dog-eared.

Roger
 
Old July 9th, 2009, 11:30 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

Roger,

I'm glad that you got it figured out. I apologize, the backslash approach is one that works in DNN 4.x manifest formats. The 5.x manifests are different since they use the "File" component.

I'm glad that you have found the book helpful!
__________________
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"





Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing 18-11 <location path='AdminPage.aspx'> terry hutt BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 June 20th, 2006 05:35 PM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
<marquee><b>About CHAT App. in PHP4</b></marquee> Ramkrishna PHP How-To 1 September 11th, 2004 07:01 AM
<STRONG> vs <B> and <EM> vs <I> anshul HTML Code Clinic 12 September 1st, 2004 05:22 PM
<input type="File"> - Specify File Type and Path gp_mk Classic ASP Basics 2 August 2nd, 2004 03:07 AM





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