无法从Web服务访问类文件

编程入门 行业动态 更新时间:2024-10-24 20:23:35
本文介绍了无法从Web服务访问类文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好 我有asp Web服务,我将其添加为控制台应用程序中的Web参考. 我在我的Web服务中添加了一个类文件,发布了Web服务,并将其添加到控制台中,并试图访问该类,它正在工作. 然后我添加另一个类文件并发布Web服务,并在控制台中对其进行更新并尝试访问它.它不可见.. 我的第一堂课文件: Enroll.cs

hi all i have asp 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; } }

还有我的第二堂课文件 Verify.cs

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; } }

这两个类都是公共的,我正在通过Web服务访问它们,但是第二个类在控制台应用程序中不可见. 请帮忙.. 多谢并回覆. 上帝保佑大家.. :):)

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..:) :)

推荐答案

您需要在Visual Studio中通过右键单击服务"来为Web服务更新引用".参考文献''> 更新" You need to ''Update References'' for the webservice in the Visual Studio by right clicking the ''Service References'' > ''Update''

更多推荐

无法从Web服务访问类文件

本文发布于:2023-11-08 14:15:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1569605.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!