Sharepoint Error
Hi,
I am facing a problem in Sharepoint 2007,I have a web app in which I am accessing a document library using the following code
SPWeb spsSite =newSPSite(strSPServer).OpenWeb();spsSite.AllowUnsafeUpdates =true; SPFolder spFold = spsSite.GetFolder(strDocLib);
where strSPServer = “http://localhost:port/” , strDocLib is the library name
Doing running the application from Visual Studio IDE I am able to access the site andupload a document to the library.
Now when I deploy the same app in IIS as a virtual directory under default web site on the same machine where Sharepoint is installed and I runthe app and try accessing the site it gives me the following error.
The Web Application athttp://localhost:port/ could not be found.Verify that you have typed the URL correctly. If the URL should be serving existing content,the system administrator may need to add a new request URL mapping to the intended application.
Could someone please help, or give me some pointers
Thanks in advance

