Cyberiafreak

"Fortunate are those who take the first steps.” ― Paulo Coelho

About Azure App Service [ Web Apps, Mobile Apps, API Apps and Logic Apps] — WAML Apps

In the recent build conference, we had few Azure announcements. Yes out of that, “Azure App Service” is something important for dev’s to learn and try out. Had a chance to go through this announcements, so thought of sharing the awesomeness in this post. Azure App service has got 4 features – Web, Mobile, Logic and API as below.

It actually enables us to to easily create Web(web sites) + Mobile + Logic + API Apps and also facilitate us to refer each of them without complex coding or integration pains.

  1. Azure Web Apps (aka Azure Websites – renamed)
  2. Azure Mobile Apps (aka Mobile Services)
  3. Azure Logic Apps (‘workflow’ style apps – get the data from one connector and pass it on to diff connectors)
  4. Azure API Apps (uses Swagger)

40   1   3    4  41   2 5

Azure Web Apps(a.k.a Azure Websites)

+ straightforward web hosting multitenant platform(PaaS), you can build and host websites using .NET, Java, Node.js, PHP, and Python. there is nothing new here, except renamed from Azure WebSites if you are familiar with.

Azure API Apps

+ new apps from MSFT, this is nothing but our HTTP based API projects. These API can be consumed by the application developed using .NET, Java, Node.js, PHP, and Python. It has got the metadata formatted by swagger (opensource frmk)

Azure Mobile Apps

+ SSO, + build engaging iOS, Android and Windows apps.
+ same like other apps – autoscale helps us to meet the sudden demand
+ you can easily integrate with facebook, Twitter, Google etc.

Azure Logic Apps.

+ again new from MSFT, it has the graphical dashboard workflow diagrams which helps us to experiment and implement easily without much of complex integration code. You could automate certain business process or workflow using designer. For out of the box, you may have to find one from market place. Key things include: Workflow, Connectors, Triggers, Actions

useful links: https://tryappservice.azure.com/   &    https://weblogs.asp.net/scottgu/announcing-the-new-azure-app-service

Videos explaining them – http://azure.microsoft.com/en-us/documentation/services/app-service/

//channel9.msdn.com/Events/Build/2015/2-628/player

Advertisements

June 8, 2015 Posted by | Azure, Azure Cloud Service, Azure websites, Biztalk Server- Begineer | , , , | 1 Comment

Certified for 70-487 !! [ recently cleared 70-532 too ]

Last week I have cleared my 70-487 Developing Microsoft Azure and Web Services certification. I have started preparing for 45+ days on and off, mostly weekend reading and able to clear through second shot offer. There are plenty of materials there to prepare, but I urge to stick with official curriculum + MVA (microsoft virtual academy videos) for this exam. I had internal employee measure up account with some sample questions, with deep understanding of all those concepts + small hands on helped me crack it. Here is what you will learn through this certification,

9780735677241f1256.70-532_3E18159EChapter 1) Accessing Data using – EF, WCF DataServices, Azure Data Storage, Transaction, Caching, XML ds (data). ..

Chapter 2) Querying and Manipulating data by using EF – LINQ to Objects, entities, ADO.NET, EF, Lazy loading,data model…

Chapter 3) Designing and implementing WCF Services – SOA concepts, WCF API obj and config, Securing, consuming, version, Azure Service bus, one way-two way, hosting..

Chapter 4) Create and consume Web API based services – Design a web api, implement, secure, host and consume web api web services

Chapter 5): Deploying web application and Services- Design, deployment strategy, Configure, manage packages using Nuget, create, configure and publish a web package, share assemblies.

Overall, we  will learn back-end programming/db programming + infra projecs like publishing, nuget, etc also helps us to uinderstand end -to end.

Study notes from Chris – http://www.bloggedbychris.com/2013/01/24/microsoft-exam-70-487-study-notes/

[Update: May first week  – I have cleared 70-532 🙂 ]

April 8, 2015 Posted by | .NET General, Certification | , , , , | Leave a comment

Debugview.exe as rescue tool

DebugView is a developer friendly tool helps you to monitor debug output messages from local or nw system – from managed/unmanaged code. Recently I was debugging managed COM dll created in C# consumed in office application. I wanted a tool to debug end to end, Let say, your Office files VBA macro calls .NET COM dll for processing some complex logic and then returns the value to your macro.

In dev environment, we usually attach VS to the application and debug them, in VBA using debug.print statements. Assume that, you don’t have VS at your production server or customer machine where you wanted to debug them badly. Here is where debugview comes for rescue.

To write, debug statements from managed code, use Diagnostic having Debug.writeline. For VBA, use OutputDebugString. For other languages – use as here.

