Thursday, May 16, 2013

ASP.NET Deployment Solution - Part 3

Sometimes because of errors that may need to check the status of the currently installed feature.
Also possible when uninstall feature, there did not delete the files.

Additional write two functions can do these actions

1. Check feature status


2. Feature status


Missing - file not exists
MD5 - MD5 not match in zip and filesystem
Success - Success

3. Clear feature files


ASP.NET Deployment Solution - Part 1
ASP.NET Deployment Solution - Part 2

Thursday, May 9, 2013

ASP.NET Deployment Solution - Part 2

The first challenge is how to easily create the zip file!

The fastest way is to build direct output in Visual Studio. But how can define the contents of the zip file?

We have made ​​reference to the Visual Stuido the Project Template Package, It definde schema in xml.

1. Feature project template


2. Feature schema editor in visual studio


3. Build output


Now, we can simply generate a zip file and install it.

ASP.NET Deployment Solution - Part 1
ASP.NET Deployment Solution - Part 3

Wednesday, May 8, 2013

ASP.NET Deployment Solution - Part 1


Deployment of ASP.NET is usually Xcopy or WebDeploy, however we hope to update the feature by feature, not need to be updated every time all the files.

we use the upload zip way to achieve the purpose of updating.

1. When upload feature zip file, it will show feature basic information.


2. Feature include files, like assemblies, files, sqlscripts.






3. Then using install or uninstall to execute operation.

When execute install:
1. Copy assemblies to webapplication bin folder.
2. Copy files to webapplication mapping path.
3. Execute sqlscript(*install.sql)

When execute uninstall:
1. Remove assemblies from webapplication bin folder.
2. Remove files from webapplication mapping path.
3. Execute sqlscript(*uninstall.sql)

(The current UI design is reference from Microsoft CRM)

ASP.NET Deployment Solution - Part 2
ASP.NET Deployment Solution - Part 3