Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2005

Tip: Looking for answers? Try searching our database.

Problem with webserver on 2003 Server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bj?rn Hallin - 21 Feb 2005 15:17 GMT
Hi!

I have a problem with a webservice installed on a Windows 2003 Server.

It's working using Internet Explorer, but when i try to call the same
methodes from my client application,
I get 2 requests and answers the first one correct but not the second.

When run on my local machine everything works nice.

Running the same application and client on the server won't work.

The InputTrace & OutpuTrace from the webservice follows, first the from my
local machine.

Greatful for any clues!

Thanks in advance!

Bj?rn Hallin

local
====
----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------
 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
ty-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd">
   <soap:Header>
     <wsa:Action>http://tempuri.org/ConfirmDepartment</wsa:Action>

<wsa:MessageID>uuid:fd8fb0a0-a61a-4411-954f-2277fce755f4</wsa:MessageID>
     <wsa:ReplyTo>

<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
</wsa:Address>
     </wsa:ReplyTo>
     <wsa:To>http://127.0.0.1/BHVServices/wsOverView.asmx</wsa:To>
     <SystemSettings>
       <DBVersion>0.0.0.2</DBVersion>
       <ServerVersion>0.0.0.2</ServerVersion>
     </SystemSettings>
     <CurrentUser>
       <UserDataID>1</UserDataID>
     </CurrentUser>
     <wsse:Security>
       <wsu:Timestamp
wsu:Id="Timestamp-e6cf9fd5-1ef4-4515-9535-546c981c9eaa">
         <wsu:Created>2005-02-21T09:55:30Z</wsu:Created>
         <wsu:Expires>2005-02-21T10:00:30Z</wsu:Expires>
       </wsu:Timestamp>
     </wsse:Security>
   </soap:Header>
   <soap:Body>
     <ConfirmDepartment xmlns="http://tempuri.org/">
       <anOriginalID>MD-1005-90</anOriginalID>
     </ConfirmDepartment>
   </soap:Body>
 </soap:Envelope>
----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------
 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
ty-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd">
   <soap:Header>
     <wsa:Action>http://tempuri.org/ConfirmDepartmentResponse</wsa:Action>

<wsa:MessageID>uuid:4a50f33d-7dcd-44ce-a39e-d11faeb77d29</wsa:MessageID>

<wsa:RelatesTo>uuid:fd8fb0a0-a61a-4411-954f-2277fce755f4</wsa:RelatesTo>

<wsa:To>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa
:To>
     <wsse:Security>
       <wsu:Timestamp
wsu:Id="Timestamp-bf85d137-a93a-4d07-bb2b-7e49c1b8b640">
         <wsu:Created>2005-02-21T09:55:30Z</wsu:Created>
         <wsu:Expires>2005-02-21T10:00:30Z</wsu:Expires>
       </wsu:Timestamp>
     </wsse:Security>
   </soap:Header>
   <soap:Body>
     <ConfirmDepartmentResponse xmlns="http://tempuri.org/">
       <ConfirmDepartmentResult>4</ConfirmDepartmentResult>
     </ConfirmDepartmentResponse>
   </soap:Body>
 </soap:Envelope>

----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------

Server
=====
----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------
 <?xml version="1.0" encoding="utf-8" ?>
 <log>
  <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
ty-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd">
 <soap:Header>
 <wsa:Action>http://tempuri.org/ConfirmDepartment</wsa:Action>
 <wsa:MessageID>uuid:c3966bce-65b1-439e-95c4-033f9c1240b3</wsa:MessageID>
 <wsa:ReplyTo>

<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
</wsa:Address>
 </wsa:ReplyTo>
 <wsa:To>http://localhost/BHVServices/wsOverView.asmx</wsa:To>
 <SystemSettings>
   <DBVersion>0.0.0.2</DBVersion>
     <ServerVersion>0.0.0.2</ServerVersion>
