How to install DotNet 2.0 or 3.5 on Windows 8

Windows 8 Developer Preview includes the 2.0, 3.5 and 4.5 versions of the .NET Framework. However, only 4.5 is available for immediate use after a clean install. The versions 2.0 and 3.5 of the framework are not installed by default. If you open the Add/Remove Windows Features dialog you’ll see the “Microsoft .NET Framework 3.5.1” listed, but disabled.

image

To install DotNet 2.0 or 3.5 on Windows 8,

  1. Go to Control Panel – Programs
  2. Turn Windows features on or off
  3. Check ‘Microsoft .NET Framework 3.5.1′
  4. Click OK.

Continue reading

HTTP Error 404.13 – Not Found Error When Upload Big File using WCF

On IIS 7.5, if you upload big file thru WCF service, you might get http 404.13 error from IIS server.

HTTP Error 404.13 – Not Found
The request filtering module is configured to deny a request that exceeds the request content length.

The solution is set a higher value for maxAllowedContentLength in web.config of application

<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="300000000"/>
</requestFiltering>
</security>
</system.webServer>
</configuration>

How to open documents in Explorer View in SharePoint 2010

To open a SharePoint 2010 Document Library in Explorer view, following these steps

  1. In the Ribbon area on top of document library page, click on the Library tab of Library Tools.
  2. Click Open with Explorer, a window explorer will pop up in which you can directly manage all documents.

image

Note:

  1. If you can’t see the Open with Explorer button, try maximize the browser window.

Generate GUID in PERL

It’s very common for developer to generate a GUID in code to guarantee uniqueness. Here is the sample code to generate a GUID in Perl

my $guid = `uuidgen.exe`;
chomp $guid;

Uuuidgen.exe is a tool from DotNet Framework. You can append "-c" option to generate uppercase letters

Run uuidgen /? to see the detail usage of uuidgen.
Microsoft UUID Generator v1.01 Copyright (c) Microsoft Corporation. All rights reserved.

usage: uuidgen [-xisconvh?]
        x – Generate sequential (V1) UUIDs
        i – Output UUID in an IDL interface template
        s – Output UUID as an initialized C struct
        c – Output UUID in upper case
        o<filename> – redirect output to a file, specified immediately after o
        n<number> – Number of UUIDs to generate, specified immediately after n
        v – display version information about uuidgen
        h,? – Display command option summary

How to Open Notebooks Shared in SkyDrive on Windows Phone 7

After you save OneNote notebooks to SkyDrive, and access OneNote from windows phone, you might notice that the only notebook syncs and shows up in Windows Phone is Personal (Web). 

If you want to open/sync other notebooks other than Personal Web on windows phone, there are two options

Option 1 – Using IE on Windows Phone

    1. Open IE browser from windows phone, go to http://office.live.com.
    2. Then tap the notebook that you want to open, this will launch OneNote on windows phone and notebook will get opened and synced

Option 2 – Send notebook link via email

    1. Open notebooks you want to sync in OneNote 2010 from your desktop PC.
    2. Copy link to notebooks and send to your email account
    3. On windows phone, open the above links from your email
    4. OneNote will be launched and notebook will get opened and synced.

Note: if you go with option 1, make sure you have IE set to mobile version before go to http://office.live.com

How to Tranfer PEF Files to Windows Phone

In Zune 4.7, you can’t sync non-media files to windows phone. If you want to read pdf offline on your windows phone, you have two options

  1. Email the pdf files to youself, and open the pdf file from your windows phone. Next time when you open Adobe Reader, the pdf file will show up in the document list.
  2. Upload the pdf file to SkyDrive and then use browse to download them.

#2 applies to other file types that is supported in windows phone 7. Sync eBooks to phone for offline reading is a very common scenario for mobile users. Hope Microsoft can make this easier in Mango.

How to Reset Windows Phone 7 to factory settings

WARNING: Resetting your windows phone will erase all of your personal content, including apps that you purchased and downloaded, and restore your phone back to the condition it was when you first bought it.

You may want to reset your windows phone to factory settings if you found it not operating well, or forget your PIN. Also If you have a problem with the first Live account you used and wish to change it, you must completely reset the phone.

Reset Windows Phone to factory settings

  1. From home page on your Windows Phone, flick left to the app list page
  2. Tap Settings, then tap about
  3. Tap reset your phone which located at the bottom of about screen.
  4. When ask for reset confirmation, click yes

Reinstall APPs after phone reset

To reinstall applications that were purchased from the phone, apps must be repurchased from the Marketplace on the phone. When you select “buy”, you should see the message “You’ve already purchased this app. Would you like to install it again?” Select Install to reinstall the application. You will see a similar message when purchasing free applications.