Should I use a windows service? - windows

Hi I have a console app which I need to start up when Windows Server 2012 starts and without needing to login. I've done a bit of research and people advise a windows service is the correct approach, however the links are quite old and I wanted to confirm this is still the case, or indeed correct at all. Cheers.

Yes, Windows Service is still the most popular way to write and run servers and or a 'daemon' in Windows OS.
Depending on what your application is doing, you might have other options though, e.g. hosting an application in IIS (Microsoft's Web server application in Windows Server).
More recently, Microsoft has been working with Docker to also allow the use of containerized application deployments, which is available in new versions of Windows Server (Windows Server 2016).
Here are a few resources for more reading:
For .NET developers: Walkthrough: Creating a Windows Service Application in the Component Designer
Not just for .NET developers: Quick Start: Windows Containers on Windows Server

Related

for IIS, should i use Win7 or Server 2012r2?

Ill need to set up a test IIS.
From a rapid research, ive found that Win7 and Server 2012r2 are pretty much offering the same (for IIS purposes).
Major difference is supported RAM and parallel RDP sessions.
Rather than that, relying on the fact i need IIS, which one is the right OS ?
Many thanks !
Not really the same at all. Windows 7 uses IIS 7, whereas Windows Server 2012, uses IIS 8. Plus, Windows 7/Windows 8 are consumer class OSes. They're not intended for running things like web servers. Likewise, Windows Server 2012 is kind of inappropriate as something like a development machine.
If you're talking about "test" in the sense of QA/staging server, then you should use an actual server class version of Windows. If you're talking about a machine to do development on, then you can stick with something like Windows 7 or 8, but then, you shouldn't even be worry about IIS. You'd just have Visual Studio and run everything through IIS Express.

Is it right to host my application in windows azure?

Friends. I am new to windows azure concept. Just i want to knw whether we can host my asp.net application developed in visual studio 2010 with sql server 2008 or i need to develop my application in windows azure environment?
ii). Whether they provide both hosting and storage?
if it so what are the steps to implement it as a beginner?
Please can any one suggest a clear idea about it.
This is a pretty generic question. To get started, I strongly suggest downloading the Windows Azure Training Kit which will guide you through all the basics through advanced topics.
You can absolutely run asp.net apps and SQL Server apps in Windows Azure. You'll need to think about things like statelessness, scaling, and other things that might be different from an on-premises solution. You should see these topics discussed in the training kit.
Last week, Windows Azure Web Sites was introduced - this is an extremely simple way to deploy an asp.net site to Windows Azure.
As far as "is it right to host my application in windows Azure" - that type of question doesn't fit here, as it will simply open the floor for debate.

How to set up Windows Web Server 2008 R2 for MVC Applications

What I am looking for and seem unable to find, it's late and I'm tired, is a step by step guide on how to set up windows 2008 server to run asp.net mvc applications.
I am a web applications developer, amongst other things, and can do that bit fine. Normally I let someone else, like the hosting company, worry about the setup and just publish using 1-Click with web deploy or ftp.
However, for this projects I have a local Windows Web Server 2008 R2 installed but I don't know how to set it up to run the application. the deploy works, all the files arrive in the correct folder on the server, but can I get it to work?
No.
Hence the question.
For your information the app is built using Sharp Architecture, MVC3 and Razor and targeted at .NET 4 which is installed on both my development PC and the server.
Any suggestions?
Thanks.
Best thing would be to download Windows Web Platform installer and select the options you want, for example, .NET 4, MVC3 etc etc ...
Then, remember to enable ASP.NET in your IIS (under Roles or something...).

Can I use Windows XP for Windows Azure development

I have got the Windows Azure Platform account.
Fot he development with Windows Azure, can I use computer with Windows XP Professional.
If not what environment should i set to start working with Windows Azure, and migrating existing web projects to Windows Azure.
Regards.
Pravin.
Since azure uses Windows Server 2008 SP2/R2 as it's core OS, you will need at least Windows 7 or Windows Server 2008 to come close to mimicking the environment in Azure. If you are in a situation where you cannot upgrade your OS then you should look at utilizing a VM for development/testing purposes.
To answer your question, yes you can hack together a solution, is it pretty, no. Would I do it, no way. I also find that I like Windows 7 a lot better than XP or Vista, but I am also work for the man so I am jaded.

Debugging Developer Fabric Issues - Service Not Starting Web Components

I am trying to get the Azure SDK up and running on my dev PC and have been having some issues.
I have installed the SDK, tools for VS and am trying to run the samples. Every time I try to run the samples the Development Storage service starts and then the Developer Fabric tries to start. This is where is stops. The Developer Fabric cannot run any websites for whatever reason.
I have followed their checklist for setting up the system and there is not Event messages. I am running under Vista Home Premium with IIS 7 installed.
If you have any suggestions I would love to hear them.
It turns out my problem is a little deeper than simply Azure not working on my computer.
In order to natively debug IIS apps using windows vista (configured under the project settings) you need to have windows authentication enabled for IIS. This feature cannot be installed let alone enabled under Vista Home Premium under the guise of what home user would want such a feature.
For the average VS 2005 user this is okay there is a hotfix but for me and my fancy VS 2008 SP1 there is no solution.
After becoming supremely frustrated with this issue I posted it as the following Microsoft Connect issue.

Resources