Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design 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 September 15th, 2004, 02:37 AM
Authorized User
 
Join Date: Feb 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default uploading file problem

When I want to upload file in ASP.net it seems they have some permission problems. when targed place is somthing like c:\\temp its work but when I want to upload file to
file.SaveAs(Server.MapPath(@"\Upload\Other\" + filename));

I get execption like
Could not find a part of the path "c:\inetpub\wwwroot\Upload\Other\job.eml".

Help

 
Old September 15th, 2004, 07:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Does the appropriate account (ASPNET account or other) have access to the folder?

Brian
 
Old September 15th, 2004, 08:12 AM
Authorized User
 
Join Date: Feb 2004
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think that problem was in Server.MapPath metod I cahange it in Server.MapPath("Upload\\Other\\") and now it works ;)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Uploading File misskaos Classic ASP Basics 4 October 26th, 2006 02:56 PM
Problem About Uploading Vidio FIle doctorsom ASP.NET 1.x and 2.0 Application Design 1 May 10th, 2005 03:07 PM
Problem inserting blob data/uploading file - MySQL kyle_shea Beginning PHP 2 February 15th, 2005 10:18 AM
File Uploading problem in Win XP rafatrock Beginning PHP 2 December 29th, 2004 02:58 PM
uploading file problem lpastor ASP.NET 1.0 and 1.1 Professional 1 September 15th, 2004 08:00 AM





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