Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET WebService
hi all
i have asp .net web service which i am adding as a web reference in console application.
i have added one class file in my web service, publish web service and added into the console and tried to access that class, it was working.
then i add another class file and publish web service and updated it in console and tried to access it. it is not visible..
 
my first class file:
Enroll.cs
 
public class EnrollUser
{
    public string UserId { get; set; }
    public string Depatment { get; set; }
    public string Role { get; set; }
    public string AppUserId { get; set; }
    public string AppName { get; set; }
    public string AppPassword { get; set; }
 
}
 
and my second class file
Verify.cs
public class VerifyUser
{
    public string UserId { get; set; }
    public string Role { get; set; }
    public string AppUserId { get; set; }
    public string AppName { get; set; }
 
}
 
both classes are public i am accessing them from web services but second one is not visible in console application..
 
please help..
Thanx and reply.
God bless u all..Smile | :) Smile | :)
Posted 5-Oct-12 2:00am
MAU7871.5K
Edited 5-Oct-12 2:11am
v2
Comments
   
why are you using same class name 'EnrollUser' for two classes ? Are they in seperate namespaces ?
MAU787 at 5-Oct-12 8:11am
   
sry i updated the question..:)

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You need to 'Update References' for the webservice in the Visual Studio by right clicking the 'Service References' > 'Update'
  Permalink  
Comments
MAU787 at 5-Oct-12 8:43am
   
i have already updated the reference but it is still not showing
   
Okay.. Tell us what else you have tried so that we can suggest a solution which you have not tried....
MAU787 at 9-Oct-12 2:05am
   
hi i have added both the classes in same class file and tried to use them but the class which is written first is only visible then i tried by adding the class in my code file only but still it is not visible

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid