Wednesday, March 7, 2012

WPF: Define Percentage In Column Widths

To define the percentage in the width, in the example below, instead of 70%, replace it with .7*.
<Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width=".7*" />
        <ColumnDefinition Width=".3*" />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <TextBlock Grid.Column="0">70% width</TextBlock>
    <TextBlock Grid.Column="1">30% width</TextBlock>
</Grid>

Monday, February 27, 2012

Microsoft Brushes.Colors

Collection of Colors Available with it's ARGB value in Microsoft.Net Framework 4.0.
http://msdn.microsoft.com/en-us/library/system.windows.media.colors.aspx

Special Characters Sort Order

Googled and found this. Useful for myself to understand on the sorting order for special characters.
 Here is a list of some of these characters along with the sort order (ascending to descending)

' (back tick)
- (hyphen)
! (exclamation)
# (pound symbol)
$ (dollar)
% (percent symbol)
& (ampersand)
( (open parenthesis)
) (close parenthesis)
* (asterisk)
@ (at symbol)
^ (carrot)
_ (underscore)
~ (tilde)
+ (plus)
= (equals)


Thanks to Jim McBee: http://msmvps.com/blogs/erikr/archive/2008/09/20/special-character-sort-order-gal.aspx

Thursday, May 26, 2011

SSAS: Unexpected error occured: 'Error in application.'

What happen?
I'm new to this SQL Server Analysis Services cube processing and have been working on this project for a month plus.
Gotten into this error when trying to browse the Cube Calculation tab.

Unexpected error occured: 'Error in application.'

Software: Visual Studio 2005
Operating System: Windows 7

What's the problem?
This might be caused by version mismatch between some binaries of msmdlocal.dll and msmgdsrv.dll.

The Solution?
Manage to get help from Internet Search engine and route to this page:
http://social.msdn.microsoft.com/forums/en-US/sqlanalysisservices/thread/773988a0-1767-47ed-9405-77430e7db37f/ Making sure that the ones installed into %ProgramFiles%\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\ are the same as those in %ProgramFiles%\Common Files\System\Ole DB\
(if they are not then try updating the ones in the PrivateAssemblies with the ones from ole db; you might want to save the original ones as to be able to get back to original state just in case...)

Friday, September 25, 2009

Server Application Unavailable

What is happening? Out of a sudden, when accessing asp.net website, this error message is showing up instead of a normal webpage.

Oh my god... Checked on the IIS, every setting is correct, verify file is there, permission is correct as well.

I even tried setting Everyone's permission to Full control but this is not solving the problem.

So my next step?
Re-registering aspnet_regiis.exe -i
(c:\windows\microsoft.net\framework\v2.0.50727\aspnet_regiis -i )

And Voila, everything works back to normal. YAY!!!

If the above still couldn't fix your problem, you can try the solution in this link, http://blog.crowe.co.nz/archive/2005/08/30/242.aspx


Cheers, :)

Thursday, July 2, 2009

HTTP Error 404 - File or Directory not found

What happen?
Encountered this problem on my VPC (Virtual PC), Windows 2003, IIS 6.0.
When I try to view default.asp or default.aspx file, nothing seems to work.
The error returned in the browser was:
    HTTP Error 404 - File or Directory not found.

    Search the web and found this useful site from microsoft which explains why it happen and the solution: http://support.microsoft.com/kb/315122

    What's the problem?
    When you request dynamic content such as an Active Server Pages (ASP) page, an ASP.NET page, an Internet Services API (ISAPI) application, or a Common Gateway Interface (CGI) application on a Microsoft Windows Server 2003 server that is running Internet Information Services (IIS) 6.0, you may receive one of the following error messages:
    • Error message 1
      HTTP Error 404 - File Not Found
    • Error message 2
      HTTP Error 404- File or Directory not found

    Cause?
    By default, when IIS is installed on any version of the Windows Server 2003 family, IIS only serves static content (HTML).

    The Solution?
    Enable a Pre-existing Web Service Extension in IIS 6.0

    To permit IIS to serve content that requires a specific ISAPI or CGI extension that is already listed in the Web service extensions list, follow these steps:

    • Open IIS Manager, expand the master server node (that is, the Servername node), and then select the Web service extensions node.
    • In the right pane of IIS Manager, right-click the extension that you want to enable. In this example, this is Active Server Pages.
    • Click to select the Allow check box.

    For more information on this, refer to http://support.microsoft.com/kb/315122