Author: BuggyBrain

System.IO.Packaging Namespace not found

While moving a part of code from a console application to a SSIS package we started getting compile time error System.IO.Packaging namespace not found.

This seemed like a very basic thing as System.IO namespace is found in System.dll but having System.dll as a part of solution increased the confusion.

A quick Bing returned that its a part of WindowsBase.dll, referring WindowsBase.dll solved the issue.

This a a good example of “Out of Sight, Out of Mind” as not requiring to refer WindowsBase.dll frequently made me forget that it even exists.

Files for Windows Phone 8.1

Microsoft has finally launched the app many Windows Phone 8.1 users were waiting for “Files” File Manager. This is one of the most basic thing that you want to see in an OS and it gives you a sense of control over the data you have with you.

Its a great app and does all basic file manager functions like moving your stuff around, sharing your files with Bluetooth(turn it on before hitting share), One drive etc…

wp_ss_20140601_0002         wp_ss_20140601_0003

What we get is not always sufficient and we always get greedy. So Microsoft it will be great if you can add:

1. File Properties and details.

2. Integration with Microsoft One Drive.

3. Better 3rd party app integration so that user can select which app to use with which file.

If you are on Windows Phone 8.1 Download Files from Microsoft Store by following: http://www.windowsphone.com/en-us/store/app/files/762e837f-461d-4847-8399-3526f54fc25e

End Of Bad Looking Posts with “Windows Live Writer”

It’s been a while since I have been writing blogs and messing around with blogspot, wordpress, moving to a personal hosting and then switching the host as well as the domain name to a new one. I am no hardcore blogger and I post only when I am getting bored and I have got nothing else to do with life. But while going through posts on one such Day I realized that the blogs I have written look really bad (I know they are bad to read as well but the look and feel just kill the motivation to read).

 

Realization: Blogs look Bad so readers don’t read hence less torture for readers.

 

Reason: Atleast Make it look a bit better and Writing blog with Word doesn’t help you do proper formatting.

 

Solution: Use Windows Live Writer as it tells you how your blog will look like with real formatting and also helps you manage blog properly.

 

Problem: Couldn’t install Windows Live Writer. “Please try installing Windows Live programs again.”

 

Reason: Who Cares?

Workaround: Download “Windows Live Essentials” and install from there.

http://windows.microsoft.com/en-us/windows-live/essentials

 

** This might be the last bad looking Post. From now on you will have to read the posts I’ll be writing.

Editing Quick Create Ribbon

You cannot edit quick create ribbon in CRM 2013 like you can do with form, home and sub-grid ribbon. You can neither disable it in supported manner nor can you remove Activities from it. You can not even add OOB entities which don’t support Refresh UI.

 

 

You can remove other entities from it like case, competitor etc…

To remove entities open the solution, Navigate to entity and deselect “Allow Quick Create”

Likewise you can add custom entities or refresh ui supporting entiries to quick create.

Error while Integrating CRM 2013 – SharePoint Online

While trying to integrate CRM 2013 Onpremise and Sharepoint Online we were getting following error.

 

“Validation could not succeed because the List component could not be detected.

Check that the URL is valid and try again. Click the following URL to verify:”

While we had done everything right and as suggested on MSDN but getting the error was frustrating.

To resolve the error we tried to set the “Display Mixed content” in IE Security settings to “Prompt” (as suggested in one of the blogs)

Also we added https://*.sharepoint.com to trusted site.

When nothing worked we tried going to fiddler on client to see if any request was being sent to SharePoint server from client side and noticed that the request which went was proceeded with a federated login request. Taking the hint from there we logged in to SharePoint from IE (in another tab so that there is an active session) and tried again. It Worked J.

Windows Phone Emulator Crashing

While trying to run a Windows Phone 8 App on Windows 8.1, Visual Studio 2012 I was getting compatibility Error.

Resolution:

In order to resolve this issue, you will need to install the Microsoft Visual Studio 2012 Update 3 on your system. This will fix the issue.

You can download the Microsoft Visual Studio 2012 latest Update from Microsoft Download Center

 

More Error Details:

“This program has compatibility issues”

On clicking Run the program without getting help it gave error regarding Xde.exe

Xde.exe has stopped working.

 

Problem signature:

Problem Event Name:    CLR20r3

Problem Signature 01:    XDE.exe

Problem Signature 02:    8.0.9900.0

Problem Signature 03:    50627a5e

Problem Signature 04:    System.Management

Problem Signature 05:    4.0.30319.33440

Problem Signature 06:    520042ce

Problem Signature 07:    da

Problem Signature 08:    3f

Problem Signature 09:    System.Management.Management

OS Version:    6.3.9600.2.0.0.256.4

Locale ID:    16393   

Additional Information 1:    5861

Additional Information 2:    5861822e1919d7c014bbb064c64908b2

Additional Information 3:    01d7

Additional Information 4:    01d7340064827245f2249cd1f1a7c264

 

Read our privacy statement online:


http://go.microsoft.com/fwlink/?linkid=280262

 

If the online privacy statement is not available, please read our privacy statement offline:


C:WINDOWSsystem32en-USerofflps.txt

 

On looking at event viewer it showed error:

The application (Microsoft Windows Phone Emulator, from vendor Microsoft) has the following problem: Microsoft Windows Phone Emulator is incompatible with this version of Windows. For more information, contact Microsoft.

Error While Refreshing CRM 2011 Main Page Grid – UR 12

In our CRM 2011 ribbon we had written code to Refresh the Grid after click of a ribbon button.

It was like

crmGrid.Refresh(); or you might have implemented it like document.getElementById(“crmGrid”).Refresh();

After updating to UR 12 we were getting an error on crmGrid object.

“Object doesn’t support property or method ‘Refresh'”

After looking into DOM (for long-long time) we found that the Refresh method has been moved inside control class, so it can Now be implemented as

crmGrid.control.Refresh();

Android and iOS Development using C# : Xamarin

Long back when Android was in its initial stages. Android 1.6 sdk was out there and Google trying hard to push developers to develop for it using various competitions I downloaded Donut SDK and IDE.

Those were initial days of my career and I had been using Visual Studio as IDE and Eclipse felt like a Haunted Village when compared to Visual Studio which was like a Metropolitan city.

After that experience Developing for Android went out of Window and I missed the train of New and Rising OS.

 

But it’s never too late to start developing and if you are like me and have phobia to develop in Eclipse and Java there is good news for you. Download Xamarin and start developing for Android and iOS.

You’ll definitely love the experience and the comfort of good ol C#.

http://xamarin.com/

Unable to install Silverlight: Windows 8/Windows 8.1

While trying to install Silverlight on Windows 8.1 I got installation error saying that “The same version of Silverlight is already installed”

Silverlight Error Message
Silverlight Error Message

To fix the issue I followed given steps.

This helped solving the issue and reinstalling Silverlight.

Windows Phone Emulator Error

While trying to run Windows Phone emulator I was facing given error.

The Windows Phone Emulator wasn’t able to create the virtual machine: Something happened while creating a switch: Xde couldn’t find an IPv4 address for the host machine.

 

Simple Resolution to this problem is:

  • Run Hyper-V Manager as Admin



     

  • Go to Action > Virtual Switch Manager.


 

  • Click on “New Network Switch’


     

  • Select Internal and Create Virtual Switch


     

  • Give Name of Virtual Switch as “Windows Phone Emulator Internal Switch”


     

  • Click “OK” and restart your machine.

     

     

    After following these steps you should be able to run Windows Phone 8 Emulator without any issue.

    In case it solves/ doesn’t solve your problem mention that in comments.