I am developing website using visual studio 2010. Iam trying to save a file in a path. It works fine localhost. i used server.mappath to store the file in the path.
But the same code is not working in IIS. It shows the following error
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Inetpub\wwwroot\Vendor\cn.jpg'.
Could not find a part of the path 'C:\Inetpub\wwwroot\Vendor\cn.jpg'.
Is this is a setup issue. How can i fix this?