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.
fp = File.CreateText(Server.MapPath("\\ServerName\TRANSMITTALS") & "\" & TxtFileName)
I keep getting the following error message:
File Creation failed. Reason is as follows System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\inetpub\wwwroot\ServerName\TRANSMITTALS\Monthly_AutoRentals_72005.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?