</SystemSettings>
 <CurrentUser>
 <UserDataID>1</UserDataID>
  </CurrentUser>
 <wsse:Security>
 <wsu:Timestamp wsu:Id="Timestamp-8e2ccdab-1429-4ad3-8f22-72bbe83bd11f">
 <wsu:Created>2005-02-21T09:46:46Z</wsu:Created>
 <wsu:Expires>2005-02-21T09:51:46Z</wsu:Expires>
 </wsu:Timestamp>
 </wsse:Security>
 </soap:Header>
 <soap:Body>
 <ConfirmDepartment xmlns="http://tempuri.org/">
 <anOriginalID>MD-1005-90</anOriginalID>
 </ConfirmDepartment>
 </soap:Body>
 </soap:Envelope>
 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
ty-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd">
 <soap:Body>
 <ConfirmDepartment xmlns="http://tempuri.org/">
 <anOriginalID>MD-1005-90</anOriginalID>
 </ConfirmDepartment>
 </soap:Body>
</soap:Envelope>
</log>
----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------
 <?xml version="1.0" encoding="utf-8" ?>
<log>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
ty-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd">
<soap:Header>
 <wsa:Action>http://tempuri.org/ConfirmDepartmentResponse</wsa:Action>
 <wsa:MessageID>uuid:25d04571-330c-4718-af81-e3788975b7d0</wsa:MessageID>

<wsa:To>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa
:To>
<wsse:Security>
<wsu:Timestamp wsu:Id="Timestamp-25aa3fdb-7051-44c2-84d4-a52a172182c8">
 <wsu:Created>2005-02-21T09:46:47Z</wsu:Created>
 <wsu:Expires>2005-02-21T09:51:47Z</wsu:Expires>
 </wsu:Timestamp>
 </wsse:Security>
 </soap:Header>
<soap:Body>
<ConfirmDepartmentResponse xmlns="http://tempuri.org/">
 <ConfirmDepartmentResult>4</ConfirmDepartmentResult>
 </ConfirmDepartmentResponse>
 </soap:Body>
 </soap:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
ty-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd">
<soap:Header>

<wsa:Action>http://schemas.xmlsoap.org/ws/2004/03/addressing/fault</wsa:Acti
on>
 <wsa:MessageID>uuid:7a5d9195-ab28-4cfc-a6ed-02991cde58e0</wsa:MessageID>

<wsa:To>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa
:To>
<wsse:Security>
<wsu:Timestamp wsu:Id="Timestamp-3894bd5e-3f59-4baf-b6c7-3bae83e8b8c3">
 <wsu:Created>2005-02-21T09:46:47Z</wsu:Created>
 <wsu:Expires>2005-02-21T09:51:47Z</wsu:Expires>
 </wsu:Timestamp>
 </wsse:Security>
 </soap:Header>
<soap:Body>
<soap:Fault>
 <faultcode>soap:Server</faultcode>
 <faultstring>Servern kunde inte behandla beg&#228;ran. -->
Objektreferensen har inte angetts till en instans av ett
objekt.</faultstring>
 <detail />
 </soap:Fault>
 </soap:Body>
 </soap:Envelope>
</log>
----------------------------------------------------------------------------
----------------------------------------------------------------------------
---------
Errormessage translatted from swedish ...

<faultstring>Servern kunde inte behandla beg&#228;ran. --> Objektreferensen
har inte angetts till en instans av ett objekt.</faultstring>
<faultstring>Server Could not treat requst. --> Objektreference not set to
an instance of an object.</faultstring>
Sami Vaaraniemi - 23 Feb 2005 07:35 GMT
The most likely reason for the 'Object reference not set to an instance of
an object' error is that your service code is trying to use a null
reference. There is of course a tiny possibility that the null reference
problem is somewhere in framework code but I'd rule out problems in user
code first.

To solve the problem, obtain the full stack trace of the exception to see
the exact location of the error. This can be done by setting the
<detailedErrors enabled="true" /> element in the service config file.

