Solved

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

Posted on 2009-05-13
8
1,180 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

635 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