fleet
asked on
Create text file on different server.
I have a web page that once selected will create a text file. I need this file to be created on a different server so the users can have access to it.
I'm using:
fp = File.CreateText(Server.Map Path("\\Se rverName\T RANSMITTAL S") & "\" & TxtFileName)
I keep getting the following error message:
File Creation failed. Reason is as follows System.IO.DirectoryNotFoun dException : Could not find a part of the path 'c:\inetpub\wwwroot\Server Name\TRANS MITTALS\Mo nthly_Auto Rentals_72 005.txt'.
'c:\inetpub\wwwroot\ is not on the server I'm trying to create the Monthly_AutoRentals_72005. txt file on.
Can someone tell me what I'm doing wrong?
Thanks
I'm using:
fp = File.CreateText(Server.Map
I keep getting the following error message:
File Creation failed. Reason is as follows System.IO.DirectoryNotFoun
'c:\inetpub\wwwroot\ is not on the server I'm trying to create the Monthly_AutoRentals_72005.
Can someone tell me what I'm doing wrong?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER