473,385 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

File write access on server

I found a sample of uploading a file to the server. This works fine. I
just created a virtual directory placed the aspx file in it and navigated to
the directory. No problem there.

Then to make it "better" I created a new application and copied the code and
HTML to a new web app. When I run exactly the same code I get a message ::

Upload of File KazaAmy.jpg to c:\inetpub\wwwroot\UploadFiles failed for the
following reason: Access to the path
"c:\inetpub\wwwroot\UploadFiles\KazaAmy.jpg" is denied.

The original is not compiled and I have compared the properties of both web
folders and the only difference is that the application has "Application
Settings"

Any ideas??

Lloyd Sheen
Nov 18 '05 #1
2 971
Try to check the IIS authentication settings and check <authentication> and
<identity> sections of the web.config file for both virtual sites .

HtH,
Andrea
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> wrote in message
news:WI*******************@news01.bloor.is.net.cab le.rogers.com...
I found a sample of uploading a file to the server. This works fine. I
just created a virtual directory placed the aspx file in it and navigated to the directory. No problem there.

Then to make it "better" I created a new application and copied the code and HTML to a new web app. When I run exactly the same code I get a message ::
Upload of File KazaAmy.jpg to c:\inetpub\wwwroot\UploadFiles failed for the following reason: Access to the path
"c:\inetpub\wwwroot\UploadFiles\KazaAmy.jpg" is denied.

The original is not compiled and I have compared the properties of both web folders and the only difference is that the application has "Application
Settings"

Any ideas??

Lloyd Sheen

Nov 18 '05 #2
Thanks that was it.

Lloyd Sheen

"Andrea D'Onofrio [MSFT]" <an******@online.microsoft.com> wrote in message
news:OY**************@TK2MSFTNGP09.phx.gbl...
Try to check the IIS authentication settings and check <authentication> and <identity> sections of the web.config file for both virtual sites .

HtH,
Andrea
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Lloyd Sheen" <sq*******************@tostopspamhotmail.com> wrote in message news:WI*******************@news01.bloor.is.net.cab le.rogers.com...
I found a sample of uploading a file to the server. This works fine. I
just created a virtual directory placed the aspx file in it and
navigated to
the directory. No problem there.

Then to make it "better" I created a new application and copied the code

and
HTML to a new web app. When I run exactly the same code I get a message

::

Upload of File KazaAmy.jpg to c:\inetpub\wwwroot\UploadFiles failed for

the
following reason: Access to the path
"c:\inetpub\wwwroot\UploadFiles\KazaAmy.jpg" is denied.

The original is not compiled and I have compared the properties of both

web
folders and the only difference is that the application has "Application
Settings"

Any ideas??

Lloyd Sheen


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
2
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
4
by: R Reyes | last post by:
I am trying to code a file uploader (for forum/email attachments) from the client computer to a remote web server via the PUT method (since POST is not allowed ). However, the upload works ONLY...
6
by: Joe Bonavita | last post by:
What is the safest way to create a file on the server? I'm looking for something like: secureconnection(); // create the file disconnect();
2
by: Stephen Witter | last post by:
I had previously posted this on the security ng, but haven't had a hit so I was wondering if someone here would be willing to take a stab. I am trying to copy a file to a network drive. I can do...
9
by: CGW | last post by:
I asked the question yesterday, but know better how to ask it, today: I'm trying to use the File.Copy method to copy a file from a client to server (.Net web app under IIS ). It looks to me that...
16
by: Eran.Yasso | last post by:
Hi, I have a mdb file shared in the LAN. I want to write app that verifies if it's open. If the file is not open, then my app can open the file. if the file is used, then the app won't open it....
15
by: slinky | last post by:
Thanks in advance fo rany help... I have an XML data file (well- formed) that I need to place into my website's app_data folder. I would like to have an .aspx form on my site that simply has two...
1
by: tanya.wang | last post by:
I want to access files from a remote server so I mapped it in my server under z:\ for \\myserver\web\mysite\images\ I added this UNC path to my IIS virtual directory and name it as "upload" but I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.