微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

.net 4.0还支持asmx

>我在VS2010中打开了我的.net 2.0 ASMX webservice,并迁移到.net4.0.如果我只是运行我的ASMX w / o更改te代码到WCF格式,我仍然可以运行旧的asmx服务.net 4.0?这样做是否正常?
>我的web.config文件也有WSE设置会发生什么?
> WCF / net4.0不支持附件,是否需要更改我的asmx webmethod作为数据集返回到正文,这将会工作吗?
>我尝试运行我现有的asmx服务使用数据集作为附件在.net 4.0和它的工作?
>我可以看到asmx文件可以在.net 2010中添加吗?他们还是支持吗?

解决方法

是的,您也可以在.NET 4.0中使用ASMX.

引用Dave Ward从他的答复发表评论他的职位在Encosia名为ASMX and JSON – Common mistakes and misconceptions

I think WCF is great in situations
where you can take advantage of its
strengths,like when you can use the
tcpBinding mode. However,WCF’s
complexity makes it hard to serIoUsly
consider for simple AJAX callback
functionality where a better targeted,
more mature solution already exists.

ASMX is by no means deprecated or obsolete,even in .NET 4. That’s actually one of the misconceptions I’m going to cover in this series.

原文地址:https://www.jb51.cc/html/225122.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