473,748 Members | 8,367 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2634
a) Are you using a UNC path?
b) What user context is the component running under?

Cheers
Ken
"Markus Weber (Megalith GmbH)" <m.*****@megali th-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.*****@megali th-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.*****@megali th-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
3893
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 DB to a different server). FastCopy says its 30 to 50% faster than Windows file copy. I read somewhere that the windows kernel defaults to 4mb/sec throughput for copying. Is this true? Is there a faster way or some utility to copy files?...
4
3501
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 from one computer to another over a 1GBit ethernet network as fast as I can. Although windows copy works at %40 performance, File.Copy could not go further than %4. What could be the reason? What would be the best solution; is it feasible to
1
1709
by: Mark Goldin | last post by:
In general, can server side code copy files that it will create over the network? Thanks
3
2913
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 copytest I copy something to copytest2): <?php copy('05_17340.jpg', 'D:\\copytest2\\test.jpg'); ?>
4
11738
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 file or changes (to files or folders) then it copies the files (and any new folders) to a folder in the mapped network drive. So far I have been successful in developing and deploying the service which works on my local machine with two drives...
3
17020
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 a unc path to a network workstation, you are prompted with a dialog box asking for the user name and password that has access rights to that computer. After validating, you can access the files on the remote pc just like you can on your own pc,...
1
2341
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. We need to transfer 100gb files inside a "network" which is using 1GB network.It could be databases or files that we are trying to transfer. It could be between computers or servers inside teh same network If anybody has any links to provide or...
1
3896
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 a single folder called 'All Files' Do we spread them out and copy them to multiple folders like Folder 000 - Copy files from 0 to 1000 Folder 001 - Copy files from 1000 to 2000 Folder 002 - Copy files from 2000 to 2999
1
4299
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) { File.Copy(file.FullName,destPath+ "\\" + file.Name, true); } This code copies only 5 or 10 files but in "files" collection there is 60 files.
10
4963
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 \sitemanager.xml to this location: \\drake\pvt\%USERNAME%\FileZilla-Prefs\ BUTTON 2 - RESTORE PREFS this will do the opposite:
0
8823
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,...
0
9530
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, 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...
1
9312
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,...
0
9238
tracyyun
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...
0
8237
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4593
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3300
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
3
2206
bsmnconsultancy
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...

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.