文章分类 | 推荐文章 | 最新文章 | 热点文章 | 最新软件 | 精品软件 | 下载排行 | 推荐下载 | 免费看大片 | WPS | 杀毒软件
清风网络
首 页 软件下载 网络学院 数码学院
QQ 电脑入门 游戏 操作系统 图形处理 办公软件 媒体动画 精文荟萃 工具软件 网络编程 程序开发 网络技术 认证考试 网站建设 文章专栏
当前位置:清风网络学院专栏微软WCF Samples 运行出错的解决办法
精品推荐
特别推荐
·教你如何找回丢失的MSN密码
·Windows Live Messenger的修复及删除方法
·MSN Messenger无法登录的最权威解决方法
·研究解决MSN的CPU高用率的问题
·Live Messenger引起CPU占用率100%解决
·旧版MSN Messenger强制升级的应对方法
·为什么MSN没输入密码和邮件自动登陆?
·轻松解决不能登陆MSN故障问题
·不能登陆MSN故障问题的24步解决方法
·MSN也玩群聊 MSN群全攻略
热点TOP10
·MSN Messenger无法登录的最权威解决方法
·教你如何找回丢失的MSN密码
·MSN好友IP地址随便查
·MSN无法登录提示的错误代码含义及问题解决
·微软杀软删除200万台PC上密码盗取软件
·微软展示虚拟太空望远镜软件
·微软Live地图搜索正式推出 走平台化发展之路
·微软Live Search地图服务中文版上线
·微软推中文版地图Live Search服务
·微软Windows Live Suite简单试用

WCF Samples 运行出错的解决办法

日期:2007年12月17日 作者: 查看:[大字体 中字体 小字体]


最近刚开始学习WCF,从ms网站下了WCF Samples研究...
安装完了开始运行第一个demo,TechnologySamples\Basic\GettingStarted\CS\GettingStarted.sln,Sample由于是2005的,升级solution到2008,没问题,rebuild了一下OK,后来发现client和service项目的Target Framework都是2.0,奇怪怎么还能编译通过?困惑中...
先不管了,先跑起来看看吧,一运行client就报异常,OMG...
The requested service, 'http://localhost/servicemodelsamples/service.svc' could not be activated. See the server's diagnostic trace logs for more information. Rebuild的时候已经发现service被部署到C:\Inetpub\wwwroot\servicemodelsamples下面了,单独访问了一下'http://localhost/servicemodelsamples/service.svc'就报了黄页晕,
Stack Trace:
[InvalidOperationException: The type 'Microsoft.ServiceModel.Samples.CalculatorService', provided as the Service attribute value
in the ServiceHost directive could not be found.]
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +4189701
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +516
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +31
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +498
[ServiceActivationException: The service '/servicemodelsamples/service.svc' cannot be activated due to an exception during compilation.
The exception message is: The type 'Microsoft.ServiceModel.Samples.CalculatorService', provided as the Service attribute value
in the ServiceHost directive could not be found..]
System.ServiceModel.AsyncResult.End(IAsyncResult result) +4413209
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +183
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +205
System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +322
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

搞不懂ms给的sample都跑不了,于是只能求助google,在msdn forums上找到了答案
Running: ...\TechnologySamples\Setup\CS\cleanupvroot.bat and then:...\TechnologySamples\Setup\CS\setupvroot.bat
一切OK,ms真会跟我们开玩笑呵呵...

(出处:清风网络学院






上一篇:缩短响应时间 让Windows Vista跑得更快

下一篇:sqlldr加载数据到不同表的问题

相关文章:
·解决与HTTP 500 – 内部服务器错误错误信息有关的问题
·不用重装XP系统就可以解决全部故障
·笔记本电脑无线上网解决方案大比拼
·XP系统运行慢?小编自用7招解决
·提高运行速度 教你一步一步优化XP系统
·Firefox 使用常见问题和解决方法
·添加或删除启动时自动运行的程序
·0X000000该内存不能为read的解决方法
·IE运行很慢,CPU占100%的原因
·MSN Messenger无法登录的最权威解决方法
相关软件:
·MFC运行库V4.2
·《爷爷一定有办法》
·在光盘上运行的 win98
·GMAT 解决问题汇编
·一些不错的摇滚MTV,也许有你听过的。喜欢吗,我说你呢
·史上最强全功能Win98精简版 39MB 能够在U盘运行的win98
·注册安全工程师注册管理办法
·虚拟专网:技术与解决方案
·教你如何画卡通 RAR 一部很不错的卡通初级教程
·解决杀毒软件并存后产生的错误

特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
[打印本页] [关闭窗口] 转载请注明来源:http://www.viphot.com
| 帮助(?) | 版权声明 | 友情连接 | 关于我们 | 信息发布
Copyright 2007 www.viphot.com All Rights Reserved. 鄂ICP备05000083号Powered by:viphot