How do I deploy NServicebus Hosts from Visual Studio to my Server? - nservicebus

I'm running Visual Studio 2012 and my Server is Windows Server 2012 Essentials. I've installed MSMQ and then ran the NServicebus4 installer (the release notes says to install MSMQ first).
Everything works fine on my workstation, and I want to deploy to a server. My assumption is that all I need to do is copy everything from bin to my server, and install the host.exe as a service. That seems clunky.
Surely there is an established recommended procedure for deployement, and that someone will tell me to RTFM, except I'm not sure where the manual is. I saw that for version 3 there was an interface I could implement, but is deprecated for version 4, and version 4 has powershell commandlets, but that seems to be for preparing a server for first run. I need to install actual host services now.

See the Installation heading in The NServiceBus Host in the documentation. It's a ways down the page. TL;DR: You run the same command line host with the /install parameter. There are additional options to customize. Is that what you're referring to as clunky because it's pretty straightforward as far as installing services goes.
As far as RTFM, there is a book on the subject now. (Disclaimer: I wrote it.)

Related

Run SSIS programmatically, remotely, and without a Windows or Web Service... maybe with Powershell

I'm working on a project where the client Company has one Enterprise SQL Server license and its box is highly exclusive. I need the Enterprise version because the package uses fuzzy lookups.
So I want to trigger the launch of the package remotely from some VB.Net code. I can't use the DTS Runtime library because they require the calling box to be running the Enterprise version too; besides Enterpise is version 2012 while everywhere else is SQL 2008 R2. I can't install either a web service or a Windows Service on the Enterprise machine to call an SSIS package because the client won't let me. I could create a job but I don't know how to trigger it on-demand.
I've read that Powershell is the answer but the script I've written generates an invoke command that runs DTExec which doesn't work as again I don't have the Enterprise version installed locally. Can anybody point me to the solution? I've looked and looked and all I find is variations on what I've already tried and know won't work.
Cheers

Trouble installing SQL Server 2012 Express with Advanced Services

