p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 9th, 2009, 06:17 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old July 9th, 2009, 08:10 PM
Wrox Author
Points: 201, Level: 4
Points: 201, Level: 4 Points: 201, Level: 4 Points: 201, Level: 4
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Jul 2008
Location: Des Moines, IA, USA.
Posts: 43
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via MSN to msellers Send a message via Skype™ 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"

Author on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old July 9th, 2009, 10:40 PM
Registered User
Points: 13, Level: 1
Points: 13, Level: 1 Points: 13, Level: 1 Points: 13, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old July 10th, 2009, 12:30 AM
Wrox Author
Points: 201, Level: 4
Points: 201, Level: 4 Points: 201, Level: 4 Points: 201, Level: 4
Activity: 5%
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Jul 2008
Location: Des Moines, IA, USA.
Posts: 43
Thanks: 0
Thanked 6 Times in 6 Posts
Send a message via MSN to msellers Send a message via Skype™ 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"

Author on "Visual Studio 2010 six-in-one" and "Pro C# 4.0"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 06: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 08:01 AM
<STRONG> vs <B> and <EM> vs <I> anshul HTML Code Clinic 12 September 1st, 2004 06:22 PM
<input type="File"> - Specify File Type and Path gp_mk Classic ASP Basics 2 August 2nd, 2004 04:07 AM



All times are GMT -4. The time now is 03:22 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc