Solved

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

Posted on 2009-05-13
8
1,056 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:tedbilly
Comment Utility
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
Comment Utility
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:
tedbilly earned 250 total points
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:cuneytyagiz
Comment Utility
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:tedbilly
tedbilly earned 250 total points
Comment Utility
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:tedbilly
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

771 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

10 Experts available now in Live!

Get 1:1 Help Now