Solved

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

Posted on 2009-05-13
8
1,102 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

756 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