473,405 Members | 2,185 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,405 software developers and data experts.

Copy files on Network

Hallo!

I have created an VB-ActiveX-Componente that copy files on network.
This works on one my development computer when I install application
on other IIS servers (files to copy on same server with same rights) I
get error message "Invalid filename or number". So what can cause this
problems?

Thnaks in advance!
Jul 19 '05 #1
7 2626
a) Are you using a UNC path?
b) What user context is the component running under?

Cheers
Ken
"Markus Weber (Megalith GmbH)" <m.*****@megalith-software.de> wrote in
message news:41****************@msnews.microsoft.com...
Hallo!

I have created an VB-ActiveX-Componente that copy files on network.
This works on one my development computer when I install application
on other IIS servers (files to copy on same server with same rights) I
get error message "Invalid filename or number". So what can cause this
problems?

Thnaks in advance!

Jul 19 '05 #2
>a) Are you using a UNC path?
Yes, I already found out tha mapped drives aren't supported
b) What user context is the component running under?

As I know components are running under IIS always under the user
"IUSR_XXX" (XXX = machine name), this is a locale user so I set access
rights of files on network so that "Everyone" can read them.

Jul 19 '05 #3
Markus Weber (Megalith GmbH) wrote:
a) Are you using a UNC path?

Yes, I already found out tha mapped drives aren't supported
b) What user context is the component running under?

As I know components are running under IIS always under the user
"IUSR_XXX" (XXX = machine name), this is a locale user so I set access
rights of files on network so that "Everyone" can read them.


But IUSR is a local account and will not be in the network server's Everyone
group.

You need to force ASP to run under a network account which has permissions
to te network resources needed. This can be done in the Directory Security
tab in IIS Manager.

Bob Barrows

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #4

"Markus Weber (Megalith GmbH)" <m.*****@megalith-software.de> wrote in
message news:41****************@msnews.microsoft.com...
a) Are you using a UNC path?

Yes, I already found out tha mapped drives aren't supported

b) What user context is the component running under?

As I know components are running under IIS always under the user
"IUSR_XXX" (XXX = machine name), this is a locale user so I set access
rights of files on network so that "Everyone" can read them.


"Everyone" on server B only includes users who are valid on server B. Local
users on Server A are not valid on Server B (so they are not in the
"everyone" group on server B). The only ways to make it work is to either:
a) create a user on Server B called IUSR_ServerA, and give it the same
password as IUSR_ServerA on Server A (additionally, you will need to still
allow NTLM or LanMan access - Kerberos won't allow this type of
authentication)
-or-
b) (not 100% sure this will work) include the "anonymous" access token in
the "everyone" group on server B (NOT RECOMMENDED, since this means that any
anonymous access / null session can connect).

Cheers
Ken
Jul 19 '05 #5

"Markus Weber (Megalith GmbH)" <m.*****@megalith-software.de> wrote in
message news:41****************@msnews.microsoft.com...
a) Are you using a UNC path?

Yes, I already found out tha mapped drives aren't supported
b) What user context is the component running under?

As I know components are running under IIS always under the user
"IUSR_XXX" (XXX = machine name), this is a locale user so I set access
rights of files on network so that "Everyone" can read them.

Sorry, should have added:

c) Do what Bob Barrows has suggested - use a domain account (if both
machines are in a domain)

Cheers
Ken
Jul 19 '05 #6
>>> a) Are you using a UNC path?
Yes, I already found out tha mapped drives aren't supported
b) What user context is the component running under?

As I know components are running under IIS always under the user
"IUSR_XXX" (XXX = machine name), this is a locale user so I set access
rights of files on network so that "Everyone" can read them.


But IUSR is a local account and will not be in the network server's Everyone
group.

You need to force ASP to run under a network account which has permissions
to te network resources needed. This can be done in the Directory Security
tab in IIS Manager.


Thanks alot Bob, this solves the problem! I always thought that
"Everyone" means really everyone, all domain users as well as all
other users such as locole one.

Jul 19 '05 #7
>> >a) Are you using a UNC path?
Yes, I already found out tha mapped drives aren't supported
b) What user context is the component running under?

As I know components are running under IIS always under the user
"IUSR_XXX" (XXX = machine name), this is a locale user so I set access
rights of files on network so that "Everyone" can read them.

Sorry, should have added:

c) Do what Bob Barrows has suggested - use a domain account (if both
machines are in a domain)


Thnaks alot, I solved th problem with Bobs tip.
Jul 19 '05 #8

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

Similar topics

3
by: louis n | last post by:
I work with databases and some of my backup files are 30-100 gigs in size. I currently use the FastCopy utility to copy files from one server to another. (This is needed when I need to transfer a...
4
by: adnan boz | last post by:
Hi All, Does somebody know why File.Copy function is 10 times slower than standard windows drag and drop copy between folders, when I copy files over the network? Actually, I need to copy files...
1
by: Mark Goldin | last post by:
In general, can server side code copy files that it will create over the network? Thanks
3
by: Marcel | last post by:
Hello, I have a problem with accessing files on other computers in my network. The network is a Windows 2000 workgroup network and I have administrator rights.... This works (from the directory...
4
by: sajid_yusuf | last post by:
Hi I am trying to develop a Windows service in VB.NET which has timer enabled and keeps checking a folder (or group of folders) for any new file or changed files. As soon as it detects any new...
3
by: =?Utf-8?B?U2Vhbk1hYw==?= | last post by:
How do I programmatically copy files across a network (from a local workstation to another local workstation on the network) using visual basic 2005? In other words, when in explorer and you enter...
1
by: jijuanair | last post by:
Hello All, Pardon me if i am posting this question in the incorrect forum. I am looking for an application that if needed i am ready to buy ,that will copy 100 GB single files over a 1GB network....
1
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
Using .NET 2.0 is it more efficient to copy files to a single folder versus spreading them across multiple folders. For instance if we have 100,000 files to be copied, Do we copy all of them to...
1
by: =?Utf-8?B?UmFkZW5rb19aZWM=?= | last post by:
I am using standard File.Copy(source,dest,true) method in C# and I have problem with copying large number of files. Here is my code: foreach (FileInfo file in files) {...
10
by: Jason | last post by:
I want to create a simple program with Two buttons on the form. BUTTON 1 - BACKUP PREFS this will do the following: Copy C:\Documents and Settings\%USERNAME%\Application Data\FileZilla...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
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,...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.