Solved

"System.Web.Services.Protocols.SoapException: Server was unable to process request." error in a web service

Posted on 2009-05-13
8
1,085 Views
Last Modified: 2012-05-06
Hello,
I am calling a webservice function from a windows service. Both applications reside on windows 2008 server.

the exception details are below:
-----------------------------------

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Runtime.InteropServices.COMException (0x800710D8): The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8)
   at Microsoft.Web.Administration.Interop.IAppHostProperty.get_Value()
   at Microsoft.Web.Administration.ConfigurationElement.GetPropertyValue(IAppHostProperty property)
   at Microsoft.Web.Administration.ConfigurationElement.GetAttributeValue(String attributeName)
   at Microsoft.Web.Administration.Site.get_State()
   at Webserver.IIS.StartWebsiteifAccountingSaysOK(String& StartedDomains, String& Durmusolanlar, String& MyReturnmessage) in C:\CentraWebService\App_Code\IIS.vb:line 443
   at ForWebService.StartWebsiteifAccountingSaysOK(String& startedDomains, String& DurmusOlanlar, String& ReturnMessage) in C:\CentraWebService\App_Code\ForWebService.vb:line 187

-----------------------------------------------------------
Below is the part of the StartWebsiteifAccountingSaysOK sub where error occurs.

                Using mgr As New ServerManager()
                    Dim sites As SiteCollection = mgr.Sites
                    For Each Mysite As Site In sites
                        If Mysite.State = ObjectState.Stopped Then ----->>>>>ERROR OCCURS HERE   line 443



Please note that StartWebsiteifAccountingSaysOK function works just fine on a web application residing on the same server.

I  will appreciate any help.

Elcin
0
Comment
Question by:cuneytyagiz
  • 4
  • 2
8 Comments
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 24381637
OMG: You mean you have one web service calling another web service on the same server? If that is true, why?  Web services were intended to get heterogeneous systems to communicate.  In other words if you had a windows system and and a non-Windows system.  In this case adding the overhead of web services is going to kill performance.
0
 

Author Comment

by:cuneytyagiz
ID: 24382338
I am calling the web service form a windows application on another server, not on the same server. Windows application and web service are on different servers.

Elcin
0
 
LVL 51

Accepted Solution

by:
Ted Bouskill earned 250 total points
ID: 24382361
Your statement "Both applications reside on windows 2008 server. " confused me.

However, on second glance it looks like you are trying to access the Sharepoint API from a non-Sharepoint server.  Is that correct?  If yes, it won't work.
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

Author Comment

by:cuneytyagiz
ID: 24382801
No, it is not the case. I have 2 windows 2003 server, let's call them Server A and Server B. Server A has a web service. Server B  has a windows application which is calling the web service on Server A.

Web service code (on Server B) is throwing an exception on line "If Mysite.State = ObjectState.Stopped Then "  This is my problem.

Elcin
0
 
LVL 51

Assisted Solution

by:Ted Bouskill
Ted Bouskill earned 250 total points
ID: 24392628
Hmm, well if the object model for ServerA isn't available on ServerB then I would expect it to fail.
0
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 25215743
http:#24382361 and http:#24392628 are appropriate answers.  The user cannot access the Sharepoint API on a non Sharepoint server via a web service.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question