|
|
 |
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 tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
|
|
 |

July 9th, 2009, 06:17 PM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

July 9th, 2009, 08:10 PM
|
|
Wrox Author
|
|
Join Date: Jul 2008
Location: Des Moines, IA, USA.
Posts: 54
Thanks: 0
Thanked 6 Times in 6 Posts
|
|
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"
|

July 9th, 2009, 10:40 PM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

July 10th, 2009, 12:30 AM
|
|
Wrox Author
|
|
Join Date: Jul 2008
Location: Des Moines, IA, USA.
Posts: 54
Thanks: 0
Thanked 6 Times in 6 Posts
|
|
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"
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |