How can I create a .NET 4.0 web service project in Visual Studio 2010 Pro? - web-services

The Web Services template isn't in the .NET 4.0 projects list--only .NET 3.5, but my service needs to depend on a .NET 4.0 assembly with my model/database functions. That assembly depends on 4.0, because of the data provider required (dotConnect for MySQL)
The web service will need a reference to this business logic assembly so it can pass its arguments to said assembly and blindly return. But, can I run the web services project in a .NET 4.0 application pool without any problems with the data provider?
I have Visual Studio 2010 Professional, not Ultimate (which I've read has the template)--is there any way around this?

In 4.0 you have the WCF framework. Try this one.

See this related article: Asp.Net Web Service Application missing in Visual Studio 2010

Related

Add Service Reference in Visual Studio 2019

I am working on a C++ tool in Visual Studio 2019. Now I want to use a function from a WebService to get a value.
I have two URLs: one related to the WebService and an other one for WSDL.
How can I call my WL function? I have no option in Visual Studio 2019 to set "Add Service Reference" for my C++ Code.
What do I wrong?
You should use The WCF Web Service Reference Provider Tool
Release notes from GitHub WCF Web Service Reference Provider - Release Notes

Missing web template under visual C# in newly installed Visual Studio 2017

I'm specifically looking for asp.net MVC 4/5 template under Visual C#. Already installed .NET framework component but still not seeing the web template as I see before in my VS 2013. Please help.
In Visual Studio Installer - Workloads tab, under Web & Cloud, select ASP.NET and web development. You can now add the usual ASP.NET Web Application (.NET Framework).
image

Azure function, .Net core 2.0, Visual Studio 2017

How can I use Azure functions with target framework .net Core, I am able to use framework 4.6.x but not .net core.
I tried to change net461 to .net core but does not work.
I could not find anything on Microsoft site.
Any leads please.
You need to create new project: File -> New Project -> Visual C# -> Cloud -> Azure Functions and then you get a window in which you can choose target framework, as shown in the photo below:
For that to work you nned to have Azure Functions and Web Jobs Tools - you can install it through Tools -> Extensions and Updates.

Testing ASP.NET Core app using Protractor in Visual Studio 2017

I've got a asp.net core application which uses angular4 as client frontend and asp.net core for the service api. I've had end-to-end unit-testing up and running while using Visual Studio 2015.
Since I switched to Visual Studio 2017 I can't get the tests to use protractor anymore.
First problem: For protractor I need the full .net framework, for hosting my app I want to use .NetCoreApp 1.1. And Visual Studio 2017 does only support using one Framework. There are tricks by editing the proj-file, but even then I could not even compile my test project to use protractor.
So: Has anyone been able to run unit Tests using protractor in Visual Studio 2017? Any pointers about it, maybe you can point me to a website containing a sample?

ASMX + external dll

I am working on Silverlight client to Microsoft Team Foundation Server. I am using an ASMX web service to make the actual calls using the TFS api.
Everything works fine when I run it with the visual studio development server, but I cannot figure out how to deploy the app to IIS.
I can get the ASMX web service to work unless it is a call that uses the TFS api. I have tried putting all of the TFS api DLLs in like every directory that I can think of, and even installing the visual studio sdk. Nothing works!
UPDATE 11/15/09 7:50PM EST:
Turns out that the TFS api was trying to create a cache at c:\Documents and Settings\Default User\Local Settings\Application Data\Microsoft\Team Foundation\2.0\Cache\, and the IIS_WPG user didn't have access to do so. Easy fix.
The only supported way of installing the TFS API is to install Team Explorer. You could try to GAC just the assemblies you need, but you're on your own [and technically violating the EULA]...
Other things to check:
IIS is running in 32 bit mode
Impersonation is working correctly
Proxy settings
What error do you get? Have you tried attaching a debugger to IIS?