.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

SPSite - The Web application at
could not be found.

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :SharePoint
 
I'm trying to use SP object model from a web application and when I create a new instance of SPSite I get this error:

The Web application at <address> 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've tried loading the SPSite using the server name, server IP address or localhost, but in each case I get this error.
The web application is run from the SP server.
What's wrong/missing?


View Complete Post


More Related Resource Links

File not found for SPSite object

  
Hi,  I created a webapplication to access spsite object,When i try to access the site,I getting file not fount exception.If use the same code in windows form i am able to access the spsite object.Can any one tell me why its not working in web applications.I am using VS2008 and Moss 2007 is on the same machine. Thanks, Sreemouni.

"System.ArgumentException: Font '?' cannot be found" during application start up. Any ideas?

  
We have couple of users that get this error when they run our application.  I have never seen this problem before. Client says fonts are installed and Microsoft Sans Serif font is there as well. Also he states that user has Read permissions to %SytemRoot%Fonts folder. Any suggestions or ideas how to fix this problem will be appreciated. Thank you.  Here is the stack:   Exception: System.ArgumentException: Font '?' cannot be found.   at System.Drawing.FontFamily.GetGdipGenericSansSerif()    at System.Drawing.FontFamily.get_GenericSansSerif()    at System.Drawing.SystemFonts.get_DefaultFont()    at System.Windows.Forms.Control.get_DefaultFont()    at System.Windows.Forms.Control.get_Font()    at System.Windows.Forms.Control.AssignParent(Control value)    at System.Windows.Forms.Control.ControlCollection.Add(Control value)    at Bloomberg.SmartClient.Hosting.ErrorControl.InitializeComponent() in C:\Projects\Source\Client\ApplicationHosting\ErrorControl.cs:line 218    at Bloomberg.SmartClient.Hosting.ErrorControl..ctor(String appTitle, Boolean inPanel, Exception exception) in C:\Projects\Source\Client\ApplicationHosting\ErrorControl.cs:line 119    at Bloomberg.SmartClient.Hosting.ApplicationHost.OnDisplayError(ApplicationDescription appDescription, Excepti

"System.ArgumentException: Font '?' cannot be found" during application start up. Any ideas?

  
We have couple of users that get this error when they run our application.  I have never seen this problem before. Client says fonts are installed and Microsoft Sans Serif font is there as well. Also he states that user has Read permissions to %SytemRoot%Fonts folder. Any suggestions or ideas how to fix this problem will be appreciated. Thank you.  Here is the stack: Exception: System.ArgumentException: Font '?' cannot be found.   at System.Drawing.FontFamily.GetGdipGenericSansSerif()    at System.Drawing.FontFamily.get_GenericSansSerif()    at System.Drawing.SystemFonts.get_DefaultFont()    at System.Windows.Forms.Control.get_DefaultFont()    at System.Windows.Forms.Control.get_Font()    at System.Windows.Forms.Control.AssignParent(Control value)    at System.Windows.Forms.Control.ControlCollection.Add(Control value)    at Bloomberg.SmartClient.Hosting.ErrorControl.InitializeComponent() in C:\Projects\Source\Client\ApplicationHosting\ErrorControl.cs:line 218    at Bloomberg.SmartClient.Hosting.ErrorControl..ctor(String appTitle, Boolean inPanel, Exception exception) in C:\Projects\Source\Client\ApplicationHosting\ErrorControl.cs:line 119    at Bloomberg.SmartClient.Hosting.ApplicationHost.OnDisplayError(ApplicationDescription appDescription, Exception err

Page cannot be found error on clearing cookies while running application

  
Hello all,            I've a web application which is running on sql state session .. And is running well under normal conditions. But when my application is in home page or landing page after loging to the application, if user clears all his history and cookies and click on any menu in the application . It is giving  Internet Explorer cannot display the webpage error.. I'm not able to debug the error.. am getting the same problem even under deploying conditions. How to handle this issue?   Thanks in advance, Hari.

The Web application at http://Sitename// could not be found. Verify that you have typed the URL corr

  
The Web application at http://Sitename/ 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.

Managed Metadata Service - No EMM application proxy can be found

  

Hi

I have Managed Metadata Service configured with the default language German and the target Content Hub it also in German. When I try to publish a content type i got this error "cannot check for changes because no emm application proxy can be found". Any ideea?

Thanks


Web application project type not found

  

HI,

I have VS 2005 installed on my system. The details are as follows -

Microsoft Visual Studio 2005
Version 8.0.50727.42  (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727 SP2

Installed Edition: Enterprise

My Problem is -

1. I can not see Web application project template when creating new project.

2. When I open a project, it gives error as "Project file can not be loaded".

I searched forums and it says

Run VS80-KB915364-X86-ENU.exe first, then

run WebApplicationProjectSetup.msi.

3. Can anyone tell me what this installation does?

Thanks,

PM.

 


SPSite File Not Found

  

I have i Windows From App in VS2010 with added Microsoft.Sharepoint reference.

I try to initialize site:

SPSite launchsite = new SPSite("http://localhost");

but it throws :

System.IO.FileNotFoundException was unhandled

What is wrong?

Site is definetly working. VS, sql, sharepoint app pool and everything work under single account.


Managed Metadata Service: Cannot check for changes because no EMM application proxy can be found

  

We have a managed metadata service with two owners. Both of them can't change anything to the term store anymore. The moment they try they get access denied:

The user doesnt have enough permissions. When looking into the log of SharePoint i found the following message:

Cannot check for changes because no EMM application proxy can be found

When I try to add another administrator using the Install_Admin account (who is farm admin) I get the same message that the user doesnt have enough permissions.

Our term store is setup in multiple languages with Dutch being the primary one.

Any help much appreciated.

Thijs


File not found exception when use SPSite site = new SPSite(uxAddress.Text);

  
The Web application at http://v-johnzh-test01/SitePages/Home.aspx 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.

File not found exception when use SPSite site = new SPSite(uxAddress.Text);

  

The Web application at http://v-johnzh-test01/SitePages/Home.aspx 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 already set the platform as x86.


File Not Found Exception while using SPSite

  
Hi Everybody,

I'm trying to upload a file from a local folder to a Sharepoint Document Library using an ASP .NET web service.The code i used to connect to the site is given below.

using (SPSite sharePointtopLevelSite = new SPSite("http://localhost:414"))
When i try to run the service i get a File Not Found Exception as shown below.

System.IO.FileNotFoundException: The Web application at http://localhost:414 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. at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, SPUserToken userToken) at Microsoft.SharePoint.SPSite..ctor(String requestUrl) at UploadFileService.Service1.UploadFileToDocmentLibrary() in

I am getting the same exception when I try to create a WebSite also.While creating the website I mentioned the Location as FileSystem and saved it in the virtual directories folder.I'm unable to give the location as HTTP due to some backward compatibility issues with IIS6.Could this be the reason for the exception?

On an Aside,I'm able to upload a file using Console and Windows form appli

"The Web application at [http://scshyd-160:45000] could not be found. .. the system administrator ma

  

My machine is 64bit installed in OS server2008(64bit),Sharepoint2007(64bit) and VS(64bit)

When i create a webapplication i am getting this error message:

using (SPSite siteCollection = new SPSite("http://scshyd-160:45000"))

"The Web application at [http://scshyd-160:45000] 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"

plz any one help me in this

 




Unable to create a web application- website http 404 not found

  

I am trying to create a sharepoint web application and site collection. But when a site collection is created, it says the site is successfully created but when I navigate to that site its giving me this error: http 404 not found.

When I see in the IIS, the virtual directory structure is not created properly. It just contains 4 folders, (control temp, layouts, _vti_bin, _wpresources). Dono why its not creating all the folders!

Does anyone know why this is happening? I am using the farm administrator account for creating the web app. Is it something related to the IIS settings?

Advanced thanks for the help.


Restore-SPSite in extended web application.....

  

I tried to restore a site collection from my production farm to my test farm. It was pretty straightforward and completed without errors.

The powershell command I ran to back up the site collection followed this syntax:

Backup-SPSite http://internet-staging/ -Path <file path/filename.bak>

The powershell command I ran to restore the site collection followed this syntax:

Restore-SPSite -Identity http://internet-staging -Path <file path/filename.bak> -Force

The site collection was created with 'internet-staging" as a host headre and the web application was extended to the host header "internet"

I see on my test farm's WFE that the "internet" site no longer exists in IIS ....

What did I do wrong and how do I fix? Should I have used the '-Identity flag during the restore?

Thanks,


Jim

The Web application at http://server:portnumber/ could not be found

  
Hello,

I have simply created share point web part in VS 2010 that displays list's items count with following code in page load event


  string SitePath = SPContext.Current.Web.Url.ToString() + "/";
 
  lblWebException.Visible = true;

  SPSite site = new SPSite(SitePath);
  SPWeb web = site.OpenWeb();
  SPList lst = web.Lists["Bucket"];

  lblWebException.Text = Convert.ToString(lst.Items.Count);

Issue :

I have deployed this webpart solution as farm solution on server on default site , that's working fine on default site and gives result ,Now i have extended this site on "Internet" zone and mapped with live IP ( I have set Host Header Value as Live IP ) and set Anonymous Access as YES

the extended site which is live , working good on net , but when i go to webpart page where i have deployed above webpart that shows following error

"The Web application at http://LiveServerIP:PortNumber/ 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 set Target Platform as "Any CPU" as well there is full access to appli

Web Service cannot be found/referenced in Web Application project (working in Web Site)

  

Hi Everyone,

I am learning about the web service technology, and I tried to create my first Ajax style web service following the video tutorial by Joe Stagner (http://www.asp.net/general/videos/ajax-style-services-with-microsoft-visual-web-developer-2008)

The tutorial is quite basic, we simply create a web service, and call it from Javascipt in the same program.  But while I can create the web service no problem (testing the WSDL file from browser works perfectly), I cannot call it within Javascript.  Tellisence do not kick in, and when I run the program anyway, a Javascript error claims that the web service I created cannot be found.

After much frustration, I noticed that my program is created as a Web Application, while the tutorial is created under a Web Site.  So I created a Web Site too and everything works. 

So the question is, what setting(s) do I have to change in a Web Application for this to work?  I guess an even broader question is, what differences between Web Application and Web Site do I need to be fully aware of, so this kind of problem do not occur in the future?

Thank you very much!


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend