Friday, May 11, 2012

Mozilla and Chrome Specific CSS

Hi All,

To add Mozilla specific CSS, just include the CSS inside @-moz-document url-prefix() as shown below:

/* Mozilla Specific CSS */
 @-moz-document url-prefix()  {
    #imgHeaderTD
    {
        display:none;
    }
}

The above code hides the element with ID imgHeaderTD in Mozilla only.

To add Chrome specific CSS, just include the CSS inside  @media screen and (-webkit-min-device-pixel-ratio:0):

/* Chrome Specific CSS */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    #imgHeaderTD
    {
    display:none;
    }
}

Thanks.

Sunday, April 22, 2012

Visual Studio 2010 Just In Time Debugger - Cryptographic Exception

Hello,

A couple of weeks ago, Visual Studio 2010 started giving Just-In-Time debugger message as shown below:















It was not a code issue because we got this debugger message just after VS 2010 is started and frequently in middle of coding.

Solution:
The issue was because of Forefront Identity Manager service. It was disabled in my server. Just enable it and set it to start Automatically.


After this was done, we never got the above debugger message. More details on the issue can  be found here.

Thanks.

Saturday, April 21, 2012

The RPC server is unavailable

Hi,

After the ABCPDF's issue with IE9 is resolved, we got another issue while generating PDF using ABCPDF.dll. The below is the error message:

Source:System.Drawing, Message:The RPC server is unavailable, StackTracke:   at System.Drawing.Printing.PrinterSettings.get_InstalledPrinters()     at WebSupergoo.ABCpdf8.Doc.AddHtmlGecko(String html, Boolean paged, Int32 width, String& err)     at WebSupergoo.ABCpdf8.Doc.AddImageHtml(String html, Boolean paged, Int32 width, Boolean disableCache)     at WebSupergoo.ABCpdf8.Doc.AddImageHtml(String html) 

Resolution:

Make sure that the PrintPool service is running on your server. By default, it was disabled in my SharePoint server. I enabled and set it to start automatically and was able to generate PDF from then.



Cheers !