Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

System.IO.FileNotFoundException was unhandled by user code error

5 views
Skip to first unread message

Krishna

unread,
Nov 25, 2009, 7:05:02 AM11/25/09
to
I have installed moss 2007 over a windows server 2008 as a standalone system
and created few web applications,top level sites.
As part of coding requirement i created a web sie project in VS 2008 and
trying to access one of the site i create dlike below
SPSite mySite = new SPSite("http://a4ms06805:41360");
where a4ms06805 is my stand-alone server name and 41360 is some port.
I am getting the error "System.IO.FileNotFoundException was unhandled by
user code" with full details like "The Web application at
http://a4ms06805:41360 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" .


I have tried the approcah with alternate access mappings and also
cross-checked with all steps mentioned in

http://www.sharepoint-tips.com/2007/04/content-query-limitations-and-object.html

However the same works in another system which has windows server 2003 and
on VS 2005.

I feel its something to do with windows server 2008 security restrictions
but not able to figure out.

Any help is fully welcomed.

Thanks in advance.


manjunaths

unread,
Mar 9, 2010, 1:16:15 AM3/9/10
to
Hi Krisha,

I am also facing the same issue. The code works fine with windows server 2003 and not on 2008.

Please let me know, if you have found a resolution.

Thanks and Regards,
Manjunath

Krishna wrote:

System.IO.FileNotFoundException was unhandled by user code error
25-Nov-09

http://www.sharepoint-tips.com/2007/04/content-query-limitations-and-object.html

Thanks in advance.

Previous Posts In This Thread:

On Wednesday, November 25, 2009 7:05 AM
Krishna wrote:

System.IO.FileNotFoundException was unhandled by user code error

http://www.sharepoint-tips.com/2007/04/content-query-limitations-and-object.html

Thanks in advance.


Submitted via EggHeadCafe - Software Developer Portal of Choice
BizTalk Configure and Send SMTP Mail Based on Message Within an Orchestration
http://www.eggheadcafe.com/tutorials/aspnet/4e9e7c92-1279-4fdb-8631-a2f309a021c2/biztalk-configure-and-sen.aspx

Ben

unread,
Mar 12, 2010, 4:26:01 PM3/12/10
to
Make sure that the account executing the code has the correct access to the
content database (SQL permissions) and to the site itself (SharePoint site
permissions).

"manjunath s" wrote:

> .
>

0 new messages