Could not find part of Path.. Go Daddy

 I have a site that show pictures that it gets from the pictures folder in my web app.
My site is hosted on go daddy and works fine. I can go to the site view the picture pages and it all works just fine.
I have given all the permissions I possibly can on go daddy (it's a hosting plan) which is application write and web visible.
Quite honestly I have no clue where the error is coming from or anything.
I set up my globals.asax page to email me where there are unhandled exceptions.

I keep getting this error

 

1    Could not find a part of the path 'D:\Hosting\myaccountNum\html\pictures\'.
2    
3    Stack Trace:
4      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
5      at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
6      at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
7      at ImageFetch.writeSingleImage(Int32 ImageID, Int32 size, Stream output)
8      at ImageFetch.ProcessRequest(HttpContext context)
9      at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
10     at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
11   
 
0
gtjr921
3/3/2009 5:32:35 PM
asp.net.installation-setup 5668 articles. 1 followers. Follow

7 Replies
3019 Views

Similar Articles

[PageSpeed] 9
Get it on Google Play
Get it on Apple App Store

 what is the line of code that causes the error?


Bruce
DiscountASP.NET: Developer Ready ASP.NET Web Hosting
- Microsoft Gold Certified Partner
- Voted 2008, 2007, 2006 & 2005 Best ASP.NET Web Hosting by asp.netPRO Magazine
0
Bruce
3/3/2009 7:09:14 PM

 that's just it i don't think it is my code. The site works. I can go there and i look at the pictures and everything. I believe the error is transparent to the user not sure i have never had any problems viewing them neither has anyone else that has tested it. No user has complained about it. 

Here are the full details of the error

 

System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Hosting\myaccount\html\pictures\'.

Generated: Thu, 05 Mar 2009 15:33:36 GMT

System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\Hosting\myaccount\html\pictures\'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at ImageFetch.writeSingleImage(Int32 ImageID, Int32 size, Stream output)
at ImageFetch.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Server Variables

NameValue
ALL_HTTPHTTP_CACHE_CONTROL:max-stale=0 HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:text/html, */* HTTP_ACCEPT_ENCODING:gzip, deflate, identity HTTP_HOST:www.mysite.com HTTP_USER_AGENT:Mozilla/4.0 (compatible;) HTTP_X_BLUECOAT_VIA:6DAB13B1062C62CF
ALL_RAWCache-Control: max-stale=0 Connection: Keep-Alive Accept: text/html, */* Accept-Encoding: gzip, deflate, identity Host: www.mysite.com User-Agent: Mozilla/4.0 (compatible;) X-BlueCoat-Via: 6DAB13B1062C62CF
APPL_MD_PATH/LM/W3SVC/3766874/ROOT
APPL_PHYSICAL_PATHD:\Hosting\myaccount\html\
AUTH_TYPE 
AUTH_USER 
AUTH_PASSWORD 
LOGON_USER 
REMOTE_USER 
CERT_COOKIE 
CERT_FLAGS 
CERT_ISSUER 
CERT_KEYSIZE 
CERT_SECRETKEYSIZE 
CERT_SERIALNUMBER 
CERT_SERVER_ISSUER 
CERT_SERVER_SUBJECT 
CERT_SUBJECT 
CONTENT_LENGTH0
CONTENT_TYPE 
GATEWAY_INTERFACECGI/1.1
HTTPSoff
HTTPS_KEYSIZE 
HTTPS_SECRETKEYSIZE 
HTTPS_SERVER_ISSUER 
HTTPS_SERVER_SUBJECT 
INSTANCE_ID3766874
INSTANCE_META_PATH/LM/W3SVC/3766874
LOCAL_ADDRxxx
PATH_INFO/UserControls/imagefetch.ashx
PATH_TRANSLATEDD:\Hosting\myaccount\html\UserControls\ImageFetch.ashx
QUERY_STRINGsize=1&imageid=134
REMOTE_ADDRxxx
REMOTE_HOSTxxx
REMOTE_PORT39620
REQUEST_METHODGET
SCRIPT_NAME/UserControls/imagefetch.ashx
SERVER_NAMEwww.mysite.com
SERVER_PORT80
SERVER_PORT_SECURE0
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/7.0
URL/UserControls/imagefetch.ashx
HTTP_CACHE_CONTROLmax-stale=0
HTTP_CONNECTIONKeep-Alive
HTTP_ACCEPTtext/html, */*
HTTP_ACCEPT_ENCODINGgzip, deflate, identity
HTTP_HOSTwww.mysite.com
HTTP_USER_AGENTMozilla/4.0 (compatible;)
HTTP_X_BLUECOAT_VIA6DAB13B1062C62CF

 

0
gtjr921
3/5/2009 3:49:29 PM

 sorry.. i am not seeing anything obvious i can tell.


Bruce
DiscountASP.NET: Developer Ready ASP.NET Web Hosting
- Microsoft Gold Certified Partner
- Voted 2008, 2007, 2006 & 2005 Best ASP.NET Web Hosting by asp.netPRO Magazine
0
Bruce
3/5/2009 8:10:36 PM

Hi,

The problem is because somewhere in your code you have used the path

'D:\Hosting\myaccount\html\pictures\'.

which does not exist on the server i.e machine hosting the application.

You need to change this absolute path and put Server.Mappath() method to get the path on the server.

Hope it helps.


SUBHRANIL BASU RAY
Mumbai

TODAY'S TECHNIQUES ARE OBSOLETE FOR TOMORROW'S JOB.
PLS MARK MY REPLY "AS ANSWER" IF IT HELPED YOU.
0
sunny74
3/7/2009 5:17:42 AM

nope that's not it i already have Server.MapPath("~\Pictures\" & albumid & "\"))
Like i said the site works, otherwise I would not be able to see the photos.
I only get the errors on occasion.

0
gtjr921
3/7/2009 3:23:03 PM

Hi,

Donot use Server.Mapth path add Image URl

User

http:// <your server name>/Images/1.jpg

or
<img src=".. or ~/Images/1.jpg/>

Hope It helps


Thanks
Avinash Tiwari

Remember to click “Mark as Answer” on the post, if it helps you.
0
qwe123kids
3/9/2009 10:38:26 AM

When you run on your local server, Did you encounter same error message?

 

 

______________________________________

Cheap Affordable Web Hosting | Windows Linux PHP ASPX MYSQL Website Hosting | Best Web Design Company

 

0
mbaocha
5/5/2009 3:48:56 AM
Reply:

Similar Artilces:

DNN Install Error: Could Not Find Part Of Path <drive>:\
I finally turned my boss onto DNN and he went to install it on our webserver today. When the install script runs it's throwing an error part way through that says "Could Not Find Part of Path E:\". I know I've seen that error posted here before but heck if I can find it anywhere. I've double checked the permissions on the DNN folder and in IIS and everything is fine there. Does anyone know what the heck we're missing.GMSS DNN Mike, Check the info on this Post 864657. Looks relevant to your issue.iwonderMission, KS - USA Ahh we got it figured out minutes before I read the po...

Install 3.0.11: Could not find a part of the path "D:\".
I have no clue what else to try. I get the following error when installing DNN 3.0.10 / .11 Could not find a part of the path "D:\" [DirectoryNotFoundException: Could not find a part of the path "D:\".] System.IO.__Error.WinIOError(Int32 errorCode, String str) +266 System.IO.Directory.InternalCreateDirectory(String fullPath, String path) +460 System.IO.Directory.CreateDirectory(String path) +180 DotNetNuke.Entities.Portals.PortalController.CreatePortal(...[deleted ][ +669 DotNetNuke.Services.Upgrade.Upgrade.AddPortal(XmlNode node, B...

fresh DNN3.0.11 install: could not find a part of the path "E:\"
Hey all! I am trying to install a fresh copy of DNN 3.0.11 on my brandnew server. I set the permissions, created an empty db, added a new user and tried to install by surfing to the site. In the database, everything seems to be allright, apart from NO entry in the portalalias field. In the filesystem, the portal/0 folder is not created. And... it throws me the following error (see below): any clues on how to solve this? _______________________________________ Installing DotNetNuke Version: 03.00.11 Current Settings Default Provider SqlDataProvider Connec...

3.0.11 remote install. could not find a part of the path "e:\"
error while installing dotnetnuke 3.0.11 valid folder - e:\domain\httpdocs\demo Installing DotNetNuke Version: 03.00.11 Current Settings Default Provider SqlDataProvider Connection String server=****; ..NET Framework Version 1.1.4322.2032 Windows User ****\ASPNET Host Name **** Installation Status Report 00:00:00.156 - Installing Version: 3.0.9 00:00:00.156 - Installing Script: DotNetNuke.SetUp.SqlDataProvider 00:00:00.203 - Installing Script: DotNetNuke.Schema.SqlDataProvider 00:00:01.953 - Installing Script: DotNetNuke.Data.SqlDataProvider ...

How to find if a MSI has already been installed and read the path of installation programatically
Hi,          Is there any way in .NET to find out if a MSI has already been installed and read the path in which the MSI has installed the program. Thanks Mahesh...

Could not find a part of the path
whenever I try to install a custom module I get this error message: ============================================ Exception: System.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.Installer.PaDnnInstallerBase.CreateModuleFile(PaFile File, PaFolder Folder) at DotNetNuke.Installer.PaDnnInstallerBase.CreateFiles(PaFolder Folder) at DotNetNuke.Installer.Pa...

Could not find a part of the path?
Hi all, I had map my local pc to x drive which had a testing directory with a file config.xml. I had an aspx program whereby it was map to x drive. When I run the code in VWD 2005, it was able to find the path without any problem. But when I deploy the program to Inetpub\wwwroot\WebSite1, it give me the error as shown below: Does anyone know what is the problem though the physical drive x:\testing\config.xml does exist? Thanks   Could not find a part of the path 'x:\testing\config.xml'. Description: An unhandled exception occurred during the execution of the curren...

Could not find a part of the path
ok what the heck is going on here. I have developed a asp.net program to read a txt file into a data grid. It works fine on my local computer but when deployed to the production server fails with Could not find a part of the path I am using the contol that opens up so the user can select the file they want to read in to the data grid. I have tried to put the file on the production server(not acceptable the user will not have permissions) the File will be on the users computer. c:]inetpub\wwwroot\newasppages.... The strange part is in the trace I am still seeing a path to my...

Could not find a part of the path
when i am creating a directory using the directoryinfo method. i am able to create in the local machine but when i try to create across the network i am not able to do that? it is giveing an error called as "Could not find a part of the path" can anyone suggest what may be the wrong. for ur ready reference i have placed the part of my code to u techies Session("cydefpath") = "\\ntdomain\Backup\DMS Associated\backups\Sasidar" Session("companyname") = "kasbahsys" Session("tempname") = &q...

could not find part of the path...
Hi I am having this error message pop up when I try to create a new windows project. I normally use visual studio 2005 for web development but it as if if got use to the web portion and does not want to do any other type of work I tried to open other projects other than a web project. Can anyone help with an answer?   DKBDKB What is the message?Thanks------------------------------------------------------------This posting is provided "AS IS" with no warranties, and confers no rights. Here is the message that pops up in a dialog box    could not find a part o...

Could not find a part of the path
Hi, I'm trying to upload audio & image files to our web server. The project runs lovely locally but displays 'Could not find a part of the path' when running from the web server. The server has the correct permissions for it creates a users folder and creates sub folders: Music, Images & Other. Audio files upload correctly to the Music folder but image files display the error msg above. As a case of elimination I swapped the folders around so Audio files upload to 'Images' dir and vise-versa, but still the same problem with Image files. I cant debug the project to see whats goi...

Couldnot find part of the path
Hi ,am trying to browse and pick a csv file from .ascx to format it and update the database. but when i select file using browse and click submit, i get error saying  "Couldnot find part of the path c:\......"any ideas???thanks in advance. what exactly are you doing though? are you trying to access the disk from client-side code? you know that's restricted for security purposes, right? RTFM - straight talk for web developers. Unmoderated, uncensored, occasionally unreadableJason Brown - MVP, IIS hi,thanks for replying. actually am new to .NET i am now in developing stage a...

Find out which .NET version is installed
Is there a way, script-wise, to find out which ASP.NET version is installed for a webdomain on a server? We need to install our webapplication in (mostly) shared hosting environments, and we would like to have a script that verifies whether the domain is setup correctly for our application (if all prerequisites are available) before we start the full installation procedure. Regards, Marja You have a few options, the first of which I would recomend, which is a ClickOnce installation.  You can add a project to your solution called a "Web Deployment Project" which can package your web ...

Could not find part of path... Error
I am intermittantly getting an error like this one: Could not find a part of the path "c:\inetpub\wwwroot\PortalCSSDK\PortalCfg.xml". Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path "c:\inetpub\wwwroot\PortalCSSDK\PortalCfg.xml". the problem is that the application is NOT running from that location. I can not find out why...

Web resources about - Could not find part of Path.. Go Daddy - asp.net.installation-setup

ABC Orders Comedic Game Show ‘Big Fan’ From Jimmy Kimmel & Banijay Studios
ABC has given a series order to Big Fan , a half-hour weekly comedic game show from Jimmy Kimmel based on the viral "Who Knows…?" celebrity vs. ...

Donald Trumps Prefers SCOTUS Justices Be Anti-Gay Bigots But Gets Why Gays Don’t Like That – WATCH
Donald Trump told George Stephanopoulos on Sunday that while he would prefer justices appointed to the Supreme Court be opposed to same-sex marriage, ...

New Hampshire votes: Live updates from the campaign trail
We're on the ground in New Hampshire covering the final countdown until New Hampshire votes on Tuesday. Will Donald Trump maintain his lead in ...

Report: Google to launch a Gear VR competitor, build VR into Android OS
The Samsung Gear VR. (credit: Kyle Orland) We've said a few times now that Google's virtual reality initiative is too big for the company to ...

Big win for net neutrality: Telecom regulator prohibits discriminatory tariffs for data
Telecom regulator Trai on Monday prohibited discriminatory tariffs for data services on the basis of content.

‘Independence Day: Resurgence’: Roland Emmerich on Nastier Aliens and the Death Toll
Yesterday the Super Bowl spot for Independence Day: Resurgence teased destruction on what seems to somehow be a larger scale than the first film ...

Sir Elton John’s Cell Phone Shocker
This time last year, we were confirming that Christopher Nolan does not own a cell phone. And now, thanks to the latest episode of James Corden ...

Ted Cruz launches a (probably illegal) direct mail fundraising scam
Ted Cruz’s campaign appears to have utter disdain for voters. First, it was cynically craven voter shaming mailers and lies about an opponent ...

The Pirate Bay, other torrent sites add support for Torrents Time plugin allowing you to stream movies ...
Emil Protalinski / VentureBeat : The Pirate Bay, other torrent sites add support for Torrents Time plugin allowing you to stream movies and TV ...

Police Question Witnesses in Mississippi Mardi Gras Shooting
Police are questioning witnesses to a shooting that broke out after a Mardi Gras parade in Mississippi, leaving two men dead and injuring four ...

Resources last updated: 2/8/2016 7:18:10 PM