找不到作为 ServiceHost 指令中的 Service 属性值提供的类型“SomeService"

编程入门 行业动态 更新时间:2024-10-24 00:26:15
本文介绍了找不到作为 ServiceHost 指令中的 Service 属性值提供的类型“SomeService"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我的服务最近开始抛出这个错误.服务构建成功,但是浏览svc文件时弹出这个错误.

My service recently began throwing this error. The service builds successfully, but this error pops up when browsing the svc file.

该服务托管在它一直位于的同一台 IIS 服务器上.所做的唯一更改是通过 NuGet 更新引用.

The service is hosted on the same IIS server it has always been on. The only changes that have been made are updating references via NuGet.

推荐答案

事实证明,服务项目已更改为面向 .Net 4.5,而宿主项目仍面向 .Net 4.0.当我将宿主项目更改为面向 .Net 4.5 时,我得到了预期的 wsdl.

As it turns out, the service project was changed to target .Net 4.5 while the Host project, however, was still targetting .Net 4.0. When I changed the host project to target .Net 4.5, I got the expected wsdl.

这篇关于找不到作为 ServiceHost 指令中的 Service 属性值提供的类型“SomeService"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-26 19:02:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1141163.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   指令   属性   类型   ServiceHost

发布评论

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

>www.elefans.com

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