Check file exists on remote server asp.net
Hi, have you tried the solution pointed out by others? The root cause to this issue is the account that runs your ASP. NET application does not have access to the shared folder. I don't know exactly which account it is.
Possibly it is Network Service. But you need to check your IIS application pool settings. There're two solutions: 1. Grant that account access to the shared folder. If the client user has access to the shared folder, you can use impersonation, as pointed out by others. If you have tried impersonation and still have problems it may be because Server A with IIS and your app does not have permission to delegate trust to another server Server B with the files you want access to.
Server A must be set up to delegate trust Unless my understanding is off, it's possible to get more permission with impersonation on Server A, but it doesn't guarantee access on Server B. The content you requested has been removed. Ask a question. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Web Forms. Sign in to vote. User posted i have a file on server and want to check whether that file or not from another server.
Hey, Scripting Guy! Hey, SP. You know, the Scripting Guy who writes this column had minor periodontal surgery this morning. Well, maybe his dentist thought it was minor.
SP, this is just what the doctor ordered! As you noted, you want to verify the existence of a file on a remote computer; however, that file might not be stored in a shared folder. Is that a problem? Well, it could be, if you were using the FileSystemObject. Verify the existence of a file on a remote computer? If colFiles. We begin by assigning the name of the remote computer to a variable named strComputer:. In an unusual plot twist at least for this column , that brings up an interesting question: could we run this same script on the local computer?
You bet; all we have to do is assign a dot. Why a dot? After assigning the computer name to strComputer we connect to the WMI service on atl-fs Tuesday, December 9, AM.
User posted what error do you get? Whats not working? Tuesday, December 9, PM. User posted anybody?? Thursday, December 11, PM. User posted First, is the user you're impersonating a local user account on the machine or a domain user?
Your options for accessing a computer outside of the local machine are: 1 Get explicit user credentials by prompting for them. The application can then pass these on to the remote computer as needed. If you are impersonating a user local to only your machine, the network computer will not recognize that the user is valid. If you need different permissions for your whole web app, then doing the web. Let me know.
User posted to answer your questions: I am impersonating domain users. User posted I was basically in the same situation as you about 4 days ago. I read a lot of articles about the process and felt i was doing everything that was necessary as you did, granted permissions to the ASP. NET temporary files folder and the assembly folder etc.
0コメント