Open Specifications Developer Center > Open Specifications Forums > File Services > Create a file on the Remote Server using ASP.NET application
Ask a questionAsk a question
 

AnswerCreate a file on the Remote Server using ASP.NET application

  • Friday, August 14, 2009 8:42 PMsrkvellanki Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi All,

    I want my ASP.NET application (VB.NET Code behind) to create a text file on a remote server (destServerName)

    Dim destFilePath As String = "\\destServerName\desttemp\srcfilename.TXT"

    Try
    File.Create(destFilePath)
    Catch ex As Exception
    UtilityTier.ApplicationError.ReportError("SIInitAndEduInterface-btnUploadFile", ex.Message)
    End Try

    Exception Message:- "Logon failure: unknown user name or bad password"

    Server "destServerName" is running Windows 2003

    Folder 'desttemp' is having fullcontrol to Everyone,Network Service account

    Note:I gave all permissions in the Netman-->Security for "Network Service"


    Regards
    Sri

Answers

  • Friday, August 14, 2009 9:16 PMTom Jebo_DSCMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi Sri,

    this forum is for software developers who are using the Open Protocol Specification documentation to assist them in developing systems, services, and applications that are interoperable with Windows. The Open Protocol Specifications can be found at:
    http://msdn2.microsoft.com/en-us/library/cc203350.aspx. Since your post does not appear to be related to the Open Protocol Specification documentation set we would appreciate it if you could try http://forums.asp.net/ instead to find the information you are looking for.

    Having said that, have you made sure that the remote folder is shared and permissions set for network users in addition to NTFS permissions? 


    Regards, Tom Jebo Senior Support Escalation Engineer Microsoft DS Protocol Team

All Replies

  • Friday, August 14, 2009 9:16 PMTom Jebo_DSCMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi Sri,

    this forum is for software developers who are using the Open Protocol Specification documentation to assist them in developing systems, services, and applications that are interoperable with Windows. The Open Protocol Specifications can be found at:
    http://msdn2.microsoft.com/en-us/library/cc203350.aspx. Since your post does not appear to be related to the Open Protocol Specification documentation set we would appreciate it if you could try http://forums.asp.net/ instead to find the information you are looking for.

    Having said that, have you made sure that the remote folder is shared and permissions set for network users in addition to NTFS permissions? 


    Regards, Tom Jebo Senior Support Escalation Engineer Microsoft DS Protocol Team