在Silverlight应用程序中添加Web服务引用时出错 [英] Error while adding a web service reference in Silverlight application

查看:59
本文介绍了在Silverlight应用程序中添加Web服务引用时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



我尝试在我的应用程序中添加一个Web服务,应用程序基于silverlight。

哪里有网络服务和应用程序驻留在同一解决方案中。已在应用程序中添加引用的位置。当我尝试更新解决方案中的引用时,我收到以下错误。

Hi friends,

I try to add a web service in my application, application is based on silverlight.
Where the web service and the application resides in the same solution. Where the reference is already added in the application. When i try to update the reference in the solution, i get the following error.

错误:

无法解析目标框架的mscorlib' Silverlight的,版本= 4.0' 版。如果未安装目标框架或框架名称框架格式不正确,则会发生这种情况。

Could not resolve mscorlib for target framework 'Silverlight,Version=v4.0'. This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted.

当我尝试从Web项目添加或更新服务引用时,服务引用在Web项目中完美运行对于silverlight应用程序,我正面临错误。



我的silverlight版本是> 4.

看起来似乎是5。 />


我确实更改了服务文件的路径名(不应超过259个字符或某些博客中引用的内容),它对我没有任何乐趣。



所以请尽快帮助我。

提前致谢。

Service reference works perfectly in the web project, when i try to add or update the service reference from the web project to the silverlight application, am facing the error.

My silverlight version is >4.
udpated to 5 it seems.

I did change the pathname for the service file(which should not exceed some 259 characters or something referenced in some blog), it gives no joy to me.

So please help me ASAP.
Thanks in advance.

推荐答案

Crazy Visual studio ,有一段时间遭受这个错误,最后决定将我的整个解决方案转移到新的路径(f:\驱动器),



从那里我尝试建立并尝试更新服务。



我能够做到这一点。



谢谢f到目前为止帮助我的每个人。
Crazy Visual studio, was suffering with that error for a while and finally decided to move my whole solution to new path (f:\ drive),

from there I try to build and try to update the service.

Where i am able to do that.

Thanks for everyone who helped me so far.


solamente evita usar nombres tan largos y cambia la direccion del proyecto a una ruta mas corta un ejemplo pasala al C y si tu proyecto se llama parangaricutirimicuariquense_mi_proyecto cambiale el nombre a ese proyecto a uno mas cortito y vuala
solamente evita usar nombres tan largos y cambia la direccion del proyecto a una ruta mas corta un ejemplo pasala al C y si tu proyecto se llama parangaricutirimicuariquense_mi_proyecto cambiale el nombre a ese proyecto a uno mas cortito y vuala


这篇关于在Silverlight应用程序中添加Web服务引用时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