Thursday, July 28, 2016

Renew Existing Certificate

https://robindotnet.wordpress.com/2010/01/26/how-to-extend-an-existing-certificate-even-if-it-has-expired/


Tuesday, July 26, 2016

Error trying to publish a web site from VS 2015 to Azure

If you try to publish your web site to Azure using VS 2015, you may face following error.
Can't find existing loaded project:http://localhost:6002

        ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
        ========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

To overcome that error, 
Open VS, go to View --> Other Windows --> Web Publish Activity
Click on Publish icon in there and it should do it. 

Tuesday, July 12, 2016

Wednesday, July 6, 2016

How to efficiently deal with Nuget packages version conflict in large solution.



  • Maintain a common Folder will be used as the package source and all projects should use that common source as nuget package source.

  • On the build server or developer machine the only source for the nuget packages will be this package source. We'll disable the other nuget sources on the server.
  • So if by mistake anyone add the nuget package from nuget.org, it will be caught during build as build server won't find that version package on the build server.

  • You can also manage the package at solution level. This will give you option to view the nuget version for the each of the project in the solution and then you can update them all at once to the latest version.


  • You can set local repository from the nuget package window in visual studio.



View Currently executing Requests in IIS

Go to InetMgr, go to the worker processes, double click the one you want to monitor.

or you can run following command to have more control

%windir%\system32\inetsrv\appcmd list requests /elapsed:10000
This will show all request which are execugint for more than 10 seconds. 
If you see the new requests are queuing and existing request keep taking more time then you are having a hang. Better to take the dump of the worker process using Debug Diag in such case and then analyze it for the root cause of the hang.

View Currently executing Requests in IIS

Go to InetMgr, go to the worker processes, double click the one you want to monitor.

or you can run following command to have more control

%windir%\system32\inetsrv\appcmd list requests /elapsed:10000
This will show all request which are execugint for more than 10 seconds. 
If you see the new requests are queuing and existing request keep taking more time then you are having a hang. Better to take the dump of the worker process using Debug Diag in such case and then analyze it for the root cause of the hang.