Accesing a different Domain to write a file
Accesing a different Domain to write a file
Accesing a different Domain to write a file
Accesing a different Domain to write a file
Accesing a different Domain to write a file
Accesing a different Domain to write a file Accesing a different Domain to write a file Accesing a different Domain to write a file Accesing a different Domain to write a file Accesing a different Domain to write a file Accesing a different Domain to write a file Accesing a different Domain to write a file Accesing a different Domain to write a file
Accesing a different Domain to write a file Accesing a different Domain to write a file
Accesing a different Domain to write a file
Go Back  Xtreme Visual Basic Talk > > > Accesing a different Domain to write a file


Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2005, 02:19 PM
ellebanna's Avatar
ellebanna ellebanna is offline
Centurion
 
Join Date: Apr 2003
Location: US, Pennsylvania
Posts: 137
Unhappy Accesing a different Domain to write a file


Did someone ever encountered this?

I have an executable that copies a file to another location. The problem is the destination file is from a different domain. Although, i can login and see the destination \\server\share\filename, it cannot do it when the exe does the job, i get an error bad username or password. Is there a way to force the exe to have that login window to this other domain folder and programmatically pass the credentials? The exe is a C#.net code but it doesnt matter if its VB.Net, i can easily translate...if there is a solution to this.

Tx.
__________________
It's never easy when you dont know the answer....
Reply With Quote
  #2  
Old 05-05-2005, 10:29 PM
couch612's Avatar
couch612 couch612 is offline
Senior Contributor
 
Join Date: Sep 2002
Location: Brisbane, Australia
Posts: 1,209
Default

why don't you just map a drive to the domain, then copy the file. eg map Z drive to \\server\share\ then copy z:\filename to the destination.
__________________
Cheers,
Peter W.
Reply With Quote
  #3  
Old 05-06-2005, 07:10 AM
ellebanna's Avatar
ellebanna ellebanna is offline
Centurion
 
Join Date: Apr 2003
Location: US, Pennsylvania
Posts: 137
Default

Quote:
Originally Posted by couch612
why don't you just map a drive to the domain, then copy the file. eg map Z drive to \\server\share\ then copy z:\filename to the destination.
Doesnt work that way either, i tried mapping it and also UNC'ing the drive, same error. Bad Username or password. IT's almost like i need to force it to login to the destination folder but how?
__________________
It's never easy when you dont know the answer....
Reply With Quote
  #4  
Old 05-06-2005, 09:03 AM
AtmaWeapon's Avatar
AtmaWeaponAccesing a different Domain to write a file AtmaWeapon is offline
Fabulous Florist

Forum Leader
* Guru *
 
Join Date: Feb 2004
Location: Austin, TX
Posts: 9,500
Default

How are you copying the file? Does the user that runs the program have the proper credentials to copy a file by themselves? If not, you are going to have to jump through some hoops that I'm afraid I've never tried to jump through.
__________________
.NET Resources
My FAQ threads | Tutor's Corner | Code Library
I would bet money 2/3 of .NET questions are already answered in one of these three places.
Reply With Quote
  #5  
Old 05-08-2005, 05:42 PM
couch612's Avatar
couch612 couch612 is offline
Senior Contributor
 
Join Date: Sep 2002
Location: Brisbane, Australia
Posts: 1,209
Default

have a look at the DOS NET USE command. in Win 98, you can supply a password for the ddestination. The Win XP version may have command line parameters for username and password.
__________________
Cheers,
Peter W.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Accesing a different Domain to write a file
Accesing a different Domain to write a file
Accesing a different Domain to write a file Accesing a different Domain to write a file
Accesing a different Domain to write a file
Accesing a different Domain to write a file
Accesing a different Domain to write a file Accesing a different Domain to write a file Accesing a different Domain to write a file Accesing a different Domain to write a file Accesing a different Domain to write a file Accesing a different Domain to write a file Accesing a different Domain to write a file
Accesing a different Domain to write a file
Accesing a different Domain to write a file
 
Accesing a different Domain to write a file
Accesing a different Domain to write a file
 
-->