Link to home
Start Free TrialLog in
Avatar of AAWICT
AAWICT

asked on

Adding a library to MS Visual Studio 2010

Dear Experts,
I am trying to call a webservice from web application in Ms. Visual Studio 2010 and when I tried to create an instance of the class usernametoken I found out that the library Miscrosoft.web.services3 doesn't exist so I tried to add it from the "Add library package Reference" under tools menu but I've got this error.

The element 'metadata' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd' has invalid child element 'releaseNotes' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd'. List of possible elements expected: 'iconUrl, dependencies, frameworkAssemblies, licenseUrl, language, tags' in namespace 'http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd'.


Please note that my Nuget library is updated.

Please advise!

Regards,
Avatar of IanTh
IanTh
Flag of United Kingdom of Great Britain and Northern Ireland image

according to this

http://stackoverflow.com/questions/5847755/nuget-framework-assemblies-not-working

it says nuget library isn't updated thats the fix
Avatar of AAWICT
AAWICT

ASKER

Thanks for the answer. I could solve this issue by downloading WSE and importing the .dll file into my library.
Now, I am trying to test the vb.net code below and I am still getting the error message "Can not connect to remote server". I am getting this underlined as well       abm.RequestSoapContext.Security.Tokens.Add(ut)

VB.NET Code used:
 Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load


        Dim username As String = "jde"
        Dim password As String = "jde"
        Dim ut As New UsernameToken(username, password, PasswordOption.SendPlainText)

        Dim abm As New RI_AddressBookManager()
        Dim myCred As New NetworkCredential(username, password)

        abm.RequestSoapContext.Security.Tokens.Add(ut)

        Dim a As New RI_GetAddressBook() ';//Selection Parameters

        a.EntityTypeCode = "E"
        Dim S As RI_ShowAddressBook = abm.getAddressBook(a)
        If (S.ToString <> "") Then

            Dim ab As RI_AddressBook
            '   While (ab = S.AddressBook)

            MsgBox(ab.EntityName)

            '     End While
        End If

    End Sub

Your advice is highly appreciated!
Avatar of AAWICT

ASKER

I did but I am still getting the same issue!
Any other suggestion!
all I found by google was pointing to the same url the one I used was the only one that was different
ASKER CERTIFIED SOLUTION
Avatar of AAWICT
AAWICT

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AAWICT

ASKER

I didn't get any sufficient one