Solved

Adding a library to MS Visual Studio 2010

Posted on 2013-01-26
7
718 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
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.

 

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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to open outlook macro editor w/o running Outlook ? 1 37
String manipulation in Visual Basic 7 62
Question to Pivot table 1 51
iPhone excel activation issues 11 88
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Viewers will learn the different options available in the Backstage view in Excel 2013.
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 …

813 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