Solved

Adding a library to MS Visual Studio 2010

Posted on 2013-01-26
7
714 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

930 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

14 Experts available now in Live!

Get 1:1 Help Now