This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
VS 2010 Web Service project template missing?
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 Service Application project template is not available for .Net framework 4.0, however, available for .Net Framework 3.5.
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.
If you still want to use ASMX, choose ASP.NET Empty Web application and then you can add ASMX files to the project.
To create a ASP.NET Web Service Application in Visual Studio 2010 using the .NET Framework 4.0, first create a new project targeting the .NET Framework 3.5 (as the ASP.NET Web Service Application template is available for this version). Then right-click the project and re-target it to use the .NET Framework 4.0. Build, debug, done!
I too had the same problem when publishing web services from Navision. For that I created the project based on the .Net framework 3.5 (as the ASP.NET Web Service Application template is available for this version) in Visual Studio 2010 and it works fine for me.
I hit the same problem. It looks like .svc files are no longer necessary as of WCF 4.0, as Configuration-Based Activation will take care of this for you.
Related
I have Visual Studio Community 2017 Edition; And i am using .Net Framework 4.6.1
Under Visual C# , I am able to see following Project Options.
Crystal Report, I installed separately.
However, i am not able to see ASP.Net MVC Project Option.
Project Template is not showing ?
ASP.Net Empty Web Site
ASP.Net Web Forms Site
ASP.NET Web Site (Razor v3)
ASP.NET Dynamic Data Entities Web Site
WCF Service
ASP.Net Crystal Reports Web Site
I have installed all the necessary components. How do i fix this ?
If you select e.g. ASP.NET Web Application and click OK then you will be presented with various options. The MVC option is listed there.
I installed the latest 2.6.210 SDK / 5.6.210 Runtime for Service Fabric on my development PC using Visual Studio 2017 and now when I choose to create a new Cloud solution the "Stateless Web API" template is gone. I've also noticed that the "Stateless ASP.NET Core" template is no longer marked as "Pending".
I believe I can manually create the boilerplate to host a Web API service using Owin and .NET Framework using the "Stateless Service" template but why did they remove the much simpler "Stateless Web API" template that did all that for you?
I can't find any documentation from Microsoft explaining why this template would be missing.
Is Microsoft trying to get people to avoid using the .NET Framework in Service Fabric for Web API services because .NET Core ASP is no longer in preview?
Is it just a bug and if so how do I get that template back?
Thanks in advance for any assistance you can give me.
The OWIN based template was only available self-hosted web framework for .NET until ASP.NET Core and .NET Core tooling in Visual Studio 2017 was release in General Availability.
Since Service Fabric cannot use IIS for hosting web services, we recommend using ASP.NET Core and provide templates in Visual Studio which integrates Service Fabric Reliable Services and ASP.NET Core Templates for MVC and Web API.
Remember you can still build your ASP.NET Core services with .NET Framework as the target and use all of .NET Framework from an ASP.NET Core Service.
Visual Studio tooling still supports the OWIN based services, and they can still run in Service Fabric.
See also here: Using WebListener or OWIN as API Gateway for azure service fabric and here for info for ASP.NET support in Service Fabric https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-communication-aspnetcore
How can I use web api 2 in Visual Studio 2010.
Is there any way I can use web api 2 in VS 2010?
Can somebody please help or guide?
If you want to include Framework version 4, you can follow these steps. In Visual Studio 2010 to add a project of type ASP.NET MVC Web API we can:
1 - Have .NET Framework 4 & ASP.NET MVC 4 installed.
2 - Add a new project and select MVC 4
( on this screen there is no Web API template which is where many users may expect to see it )
3 - Select the Web API Template
You can see the answer here
But in your case, you need to install framework version 4.5. Each version of Visual Studio prior to Visual Studio 2010 is tied to a specific .NET framework. Visual Studio 2010 and beyond allow for targeting of prior framework versions but cannot be used for future releases. You must use Visual Studio 2012 in order to utilize .NET 4.5.
But one user has found a scenario where we can use framework version 4.5 in VS 2010, please see the answer of David Woodward here. If you can install VS 2012, it will be much easier since you don't need to download and install anything else.
I recently downloaded Visual Studio 2015. When I wanted to create new project I chose file---new---project and I need to select asp.net mvc4 web application, but I couldn't find it I have only asp.net empty web application
and when I select it i have this error
Try to install Microsoft Web Developer Tools.
here: https://visualstudiogallery.msdn.microsoft.com/c94a02e9-f2e9-4bad-a952-a63a967e3935
It will enable MVC templates (and others web tools) for VS.
(maybe also the error goes away)
Send results. Att,
I'm getting a build server up and running (Windows Server 2008 R2).
The app will be MVC 4.
Do I need to install MVC3 and MVC4 onto the box? Or just MVC4?
I don't want to install a whole bunch of Visual Studio kerfuffle on the build server though. Which the web platform installers seem to be all wrapt up in.
Cheers for any MVC 4 wisdom!
If your application is going to use MVC 4 then all you need to install is ASP.NET MVC 4. You don't need to install Visual Studio. The MVC installer checks if VS is installed and if it is it adds the project templates to VS 2010. Otherwise it deploys only the runtime assemblies into the GAC.