C#:- System.Diagnostics.Debug.WriteLine("This is from .NET before word instance.");

VBA:- Private Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (ByVal lpOutputString As String)
Private Sub DebugPrint(dbgOutput As String)
OutputDebugString dbgOutput
End Sub
Sub test()
DebugPrint ("Test message for the debugger")
End Sub

Note: Make sue you run as “Admin”.

debug1

debug

March 22, 2015 Posted by | .NET General, Office | , , , | Leave a comment

Memory explained by Mark Russinovich

Pushing the Limits of Windows: Physical Memory
http://blogs.technet.com/b/markrussinovich/archive/2008/07/21/3092070.aspx

Pushing the Limits of Windows: Virtual Memory
http://blogs.technet.com/b/markrussinovich/archive/2008/11/17/3155406.aspx

Pushing the Limits of Windows: Paged and Nonpaged Pool
http://blogs.technet.com/b/markrussinovich/archive/2009/03/26/3211216.aspx

March 4, 2015 Posted by | .NET General | | Leave a comment

Languages features in C# 6 and VB 14

https://roslyn.codeplex.com/wikipage?title=Language%20feature%20status

Feature Example C# VB
Auto-property initializers public int X { get; set; } = x; Added Exists
Getter-only auto-properties public int Y { get; } = y; Added Added
Ctor assignment to getter-only autoprops Y = 15 Added Added
Parameterless struct ctors Structure S : Sub New() : End Sub : End Structure Added Added
Using static members using System.Console; … Write(4); Added Exists
Dictionary initializer new JObject { [“x”] = 3, [“y”] = 7 } Added No
Await in catch/finally try … catch { await … } finally { await … } Added No
Exception filters catch(E e) if (e.Count > 5) { … } Added Exists
Partial modules Partial Module M1 N/A Added
Partial interfaces Partial Interface I1 Exists Added
Multiline string literals “Hello<newline>World” Exists Added
Year-first date literals Dim d = #2014-04-03# N/A Added
Line continuation comments Dim addrs = From c in Customers ‘ comment N/A Added
TypeOf IsNot If TypeOf x IsNot Customer Then … N/A Added
Expression-bodied members public double Dist => Sqrt(X * X + Y * Y); Added No
Null propagation customer?.Orders?[5]?.$price Added Added
String interpolation $”{p.First} {p.Last} is {p.Age} years old.” Added* Planned
nameof operator string s = nameof(Console.Write); Added* Planned
#pragma #Disable Warning BC40008 Added Added
Smart name resolution N/A Added
ReadWrite props can implement ReadOnly Exists Added
#region inside methods Exists Added
Overloads inferred from Overrides N/A Added
CObj in attributes Exists Added
CRef and parameter name Exists Added
Extension Add in collection initializers Added Exists
Improved overload resolution Added N/A

December 13, 2014 Posted by | Uncategorized | , | Leave a comment

How to use the same keyset for strongname signing as well as for manifest and/or Authenticode signing.

Strong name signing requires KeySpec=2 (AT_SIGNATURE). Similar issue was blogged for VS2005  http://blogs.msdn.com/b/andrekl/archive/2008/01/08/strong-name-signing-in-visual-studio-2005-requires-keyspec-2-at-signature.aspx and that still holds true for VS2010. The certificate has KeySpec=1 (AT_EXCHNAGE) and worked around by modifying the certificate to have KeySpeck=1. Steps below helps you to successfully sign the project

1. Using the “Certifiates” MMC export the existing keyset (KeySpec=1) to a PFX file.

2. Delete the existing certificate from the crypto store (using the MMC).

3. Open a CMD prompt.

4. import the PFX file using this command:certutil -importPFX -user <pfxfilename> AT_SIGNATURE

5. Enter the passphrase for the pfx when prompted.

6. You now should have a keyset/Cert with KeySpec=2. If needed you can now export this into another PFX file using the MMC again.

7. Use the new .pfx in the Visual Studio to sign the executable

April 30, 2014 Posted by | Uncategorized | , , | Leave a comment

How to view assemblies in GAC as like Explorer files and folders

If you navigate to Assembly folder say C:\Windows\assembly in Explorer, you could see the assemblies without folder structure where as you will see a structured directories like GAC_32, GAC_MSIL, Nativeimages, tmp folders in Command prompt. If you want to browse the GAC like any other folder structure. you can try this simple regedit entry-
Create a DWORD value named “DisableCacheViewer” and set it to value 1 under reghives -HKLM\Software\Microsoft\Fusion
Now explore to c:\windows\assembly, you will see something like this
Image

February 28, 2014 Posted by | Uncategorized | | 1 Comment

   

%d bloggers like this: