Solved

Adding a library to MS Visual Studio 2010

Posted on 2013-01-26
7
712 Views
Last Modified: 2013-02-11
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,
0
Comment
Question by:AAWICT
  • 4
  • 3
7 Comments
 
LVL 30

Expert Comment

by:IanTh
ID: 38823687
according to this

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

it says nuget library isn't updated thats the fix
0
 

Author Comment

by:AAWICT
ID: 38823724
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!
0
 
LVL 30

Expert Comment

by:IanTh
ID: 38823734
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:AAWICT
ID: 38824004
I did but I am still getting the same issue!
Any other suggestion!
0
 
LVL 30

Expert Comment

by:IanTh
ID: 38824013
all I found by google was pointing to the same url the one I used was the only one that was different
0
 

Accepted Solution

by:
AAWICT earned 0 total points
ID: 38824026
The main issue is that my app is not hitting the DB!
0
 

Author Closing Comment

by:AAWICT
ID: 38875224
I didn't get any sufficient one
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Viewers will learn the different options available in the Backstage view in Excel 2013.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now