How to solve Unhandled Error in Silverlight Application Code: 2104

The Problem: You ftp a Silverlight App to an IIS website, go to the website in a browser, and get the following error: Message: Unhandled Error in Silverlight Application Code: 2104 Category: InitializeError Message: Could not download the Silverlight application. Check web server settings The Cause: The Silverlight Mime types (.xaml, .xap and .xbap) are not listed in that websites registered mime types, therefore IIS will not send those files to the browser. The Solution: Open IIS on the server, go to HTTP headers, click on Mime Types, click “Add New” and add the following: Extension – Mime Type .xaml …

Continue Reading

Export image to PDF in Silverlight

After a few hours serching a way to put a image into pdf in silverlight, something worked out, here goes: Libraries used: Imports silverPDF Imports PdfSharp.Pdf Imports PdfSharp.Drawing Imports iTextSharp.text Imports ImageTools Imports ImageTools.IO.Jpeg Imports ImageTools.ImageBase Imports ImageTools.Helpers Imports ImageTools.ImageExtensions Code snippet (vb): Dim d As New SaveFileDialog() d.Filter = “PDF file format|*.pdf” ‘ Save the document… If d.ShowDialog() = True Then Dim document As New PdfDocument() Dim page As PdfPage = document.AddPage() Dim gfx As XGraphics = XGraphics.FromPdfPage(page) Dim img As ImageTools.ImageBase = Me.canvas1.ToImage() Dim mstream As New MemoryStream() Dim encoder As New JpegEncoder() encoder.Encode(img, mstream) mstream.Seek(0, SeekOrigin.Begin) Dim …

Continue Reading

NK2View: View Outlook .NK2 AutoComplete Information

This feature is known as ‘AutoComplete’ and Outlook automatically build this emails list according to user activity and save it into a file with .NK2 extension. In some circumstances, you may need to repair or modify the values appeared in the AutoComplete list, or you may want to remove unwanted email addresses and/or to add new email addresses. MS-Outlook doesn’t provide any ability to edit this AutoComplete list, so this is where NK2Edit software can help you. NK2Edit Features: Easily modify or fix all information stored in the NK2 file, including the display name, the email address, the exchange string, …

Continue Reading

Register .Net Framework 4.0 in IIS

Check your .Net framework location , usually is C:\Windows\Microsoft.NET\Framework\v4.0.30319 you can put this in a batch file ( “iisreg_fx4.bat” ): REM “Changing to the Framework install directory” cd /d C:\Windows\Microsoft.NET\Framework\v4.0.30319 echo “Stopping IIS” iisreset /stop rem regiis aspnet_regiis -i echo “Restarting IIS” iisreset /start echo “———————-” pause

Continue Reading

ASP.NET Web Configuration Guidelines

.NET Framework 4 ASP.NET enables you to specify configuration settings that affect all Web applications on a server, that affect only a single application, that affect individual pages, or that affect individual folders in a Web application. You can make configuration settings for features such as compiler options, debugging, user authentication, error-message display, connection strings, and more. Configuration data is stored in XML files that are named Web.config. This topic describes the main configuration settings that you can make in the Web.config file. The topic contains the following sections: Configuration File Sections Modifying Configuration Files Configuration Files Hierarchy Deploying Configuration …

Continue Reading

chrometophone

Google Chrome to Phone Extension is a project consisting of a Chrome Extension, Android App, and supporting AppEngine server that enables users to send links from their Chrome desktop browser to their Android device using Android’s Cloud to Device Messaging service. Features: Send links to browser Google Maps links launch the Google Maps app. YouTube links launch the YouTube app. Selecting phone numbers in Web pages, launches the dialer with the number pre-populated. Selected text populates the Android clipboard (long-press on text boxes to get paste option). Right click on links and selections. Update (15th Sep 2010): Chrome to Phone …

Continue Reading

Worm:W32/Bugbear

Your keyboard has one hour to another to duplicate the accents? This is when you press’ or ~ they come out duplicates? This is a symptom of the virus BugBear, which began to spread over the Internet on September 30. The BugBear (also called Thanatos) is a virus e-mail with behavior similar to “famous” Klez. That is, when your machine is infected, it begins to send emails from your computer. The big problem is that, like Klez, it “spoofs” the sender, picking a random name from your list of emails. That way, when you receive an email with the virus, …

Continue Reading

ASP.NET 2.0 – Enter Key – Default Submit Button

One of the most annoying things in developing web pages is handling the “Enter key” for form submission. Enter key has been the favourite way users like to submit forms. Though we provide Buttons to click on, the easiest and intuitive way is that, I can enter some text, make some changes and then hit “Enter” to accomplish my submission. “Enter” Key is handled in a little tricky way by uplevel browsers like Internet Explorer, when it comes to ASP.NET. * If there is a single Textbox and single button, then it becomes straight forward, the button is submitted. However, …

Continue Reading