473,386 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Login to a web service: System.MissingMemberException

Hello

I am using Visual Basic 2005 Express Edition Beta 2 (I am new to Visual
Basic) and am messing about with some code to login to a web service.

From the manual:
"The SOAP header for every request must contain the Web Service header. The
header will be returned with encrypted data (account information etc...).
You must attach this encrypted data to the header in all subsequent calls."

I keep getting an error messages:

Expand|Select|Wrap|Line Numbers
  1. System.MissingMemberException was unhandled
  2. Message="Public member 'ReturnValue' on type 'LoginSoap' not found."
  3.  
and

Expand|Select|Wrap|Line Numbers
  1. A first chance exception of type
  2. 'System.Web.Services.Protocols.SoapException' occurred in
  3. Microsoft.VisualBasic.dll
  4. A first chance exception of type 'System.MissingMemberException' occurred
  5. in Microsoft.VisualBasic.dll
  6.  
The question:
Armed with the following facts could you PLEASE make a suggestion as to
what the answer might be as this problem is driving me bonkers. I'm pretty
sure a variable isn't being set properly and have stepped through with the
debugger and watch window and still can't find it.

The declaration...
Expand|Select|Wrap|Line Numbers
  1. Public oLogin As New LoginSoap
  2. Public bfh As bfHeader = New bfHeader
  3. Public SessionHdr = LoginSoap
  4.  
NOTE:
I tried

Public SessionHdr As LoginSoap

but got the error:

Value of type 'bfHeader' cannot be converted to 'LoginSoap'.

Later on:
Expand|Select|Wrap|Line Numbers
  1. 'Set SOAP header
  2.  
  3. oLogin.bfHeaderValue = bfh
  4.  
  5. ' ServiceLogin is the calling procedure
  6.  
  7. oLogin.ServiceLogin()
  8.  
  9. ' UPON LOGIN SUCCESS...
  10. ' Keep the global header variable for this project up to date by using
  11. return from the login call
  12.  
  13. SessionHdr = oLogin.bfHeaderValue
  14.  
The error is generated here:
Expand|Select|Wrap|Line Numbers
  1. ' A procedure to display the return header
  2.  
  3. Private Sub loginTest()
  4.  
  5. If SessionHdr.ReturnValue = 0 Then
  6.  
  7. lblLoginResp.Text = "sessionHdr = " & SessionHdr.ToString() &
  8. ControlChars.NewLine & _
  9. "UserName = " & SessionHdr.username.ToString() & ControlChars.NewLine
  10.  
--
Thank you.
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200506/1
Nov 21 '05 #1
0 1876

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Coy | last post by:
I've added the ASPNET user to my local SQL Server 2000, but I still get an unhandled exception: Login failed for user 'C594891-A\ASPNET'. This is when using a web service. A similiar ASP.NET...
1
by: Ibrahim Mohamed El-Ganady | last post by:
Mr : I have proplem with Visual stdio 2003 and Windows2003 Enterprise Server , when I developed web application using ASP.Net (VB) that establish connection to SQL Server database the following...
0
by: Dave E. | last post by:
This is the error I get when I try to access a method from my COM+ component. It was working fine earlier but I made a few changes and now I get this error. The changes had to do with the number of...
1
by: TOLI | last post by:
Where do a set the right user rights for ASP.NET 2 to connect to a SQL service Se below // Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\NETWORK...
10
by: musosdev | last post by:
Wonder if someone can help! We're getting the following error on our Intranet system as soon as we login.. ------------------ Exception Details: System.Data.SqlClient.SqlException: Login...
0
by: muder | last post by:
I have a standard Login ASP.NET 2.0 control on a login Page, a LoginName and LoginStatus controls on the member's page. once the user login successfully I am redirecting the user to Member.aspx...
3
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I want to limit the user only login the system one time at the same time. I don't want him login the system two with the same user at the same time. How to do this? If i have a table to record...
1
by: Hiran | last post by:
I have a simple 'hello world' web service here http://www.askhiran2008.com/asliwebservicevb2/service.asmx. It should return data from the Northwind sample database. It works fine when being...
4
by: Brett | last post by:
I have an ASP.NET 2.0 application that uses Forms Authentication. The startup page contains just a login control, and the site works well on an IIS 6 web server. I am now setting the site up on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.