Tuesday, August 23, 2016

How to use the CloudConfigurationManager to automatically switch app settings

Thursday, June 30, 2016

How to ignore certificate errors while debugging...


While debugging we use to come across certificate errors when talking to other sites. One of the solution to ignore these certificate errors while debugging is to add the below code as first statement in Program.cs  

 

ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;



 


Tuesday, January 12, 2016

The timestamp syntax is deprecated, use rowversion instead

The timestamp syntax is deprecated. This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.


Have a look here https://msdn.microsoft.com/en-us/library/ms182776.aspx

Sunday, December 6, 2015

How to set default page in umbraco?


Setting default page is a tricky process, as umbraco always defaults to the first page in document structure. Sometimes, the first page in your document structure may not be the default document you. In such case you can use the below approach.

 

In the template of the first document (or create new document type for tis and use this for creating a root document), add java script redirection as below .In my case it will redirect to index.html.

 

Tuesday, December 1, 2015

How to pre compile a website using aspnet_compiler?

Just use the below command to precompile your website

 

aspnet_compiler -p physicalOrRelativePath -v / targetPath

 

More information regarding the same can be found here


How to Delete/Rebuild Umbraco cache?





How to Delete/Rebuild Umbraco cache?
 


Umbraco maintains the content in two places. One in database and the other in file system as cache in xml. The file system (cache version) can be cleared by hitting at the below link.

Delete/Rebuild umbraco based website cache from direct url:
http://&ltYoursitename>/Umbraco/dialogs/republish.aspx?xml=true

 
If you need further information, the same can be found here