I need to run a simple aspx page on a SQL server to run an SSIS package so that users could kick off the process without having access to the SQL admin tools.
The following C# class in an asp.net page runs brilliantly on the SQL 2008 server
static void CallSSIS()
{
string pkgLocation = @"E:\VS Projects\\Sandbox.dtsx";
Application ssisApp = new Application();
Package ssisPackage = ssisApp.LoadPackage(pkgLocation, null);
DTSExecResult ssisPackageResults = ssisPackage.Execute();
}
The only major problem I had was publishing the web to a virgin Windows 2008 with IIS7 machine. When I browsed to the page it gave the following error "This configuration section cannot be used at this path".
After hours of head scratching and missleading web articles, it turned out that the ASP.NET is not installed as a ROLE in by default.
Server Manager -> Roles -> (scroll to Web Server (IIS)) -> Add Role Services -> ASP.NET
Volia!
Tech. reference and notes discovered whilst thrashing Microsoft SharePoint, SQL, BI, KM, Security and Windows Servers
Wednesday, October 14, 2009
Monday, October 12, 2009
Symantec System Center - Cant unlock server group
I was asked to look at unlocking a Windows 2003 Server Symantec System centre whos documented name and password didnt work.
If you a) update the "user-admin-p" registry entry -
HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion\Accounts (more details here)
and then b) run the iforgot.exe program in the Program Files\Symantec\Symantec System Center\Tools folder
then you can reset the user account's password.
If you a) update the "user-admin-p" registry entry -
HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion\Accounts (more details here)
and then b) run the iforgot.exe program in the Program Files\Symantec\Symantec System Center\Tools folder
then you can reset the user account's password.
Subscribe to:
Posts (Atom)