加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

.net 4.0还支持asmx

发布时间:2020-12-14 18:49:22 所属栏目:资源 来源:网络整理
导读:我在VS2010中打开了我的.net 2.0 ASMX webservice,并迁移到.net4.0.如果我只是运行我的ASMX w / o更改te代码到WCF格式,我仍然可以运行旧的asmx服务.net 4.0?这样做是否正常? 我的web.config文件也有WSE设置会发生什么? WCF / net4.0不支持附件,是否需要更
>我在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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读