Visual Studio 2010中缺少Asp.Net Web服务应用程序 [英] Asp.Net Web Service Application missing in Visual Studio 2010

查看:312
本文介绍了Visual Studio 2010中缺少Asp.Net Web服务应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
VS 2010 Web Service项目模板丢失了吗?

Possible Duplicate:
VS 2010 Web Service project template missing?

我想知道为什么Visual Studio 2010中缺少Asp.Net Web服务应用程序.如果在Visual Studio 2010中将其更新为新功能,那是什么?如果掉线了,那我该如何完成任务呢?

I'm wondering why Asp.Net Web Service Application is missing in Visual Studio 2010. If it's updated to something new in Visual Studio 2010 what is it? If it's drop then how can I accomplish that task?

推荐答案

ASP.NET Web服务应用程序项目模板不适用于.Net Framework 4.0,但是适用于.Net Framework 3.5.

ASP.NET Web Service Application project template is not available for .Net framework 4.0, however, available for .Net Framework 3.5.

如果要在.net Framework 4.0上构建应用程序,则可以将WCF服务应用程序用作旧版的ASMX.请注意,您需要启用AspNetCompatibilityMode才能访问HttpContext对象.

If you're building your application on .net framework 4.0, You can use WCF Service Application as ASMX in legacy. Please note that you'd need to enable AspNetCompatibilityMode to access HttpContext objects.

如果仍然要使用ASMX,请选择"ASP.NET空Web应用程序",然后可以将ASMX文件添加到项目中.

If you still want to use ASMX, choose ASP.NET Empty Web application and then you can add ASMX files to the project.

这篇关于Visual Studio 2010中缺少Asp.Net Web服务应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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