Search This Blog

Saturday, January 24, 2015

Windows Azure - Seminar notes

Azure training-kit  - The Azure Training Kit includes a comprehensive set of technical content designed to help you learn how to use Azure.
https://github.com/Azure-Readiness - good place for starting labs

Azure Services:

  • Web Sites - your own web site on Azure could be on IIS,Tomcat,Jetty
  • Virtual machine -  there are predefind VM you can use such as  linux , windows server , web logic, windows with VisualStudio , Oracle DB  
  • Mobile services - for mobile developers 
  • SQL databases
  • Cloud services  
  • Media services 
  • Storage 
  • Visual studio Online 
  • Traffic Manager - like load balancer 
  • Network  - managed private network  (VPN)
  • Adding Add On - such as mongodb , MS translator .. and many others add on.

  • On Azure the data replicate(saved the image) into 3 "section" , one of them into different data center - you can control this.

  • On Azure you can use any language (java, ruby ..) to develop , you can use open source .
  • In Azure - you can access to your private network - e.g. access your db in your domain.
  • Azure Web sites - are powerful feature in azure , very easy and smart  and strong.
  • you can set your datacenter - e.g for Israel user - its better to choose North Europe Data Center.
Azure Web Site
  • if your web site need to host images and video its better to use Azure storage , for storage you can have direct access to resource, you can put CDN on top storage resource.
  • in the application configuration you can configure it to support websockets , application logging (system.diagnostics.trace) , and many diagnostic feature even debug remotely.
  • there are free , shared , and dedicated server (basic / standard).
  •  there are power shell command to connect to azure from command line - its a multi platform env , you can run commands from MAC for example.
  • for each web site you can access via ftp via user/password.
  • you can deploy your site via ftp, you can deploy from source control -  (continues integration), even directly from VisualStudio.
  • you can edit your web site files via VS online.
Azure Cloud Service 
  • its a container of related Web role and Worker role
C++ on the cloud - The C++ REST SDK (codename "Casablanca") is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. 


check responsive web site

http://responsivetest.net/

Sunday, November 9, 2014

Adding log4net for asp.net app

add reference to the newest log4net dll

add the configSections right after the configuration section in the web.config

add into the  end of the file AssemblyInfo.cs
[assembly: log4net.Config.XmlConfigurator(Watch = true)]

in the code:
private static readonly ILog log = LogManager.GetLogger(typeof(Myclass));

sources:
http://logging.apache.org/log4net/release/manual/configuration.html


option two:
is too have the config file not in the web.config via
add into the  end of the file AssemblyInfo.cs

[assembly: log4net.Config.XmlConfigurator(ConfigFile="log4net.config",Watch = true)]