I have a SOAP endpoint implemented in Zend Framework.
When I create a C# project with Visual Studio Professional 2008, add a web service reference and use the service, it works like a charm. I can also import the project into Visual Studion Express (C#) 2008 and Visual Studio Express Desktop 2012. Those work too.
If i create the same project in one of the express versions of Visual Studio, they will throw a SoapHeaderException. Same settings and everything.
Apparently the projects created with an Express version of VS can only use Webservices that send primitives and one-dimensional arrays.
WSDL.exe runs through without errors or warnings.
Anybody experienced these problems before?
Related
In my visual studio code project, I have generated an .exe file for the project and I'm trying create make my .exe as Windows Service.
From here and here, if I'm not mistaken, these solutions look like done by using Visual Studio instead of Visual Studio Code. Is it possible to create a Window Service through Visual Studio Code?
You cant,
Visual Studio Code is a code editor redefined and optimized for
building and debugging modern web and cloud applications. Visual
Studio Code is free and available on your favorite platform - Linux,
Mac OSX, and Windows.
It has no concept of an Windows Service
If you wish to create a Windows service you will have to use Visual Studio or something that can compile standard .net Windows application
Great comment from Ben Voigt
You're correct that Visual Studio Code doesn't have a concept of a
service, but that's because it is an editor not a compiler. The same
C# compiler installed as part of the .NET runtime, can build Windows
Services. And you can edit the windows service code in VS Code
I don't know why Visual Studio is such that there are a million different versions (Visual Studio for Desktop, Visual Studio for Web, Visual Studio Code, etc.) and each version has a different set of project templates. Anyhow, the problem I'm having is that I'm creating an ASP.NET MVC application through Visual Studio Web 2013 and I want it to be supported by a Windows Service that is started in my App_Start(). The problem of course is that when I read the instructions on https://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx there is no Windows Service template on Visual C# when I try to add a new project to my solution.
I understand your web endpoint will be dependent on a Windows Servie, and you want to author that windows service as part of your solution.
Setting aside that VS.net 2015 Community Edition rolls up all the functionality you need. You dont need the project template specifically to create a windows service. It just automatically adds some references and templates into your project. All project templates in VS .net rely on the .net framework - and that isn't any different between one installation and another of VS.net.
In practise you can code a windows service written for .net in Notepad and just call the CSC compiler manually - the version of VS.net just adds some ease-of-use.
There is a set of instructions here https://msdn.microsoft.com/en-us/library/9k985bc9(v=vs.110).aspx from Microsoft which include specific instructions on how to make a windows service without a template.
I need to use WCF in Microsoft Visual C# Express. I found the following Link which shows how to copy and use the templates:
How to add WCF templates to Visual Studio Express? . But I have only the express edition of Microsoft Visual C#; I don't have Visual Studio, so I am unable to copy the templates. I tried to install Web Developer Express, but installation fails.
Is there any other way to include the WCF in Microsoft Visual C#?
I have Visual Studio 2008 Business Intelligence version that was installed along with Reporting Services for SQL Server 2008 R2. I want to work with C#, but there are no options to create a C# project. I haven't been able to find any way to install a C# package or something.
Is there a way to add on C# functions, are they already built in but hidden, or should I just download a full version?
Thanks
UPDATE:
So I finally managed to find a download of Visual Studio 2008 Express, and installed the C# version. After installing I launched visual studio and it was the same thing, only the sql server projects came up as templates.
I found a forum that said to go into import and export settings and to reset my settings to general development settings, but I still cannot make a c# project.
UPDATE2:
I'm going to try installing VS 2012 Express to see if that works for me, since its the only download microsoft has that you can easily find now.
UPDATE3:
VS 2012 Express has been working just fine for me, and I still don't have the project templates in VS 2008 though.
You'll need to install one of the stand-alone editions of Visual Studio. Business Intelligence Studio, bundled with SQL Server, doesn't allow you to work with C# or other language projects.
SQL Server 2008 Business Intelligence Development Studio ("BIDS") is just an add-on over standard Visual Studio (VS 2008 in this case).
If you hadn't had Visual Studio installed before deploying BIDS, the most basic VS shell was installed along BIDS that does not allow you to work with projects other than the SQL Server BI family.
For you to work with .Net projects, despite being able to edit basic C# files already, you will need to reinstall any version of regular Visual Studio 2008 (e.g. licensed, express). This won't break your BIDS.
I've used the Visual Studio 2010 Express All-In-One to install Visaul C# and Visual Web Developer.
Once I opened Visual C# and tried to create a WCF Application, I couldn't find it.
After looking on internet I found a tip to do it on stackoverflow.
I have done exactly like the guy explained, and now I have WCFServiceProject.
Now everything seems to be correct, but when I try to create a WCF project I get this error
Any ideas ?
Using Visual Studio Express, you have to explicitly start Visual Web Developer Express to create a project of type WCF Service Application.
Visual C# Express even doesn't allow to add existing WCF projects to an existing solution.
If your installation doesn't offer this type of project from the (default) installed project types you should check your installation options.
I don't think you have the option to create a WCF Application in Visual Studio 2010 Express.