How can I deploy new version of Blazor Server app without interrupting existing user sessions? - deployment

I have a Blazor (server hosting model) app written in .NET 6 hosted on an on-premise VM Windows Server VM with IIS.
I already have 3 stages (test, staging, production), each as IIS WebSite with it's own application pool.
How can I deploy new version of my app without loosing in-memory state in existing blazor sessions (not HTTP Session).

Related

TFS-2017 web interface issues

I have created a release pipeline in TFS web interface. Instead of default website, I have created a new website in IIS in dev server.
How to configure this website in IIS WEB APP MANAGE and IIS Web App Deploy what is the path I have to give in Virtual Application in IIS WEB APP MANAGE and IIS Web App Deploy in TFS web interface.
IIS Web App Manage:
Creating an IIS Web Site and Application Pool. Typically this is only needed the first time deploying to a target machine.
Example: To create an application Site/Application enter /Application as the Virtual path . The parent website should be already existing.
IIS Web App Deploy:
If you have created the web site/application, then you just need to deploy it directly with IIS Web App Deployment task.
You can reference this thread : https://stackoverflow.com/a/45706103/7466674

EJPPG0024I: Web application with context root /.Test is deployed in the application server but not registered with portal

I'm using Rational Application Developer v9.5.0.3 (x64) and WebSphere Portal v8.5 CF14 (running on WAS v8.5.5.12 x64). In previous versions of RAD and portal I had no problems deploying portlets.
Now when I deploy portlet using RAD (drag&drop) I get
ObjectModelRe I com.ibm.wps.services.registry.ObjectModelRegistry registerWASPortletApplication EJPPG0024I: Web application with context root /.Test is deployed in the application server but not registered with portal.
Why do I receive this message and how can I fix it?
instead of using the drag and drop, try doing run on server and selecting portal directly

How to upload pure HTML site with TFS build

Our web site solution consists of frontend folder, where pure html/css/js application resides, and an ASP.NET WebAPI backend. I am setting up a TFS build for dev and qa environment.
Currently, I have made WebAPI backend to publish automatically via WebDeploy. Html/js fronend also has a site setup on a target IIS machine where I am trying to deploy to. But WebDeploy only works with ASP.NET sites. What mechanism I could utilize to copy files of fronend to target folder on IIS machine?
This might help:
http://www.incyclesoftware.com/2014/06/deploying-uncompiled-resources-release-management/
I haven't had a chance to test it myself yet.

Understanding lightswitch deployment

I wish to deploy a lightswitch application for a small company. I want a central server hosting the database and then the silverlight client to run inside the network connecting to the server and updating the database with clients, etc.
I have made a working system using the intrinsic database in VS2013, but now I come to deploy it and am having problems, despite hours reading MSDN and following tutorials.
I create a deployment package on my development machine, which I then install on the server, but I then need to create a client only package, which points to the server? Does this mean I need to specify the central database as an external data source? Or does this switch happen automatically? Can I publish only the server, and install that on the server machine, (I have already installed the web server package) then publish a separate client package for installing the application on the clients? I need all the clients to update a single database, not all have their own local copies and local databases...
When you "create a client only package" the intrinsic database is running on the client, so nothing point to the server.
A external data source is always external regardless of the app type.
What type of a LightSwitch Application you've selected?
A 2-tier desktop application runs on an end-user Windows desktop. The
database and server components are deployed to the end-user computer.
A 3-tier desktop application runs on an end-user Windows desktop. The
database and server components are deployed to an Internet
Information Services (IIS) server or to Windows Azure.
A 3-tier Web application runs in an end-user web browser. The
database and server components are deployed to an Internet
Information Services (IIS) server or to Windows Azure.

Automate Application Installation with Powershell

I need to write a powershell script that would install my team's web application and all the web application's dependencies (ie: telerik, asp.net mvc3, third-party assemblies) with a single click of a button. Is this possible? Or does someone have to click "Next" to go through an installation wizard?
Sounds like a job for MSDeploy. This ships with PowerShell cmdlets (and a regular console executable.)
http://www.iis.net/download/webdeploy
Features
Seamless integration with IIS 7.0
Manager and Visual Studio 2010
interface for creating packages and
deploying them onto a machine, both
locally and remotely.
Seamless integration with the Web
Platform Installer to install
community web applications simply and
easily.
Web application packaging:
Ability to package a Web application
or an entire site, including the
associated databases.
Ability to package ACLs, COM, GAC and
registry settings.
Supports both live servers and zipped
packages as a source or destination.
Web application deployment:
Administrative privileges are not
required in order to deploy Web
applications.
Ability to add powerful parameters to
change text in files when they are
deployed (such as prompting to
replace a connection string when
deploying from QA to staging
environments).
Integration with the IIS 7.0 Web
Management Service (WMSVC) for remote
deployment by non-administrators.
Server administrators have granular
control over the operations that can
be performed and can delegate tasks
to non-administrators.
Web server migration and synchronization:
Ability to synchronize or migrate the
entire Web server, a Web site or
application. Synchronizes only the
data that has changed.
Ability to detect missing
dependencies during synchronization.
Automatically gathers content, IIS
configuration, SSL certificates and
ASP.NET configuration when you sync a
Web site.
In addition to the IIS Manager and Visual Studio 10, tasks can be performed using the command-line or public APIs.
-Oisn