Author: devonenote

  • 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 PDF 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.

  • Capture Single Monitor Screenshot on Dual Monitors

    When you hit PrintScreen key,  windows will take screenshot on the monitor and copy it to clipboard. But if you have dual monitors setup, you will find screenshot of both monitors are captured. You might wonder how to just capture the single screenshot on the monitor you are working on.

    The answer is ALT + PrintScreen. Note that it will take screenshot of the active monitor on your desktop, the one has keyboard/mouse focus.

    In addition, you can use CTRL + ALT + PrintScreen to capture the active dialog box or menu on your desktop.

  • How to get Apple Refund you the Money for App Purchase

    You might have an app purchased by mistake for some reasons. (Personally I think paid apps in Apple App Store should have a grace period). According to Apply policy, you can’t cancel app purchase. But lucky there is a feature in iTunes you can get Apple to refund your money.

    (more…)

  • IE9 Go to an intranet site for a single word entry in the address bar

    Unlike IE8, in IE9, if you type an intranet site name in the address bar without http, IE9 will redirect you to the bing search page with the site name as keyword. IE9 also recognize you might want to go to an intranet so there is prompt pop up ask if you want to go to internal site.

    5181943752_6bd422793e

    This means one more click for many users. You can enforce IE 9 to go to intranet site directly for single word entry by following these steps.

    (more…)

  • MSBUILD Reserved Properties

    When you use MSBuild, a handful of properties are available to you out of the box that cannot be modified. These are known as reserved properties. Following table presents all reserved properties in MSBuild 4.

    (more…)