Whenever I try to install SQL Server 2012 Express with Advanced Services I am getting this error:
I have tried both version (32-bit/64-bit) and re-downloaded multiple times.
How can I solve it ?
Check if you have .Net framework 4 installed at your machine. If not - download it and install it and then try again with SQL Server.
Also check this bug at Microsoft site about .Net framework 4 (there is workaround explained in the bug).
FWIW, I just downloaded and installed SQLEXPRADV_x86_ENU.exe from HERE on a vanilla Win7Pro/64 VirtualBox virtual machine and encountered no errors.
Edit
I also installed SQLEXPRADV_x64_ENU.exe from that same location on an older Vista machine. The SQL Server installer told me that it needed some new .NET components, then it proceeded to download and install them. I didn't need to manually install anything ahead of time.
Also perhaps worth noting:
Both of the machines on which my installs were successful had no anti-virus software installed. (They are development boxes behind a firewall and I don't do email or web surfing on them.)

Web Deploy Failing After Upgrade to VS 2012

I have a project, for which the publish (web deploy) to localhost was working under VS 2010. I made no changes to the project, other than opening it in VS 2012 RC.
The publish from VS 2012 RC failed when I attempted it, with message saying that the service does not exist, even though the site exists in IIS and can be posted to.
Now when I open the project in VS 2010 and attempt to publish, the publish fails with the same issue. Other projects where I have not attempted a publish in VS 2012 RC still have working publish profiles.
Has anyone else run into this issue, and if so, what have you done to correct it? I have looked into all the usual issues as to why a publish might fail, but publishes of other projects to IIS as local host on the same machine are working, so I think that rules out any failing services.
Your question is quite old. I propose installing not RC, but final VS and to the newest update - ms guys fixed a bunch of problems.

Oracle Instant Client with web application

I have a visual studio solution with an ASP.NET 3.5 web application (WCF host) and a test project. I wanted to use the Oracle Instant Client (v11, via NHibernate) to create Oracle connections without having the Oracle client tools installed on every "involved" machine (dev, CI server, test server, production server).
The weird thing is that on my development machine (x86) my tests run without problem, while my web application still gives me the following error message: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater
Things I ruled out already:
The bin folder has read & execute permissions for everyone
The DLL's are unblocked (windows 7)
Problem occurs with both Visual Studio Development Server and IIS 7
I've also tested this on a machine with Oracle client tools installed and that works
I even managed to get the tests running on our x64 CI server (more info).
Anyone has a clue on what I am missing?
I see this error almost every time I set up Oracle on a new machine.
Check that the oracle bin folder is in your path
Give read and execute permission to everyone on the client folder (on my machine C:\oracle\product\10.2.0\client_1)
Changing permissions may not take effect until you reboot your machine.
EDIT:
From your comment, steps 2 and 3 are irrelevant for Oracle Instant Client. Hoverer, I would guess that the problem is still that the system cannot find the Oracle Instant Client DLLs. It would be worth putting the location of these DLLs into your path and seeing if this resolves it.
From http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html
Installation Instructions
Installation Steps:
Download the appropriate Instant Client packages for your platform. All installations REQUIRE the Basic or Basic Lite package.
Unzip the packages into a single directory such as "instantclient".
Set the library loading path in your environment to the directory in Step 2 ("instantclient"). On many UNIX platforms, LD_LIBRARY_PATH is the appropriate environment variable. On Windows, PATH should be used.
Start your application and enjoy.

Replacing SQL Server 2005 Express Management Studio with the full version

I have been running SQL Server 2005 Express Management Studio ("SSMSE"), and I now have a need to install the full version of Management Studio ("SSMS"). This is a known hassle, but I've not found a comprehensive way to carry it out.
At first, I uninstalled SSMSE, and then ran SqlRun_Tools.msi to install the toolset. I got this error message:
A component that you have specified in the ADD_LOCAL property is already
installed. To upgrade the existing component, refer to the template.ini
and set the UPGRADE property to the name of the component.
I had no idea what template.ini was. So I looked around, and decided to uninstall the rest of the minimal installation of SQL Server 2005 Express on my computer by following Microsoft's advice in KB 909967, "How to uninstall an instance of SQL Server 2005 manually." That bit was very successful.
But when I attempted to run SqlRun_Tools.msi again, I faced this mess when the installer was "Preparing Installation Wizard":
The setup has encountered an unexpected error in datastore. The action
is SetDialogs. The error is : Source File Name:
...\datastorecachexmlschema.cpp
**** Compiler Timestamp: Fri Jul 29 01:13:50 2005
**** Function Name: DataStoreCacheXMLSchema::initScopeRecord*****Sour...
(but replace the asterisks with box chars, which were probably CR-LF's in the original message)
This is very frustrating. Does anybody have any advice for installing the full version of SSMS over top of SSMSE? Any help you can provide would be greatly appreciated!
I have also installed SQL Management Studio before just using the SqlRun_Tools.msi package without any problems but I think if you have previously had any other SQL Server 2005 components installed then you will need to install the Setup Support Files first as this is probably what sets up the component installation sequence. This can be done either by installing from the SQL Server installation media or by running the sqlsupport.msi file as described in the Microsoft KB article.
I resolve this problem
Steps
Go to Add\remove program
unstall SQL server browser
Install support files from CD
Install SQL_Tools.MSI
Well, I roughly found out what the problem was, based on a somewhat cryptic resolution mentioned across a few different forums. This solution suggested that I needed to install Setup Support Files. Maybe it was reinstall, since I removed something with the same name when uninstalling SQL2K5 Express. I'm not sure if they were the same files, between the full version and the Express Edition.
I had tried reinstalling SQLXML4, the Native Client, and MSXML6 just to see if I could get beyond the error involving datastorecachexmlschema.cpp, and each time, I got the same error again. But I tried the technique mentioned in the above link, and it worked perfectly.
Basically, you insert the CD and run just the first part of the installation process, which installs the installation tools, including Setup Support Files. Then you cancel the rest of the installation process, and run SqlRun_Tools.msi instead.
I got great results when upgrading 2008 express to 2008 developer by (running setup) first going to Maintenance->Upgrade Edition, and then (since Management Tools etc was still "express" and I mainly needed the Sql Profiler) I also did a complete "new" installation (Installation->"New installation or add features.."), selecting the existing instance and then selecting all features.
No uninstall or command line necessary.
Behaved the same afterwards, just with new features.