Errr, some catchy title.... RSS 2.0
 Thursday, June 28, 2007

So, you wrote your first RIA and you want to publish in on the web and start counting those millions of dollars coming in. You deploy your application, type in the link but, nothing happens. Why?

 

 

 

It could be, that your hosting service doesn’t support .xaml files (mine started around a month age). There is a quick workaround for that, simply rename your .xaml files to .xml. You have to update your references accordingly, such as when you create your xaml object via JavaScript. Luckily, if you do that, everything still works (Intellisense) inside Visual Studio so if you do this before deployment, you won’t have any problems.

 

Note: You don’t have to do this for User Controls as they are compiled into the binary file.

 

Let’s assume that you have created your Silverlight project that consists of one Page.xaml file some User Controls, one Default.html page (so typical set up in Visual Studio). Below is a list of files that need to be uploaded to the server:

 

Default.html

Default.html.js

Page.xaml (or Page.xml)

Silverlight.js

 

And the most important one:

ClientBin (the directory in which is the client DLL)

Thursday, June 28, 2007 10:16:01 AM (GMT Standard Time, UTC+00:00)  #    Comments [0] -
Silverlight
 Monday, June 11, 2007

I was writing a short project for myself in Silverlight that involved calling my own web service. Everything was working great in localhost, however when I uploaded it to my website, the application crashed and I had no idea why. After some time spent debugging (not the most pleasant thing in Silverlight I found out, that calling a web service from generated an exception:

 

Request format is unrecognized for URL unexpectedly ending in /MyMethod.

 

After looking at the problem, I realized that HTTP GET and HTTP POST Are Disabled by Default starting from ASP .NET 2.0. A quick fix has solved the problem, paste the following in the web.config and you’re good to go.

 

<system.web>

    <webServices>

        <protocols>

            <add name="HttpGet"/>

            <add name="HttpPost"/>

        </protocols>

    </webServices>

Monday, June 11, 2007 12:55:07 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -
Silverlight
 Wednesday, June 06, 2007

I moved my blog from www.greatestcoder.com to www.greatestcoder.com/blog/. If you will hit the first page though, you will be automatically redirected to the second page. Here’s how you can do it in the easiest way possible. Create index.html with the following content:

 

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

    <title title="Marcin Waligora" />

    <meta http-equiv="refresh" content="0;url=http://www.greatestcoder.com/blog/" />

</head>

<body>

</body>

</html>

 

The only thing that is interesting here is the meta tag.

 

http-equiv="refresh"

 

This attribuge will tell the server that the page is going to be redirected.

 

content="0;url=http://www.greatestcoder.com/blog

 

Here we have two things into consideration – 0 indicates the amount of time (in seconds) how long the client should wait before being automatically redirected to another page (here idicated by the url tag).

 

On a lot of pages you will see some information, like : “we’re going to redirect you to a different page in 5 seconds. Click here if you don’t wish to wait”.

 

After moving the application I had one problem, all the pictures that I’ve embedded in the posts were using absolute path. So when I moved my application, none of the pictures were displayed. I had to update my previous posts to reflect this change. It would seem logical (if you’re adding your own copy of the image) to the post that it should use relative path instead of absolute. Then, moving a blog to a new location would be a matter of copying all the files.

 

Hey, this sounds like a feature request for das blog guys J.

Wednesday, June 06, 2007 2:27:40 PM (GMT Standard Time, UTC+00:00)  #    Comments [0] -
Html
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008
Marcin Waligora
Sign In
All Content © 2008, Marcin Waligora
DasBlog theme 'Business' created by Christoph De Baene (delarou)