Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Workaround for "Could not find a part of the path"Workaround for "Could not find a part of the path"
Previous
 
Next
New Post
9/12/2006 8:53 PM
 
Don't know if anybody posted this before....
I know there has been a lot of discussion on this subject and I don't want to start a new one.

Last week I had to install DNN on a shared hosting server. I used the Helm control panel on the server (it has a button instal DNN) so I thought everything would be fine, but when I tried to install some extra modules, I got the "Could not find a part of the path" error.
I had a deadline last week and couldn't change hosting company, so I had to solve the problem...
The hoster advised me to go look for a modified version of DNN, but I refuse to do so.

The best solution: find a hoster that does give you the right permissions, if this is somehow impossible: try my solution. (I guess it will not work in all cases)

You need:
-FTP access to your site.
-A local server to test (same DNN version as the live site)

Problem Description (please correct me if I'm wrong):

During DNN install / New Module upload / some other site functions you get this error:

ExceptionSystem.IO.DirectoryNotFoundException: Could not find a part of the path "E:\". at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.Directory.InternalCreateDirectory(String fullPath, String path) at System.IO.Directory.CreateDirectory(String path) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateModuleFile(PaFile File, PaFolder Folder) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateFiles(PaFolder Folder) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.Install(PaFolderCollection folders) at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()


This is due to the fact that a .NET function that creates a new directory, checks from the root up if the folder(s) already exists.
Let's say your site is located in this folder (on the Hosters servers HDD) E:\mydomain.
A lot of hosters only give you rights on the "mydomain" folder none on the root (E:\).
So the ".NET Create Directory" function just doesn't have any rights E:\ and fails.
You can ask the hoster to change this but mostly they will not do this.
If you should / can change to a hoster that does give you the right permissions, or try this:

"Solution"
Since the error only appears if DNN/.NET tries to create a folder that doesn't exist, simply avoid this by creating the folders through FTP.


For Skin packages:
Create or "upload" your skins to the Local server and copy (FTP) the folders to the live server, with the "skin.ascx" files.
Login as host > skins > Parse skin package, for all the skins before you upload the fodlers to the live server.

Extra modules:
Install the module on the local server and note all the folders that are shown at the bottom ("StartJob Creating files") of the install report.
Using FTP, check on the live server which ones don't exist yet and create them.
Then run the module install on the Live server.

Installation:
I didn't try this but I guess you could do it like this:
1. Install DNN on the test server.
2. Make a copy of the install folder.
3. Do a search in the copied folder for *.*
4. Delete everything that's not a folder
5. Upload this empty folder structure to the live server.
6. Upload the DNN install files over these folders.
(first adjust web.config etc)
7. Run the install

Hope this helps...

Web applications, DNN websites, modules, skins and support
 
New Post
4/30/2011 4:11 AM
 
hell gys
i have made a module but when i want create a package then error as"Could not find a part of the path 'E:\DotNetNuke Website2\DesktopModules\Philip.test\Philip_Philip.dnn'." can you ask me why and which reason this probem ocurr here
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Workaround for "Could not find a part of the path"Workaround for "Could not find a part of the path"


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Copyright 2014 by DNN Corp Terms of Use Privacy
Request
a Demo
See Evoq Live
Latest Blog
How to Make Advocate Marketing Work for You
Read It
Watch the Replay
Top 5 Reasons to Consider a Branded Online Community
Watch