Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to open a folder which is present in server using IIS when Iam trying this
System.Diagnostics.Process.Start("explorer.exe", @"\\0.0.0.0\est\Share\111")

in local machine is working fine ,but when I config my website with IIS7 it does't works.
pls help me..
Posted
Updated 10-Jul-14 19:37pm
v2

1 solution

Of course it works!
It just doesn't do what you expected...

It is doing exactly what it was when you tested it on your development machine - opening a Windows Explorer instance (and window) on the server. But when it was on your development machine, you could see it, because the client and the server were the same computer.
Now you are in production, and they aren't. So the client can't see the window, because (like all other C# code) it is executed on the server and not the client.

What you are probably doing is annoying the heck out of your web host administrator, since you are opening windows you can't close...

You can't do that. It doesn't work, and even if it did it would be an enormous security hole which would probably get you thrown off the server with extreme prejudice!
 
Share this answer
 
Comments
sathishvegeta 11-Jul-14 2:00am    
Is there any way to open a folder by passing the username and password of the server??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900