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 / November 2003

Tip: Looking for answers? Try searching our database.

Web Service error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Pril - 14 Nov 2003 08:31 GMT
Example 'hello word' produce error (see below). Help me please!!!

Thanks in advance,

Primoz

error description
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.

Source Error:

Line 1201:
Line 1202:    OperationBinding FindHttpBinding(string verb) {
Line 1203:        foreach (ServiceDescription description in
serviceDescriptions) {
Line 1204:            foreach (Binding binding in description.Bindings) {
Line 1205:                HttpBinding httpBinding =
(HttpBinding)binding.Extensions.Find(typeof(HttpBinding));

Source File:
d:\winnt\microsoft.net\framework\v1.1.4322\Config\DefaultWsdlHelpGenerator.a
spx    Line: 1203

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an
object.]
  ASP.DefaultWsdlHelpGenerator_aspx.FindHttpBinding(String verb) in
d:\winnt\microsoft.net\framework\v1.1.4322\Config\DefaultWsdlHelpGenerator.a
spx:1203
  ASP.DefaultWsdlHelpGenerator_aspx.get_HttpPostOperationBinding() in
d:\winnt\microsoft.net\framework\v1.1.4322\Config\DefaultWsdlHelpGenerator.a
spx:441
  ASP.DefaultWsdlHelpGenerator_aspx.get_ShowingHttpPost() in
d:\winnt\microsoft.net\framework\v1.1.4322\Config\DefaultWsdlHelpGenerator.a
spx:456
  ASP.DefaultWsdlHelpGenerator_aspx.__Render__control13(HtmlTextWriter
__output, Control parameterContainer) in
d:\winnt\microsoft.net\framework\v1.1.4322\Config\DefaultWsdlHelpGenerator.a
spx:1435
  System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
  System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter
writer) +29
  System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
  System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
  System.Web.UI.Control.Render(HtmlTextWriter writer) +7
  System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
  System.Web.UI.Page.ProcessRequestMain() +1929
ajay - 17 Nov 2003 07:09 GMT
Hi,

Please check the attributes of the Web Method.
If you want to make use of the session objects using Web
services, you need to activate one of the attributes of
the Web Method @EnableSession = true.
It's default value is false.

[Web Method (true)]

Hope this solves your problem.

Cheers

Ajay
>-----Original Message-----
>Example 'hello word' produce error (see below). Help me please!!!
[quoted text clipped - 34 lines]
>spx:1203
>  
ASP.DefaultWsdlHelpGenerator_aspx.get_HttpPostOperationBind
ing() in
>d:\winnt\microsoft.net\framework\v1.1.4322\Config\DefaultWsdlHelpGenerator.a
>spx:441
[quoted text clipped - 10 lines]
>   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
>   System.Web.UI.Control.RenderChildren(HtmlTextWriter
writer) +72
>   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
>   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
>   System.Web.UI.Page.ProcessRequestMain() +1929
>
>.

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.