hi,
i have recently migrated an app from my local machine to our dev web
server and i'm trying to upload a document from my local hard drive via
the web server to a sharepoint installation.
i'm getting the following error :
System.IO.Direc toryNotFoundExc eption: Could not find a part of the path
"C:\Documen ts and Settings\cummin c\Desktop\1.jpg ". at
System.IO.__Err or.WinIOError(I nt32 errorCode, String str) at
System.IO.FileS tream..ctor(Str ing path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, Boolean useAsync, String
msgPath, Boolean bFromProxy) at System.IO.FileS tream..ctor(Str ing path,
FileMode mode) at timetable.docum ent_upload.btn_ upload_Click(Ob ject
sender, EventArgs e) Please Select A File
from searching the web, i believe that this means that i don't have the
correct permissions for the directory.
both our dev web server and the dev sharepoint installation have given
"everybody" full access to the C: drive, so i'm not sure why i would be
getting this error.
does anyone have any ideas as to how i can fix this ? everything worked
just fine on my local machine so i'm assuming that permissions is
indeed the cause.
thanks in advance
c 4 1208
Just a guess..... could you upload the file to a sub folder of your web app?
This would rule out problems with the upload process. You could then try to
move the file to the correct location and see what happens.
Remember your web app runs under the ASPNET user - might be worth
specifically giving this user permissions just to see if that is indeed the
problem.
Will
<cr****@freenet .co.uk> wrote in message
news:11******** *************@p 10g2000cwp.goog legroups.com... hi,
i have recently migrated an app from my local machine to our dev web server and i'm trying to upload a document from my local hard drive via the web server to a sharepoint installation.
i'm getting the following error :
System.IO.Direc toryNotFoundExc eption: Could not find a part of the path "C:\Documen ts and Settings\cummin c\Desktop\1.jpg ". at System.IO.__Err or.WinIOError(I nt32 errorCode, String str) at System.IO.FileS tream..ctor(Str ing path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) at System.IO.FileS tream..ctor(Str ing path, FileMode mode) at timetable.docum ent_upload.btn_ upload_Click(Ob ject sender, EventArgs e) Please Select A File
from searching the web, i believe that this means that i don't have the correct permissions for the directory.
both our dev web server and the dev sharepoint installation have given "everybody" full access to the C: drive, so i'm not sure why i would be getting this error.
does anyone have any ideas as to how i can fix this ? everything worked just fine on my local machine so i'm assuming that permissions is indeed the cause.
thanks in advance
c
Giving everyone access to the c: drive is a huge security risk, at
least if that permission is inherited by subfolders. Normally only the
users themselves and admins have access to users' folders, so check
again that the everyone permission has been inherited. Again everyone
access is a security risk.
thanks for the input guys :
@Jacob : Thanks for the tip - I'm aware of this and would tighten
security again once i get this working !
@ Will : I'm not explicitly setting the upload directory. I'm using the
UploadDocument method of my web service to upload the document to a
sharepoint installation.
As I mention, both servers have wide open permissions at the moment.
thanks again for your input.
c
thanks for your input guys. i have worked out that the upload process
thinks that the file is already on the web server rather than on my
local machine.
all i have to do is find the solution !
thanks for your assistance.
c This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: William Starr Moake |
last post by:
Another problem with absolute paths in the WYSIWYG editor I'm putting
together.
The function to toggle between WYSIWYG and HTML modes works except for
one glitch. If you use a relative path for a link, like <a
href="download.htm">Click Here</a>, the editor returns an absolute
path the second time you toggle HTML mode: <a
href="C:\Windows\Desktop\Editor\download.htm" and even adds file:///
on the third try. This path must be manually...
|
by: Sky Sigal |
last post by:
I have created an IHttpHandler that waits for uploads as attachments for a
webmail interface, and saves it to a directory that is defined in
config.xml.
My question is the following:
assuming that this is suppossed to end up as a component for others to use,
and therefore I do NOT have access to their global.cs::Session_End()
how do I cleanup files that were uploaded -- but obviously left stranded
when the users aborted/gave up writting...
|
by: Lou |
last post by:
I have a web application using vb.net and sql server 2000 in which I
generate templates for documents by using the database to fill certain
fields with an XSLT file to generate RTF for display on the client's
browser (IE 6 only). I want to have the ability for the user to edit
the displayed template then save by directly uploading to sql server
as a BLOB. Currently I'm having the user first save the edited rtf
file on their C drive...
|
by: Ankit Aneja |
last post by:
I put the code for url rewrite in my Application_BeginRequest on global.ascx
some .aspx pages are in root ,some in folder named admin and some in folder
named user
aspx pages which are in user folder are using this code of url rewrite
project is running completely fine on localhost
but after uploading first page
(http://emailware.net.temporary.domain.name/user/index.aspx) is fine
but as i click
123 Easy-CD Ripper
|
by: db |
last post by:
Hi@all,
I am always thinking that there is no problems that I can not solve.
But now i changed my idea......
And I have posted it in javascript group, since i think both javascript
and php are involved in this problem, i post it here as well. If that
is "illegal", please delete it, thanks.
| |
by: Chris |
last post by:
I have a meetings section I'm developing on our intranet. Using PHP/MySQL.
Meeting info and Meeting docs reside on 2 related tables in the db. Users
may want to upload anywhere from 1 to 10 or more documents to share/use
during a meeting presentation. What would be the most efficient way to
approach this? This is the logic I'm currently considering:
Page 1: Meeting Information input with link to a document upload page (this
page...
|
by: wasif |
last post by:
I am trying to upload file using ajax and php but having some problems. it always says that there was a problem and file is not uploaded. here is the code
form and ajax code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled...
|
by: apog |
last post by:
Hello, everyone!
I have a javascript running perfectly with IE, but nothing seems to happend if I use firefox... anyone knows why?
Here is the script:
function add_div_field () {
var ni = document.getElementById('upload_div');
var num = contador_upload++;
var div = document.createElement("div");
|
by: Tom Cole |
last post by:
I have a rather complicated business application that uses Ajax. Part
of this form requires uploading documents, which I cannot do using
Ajax, so I post the form to an IFrame. This part works just fine.
The problem I have is that my server process returns some content to
the IFrame to complete form processing and to report any errors that
might have occured. Here's an example of what may be written back:
<html>
<head>
|
by: Canabeez |
last post by:
Hi all,
anyone has an idea why IE is not uploading file and FF does? I'm creating a FORM + IFRAME using DOM and trying to upload a file, now Firefox and Chrome do thins perfectly.
I have attached a Log from HTTPAnalyzer.
Anyhow, here's the code I'm running, Class File:
HTMLElement.Upload = function(Params)
{
var FORM = new HTMLElement(HTMLElement.FORM,{
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |