Solved

Adding a library to MS Visual Studio 2010

Posted on 2013-01-26
7
726 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
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 a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

726 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