Alternatively, run the service under the debugger and step through the code
until you hit the error.

Regards,
Sami

> Hi!
>
[quoted text clipped - 235 lines]
> <faultstring>Server Could not treat requst. --> Objektreference not set to
> an instance of an object.</faultstring>
Bj?rn Hallin - 23 Feb 2005 09:54 GMT
Hi Sami!

Thanks for looking at my problem!

The question was why  there are 2 request recieved at the server
one with filters and one without?

I finally found the reason after making a sample project i had put a copy of
web.config under wwwroot
which made the input filters run twice after removing this copy
all?everything works again.

Bj?rn Hallin

> The most likely reason for the 'Object reference not set to an instance of
> an object' error is that your service code is trying to use a null
[quoted text clipped - 44 lines]
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
> > ty-secext-1.0.xsd"

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
> > y-utility-1.0.xsd">
> >    <soap:Header>
> >      <wsa:Action>http://tempuri.org/ConfirmDepartment</wsa:Action>
> >
> > <wsa:MessageID>uuid:fd8fb0a0-a61a-4411-954f-2277fce755f4</wsa:MessageID>
> >      <wsa:ReplyTo>

<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
> > </wsa:Address>
> >      </wsa:ReplyTo>
[quoted text clipped - 29 lines]
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
> > ty-secext-1.0.xsd"

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
> > y-utility-1.0.xsd">
> >    <soap:Header>

<wsa:Action>http://tempuri.org/ConfirmDepartmentResponse</wsa:Action>

> > <wsa:MessageID>uuid:4a50f33d-7dcd-44ce-a39e-d11faeb77d29</wsa:MessageID>
> >
> > <wsa:RelatesTo>uuid:fd8fb0a0-a61a-4411-954f-2277fce755f4</wsa:RelatesTo>

<wsa:To>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa
> > :To>
> >      <wsse:Security>
[quoted text clipped - 30 lines]
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
> > ty-secext-1.0.xsd"

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
> > y-utility-1.0.xsd">
> >  <soap:Header>
> >  <wsa:Action>http://tempuri.org/ConfirmDepartment</wsa:Action>

<wsa:MessageID>uuid:c3966bce-65b1-439e-95c4-033f9c1240b3</wsa:MessageID>
> >  <wsa:ReplyTo>

<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous
> > </wsa:Address>
> >  </wsa:ReplyTo>
[quoted text clipped - 23 lines]
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
> > ty-secext-1.0.xsd"

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
> > y-utility-1.0.xsd">
> >  <soap:Body>
[quoted text clipped - 15 lines]
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
> > ty-secext-1.0.xsd"

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
> > y-utility-1.0.xsd">
> > <soap:Header>
> >  <wsa:Action>http://tempuri.org/ConfirmDepartmentResponse</wsa:Action>

<wsa:MessageID>uuid:25d04571-330c-4718-af81-e3788975b7d0</wsa:MessageID>

<wsa:To>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa
> > :To>
> > <wsse:Security>
[quoted text clipped - 14 lines]
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"

xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
> > ty-secext-1.0.xsd"

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
> > y-utility-1.0.xsd">
> > <soap:Header>

<wsa:Action>http://schemas.xmlsoap.org/ws/2004/03/addressing/fault</wsa:Acti
> > on>

<wsa:MessageID>uuid:7a5d9195-ab28-4cfc-a6ed-02991cde58e0</wsa:MessageID>

<wsa:To>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa
> > :To>
> > <wsse:Security>
[quoted text clipped - 27 lines]
> > <faultstring>Server Could not treat requst. --> Objektreference not set to
> > an instance of an object.</faultstring>
Sami Vaaraniemi - 23 Feb 2005 12:15 GMT
> Hi Sami!
>
[quoted text clipped - 10 lines]
>
> Bj?rn Hallin

Oh ok, I seem to have misunderstood the question. Glad it works now.

Sami

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.