Solved

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

Posted on 2009-05-13
8
1,064 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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now