Dotnetdreamer's Weblog

SharePoint, Silverlight and Azure

Archive for March, 2009

Azure Services – Method Not Allowed (405)

Posted by Ramprasad Navaneethakrishnan on March 21, 2009

Hi Folks,

This is my first post on Windows Azure and I hope I will add more as time goes on.. Now lets get to the business!

This is what I was trying to do..

1. I was trying to learn Azure Services. So as a first step I installed all the necessary setups

2. I completed my HelloWorld App with Windows Azure and I had no problem.

3. Now I tried to try my had at incorporating WCF into Windows Azure.

4. So I wrote a WCF service and this service write some data into the Azure Local Resource.

5. When I pressed F5, Boom.. I got this “Method Not Allowed (405)” Error.

6. So as a good boy, I googled “Method Not Allowed (405) + Winodws Azure” and got some help  and the prominent result says IIS7 did not have handlers to SVC files. They wanted me to run ServiceModelReg -i from the location “C:\Windows \Microsoft NET\Frameworv\v3.0\Windows Communication Foundation”.

7. But there is an alternate solution too..

8. Open Server Manager –> Click Features –>Add Features

9. Select .NET Framework 3.0 features – > Install.

10. This is how the screen looks after the feature is installed

server-manager-add-features

11. Now SVC files are added to the IIS 7 handlers. This is how the Handler Mappings in the IIS 7 looks..

iis7-handler-mappings

Now method not allowed (405) error is gone and my WCF service is working just fine..

Hope this is useful. Please give your comments on this post.

Thanks,

Ramprasad.

Posted in Windows Azure | Tagged: , , , , , , , , , , , , , , | 1 Comment »

Debugging Silverlight Application

Posted by Ramprasad Navaneethakrishnan on March 5, 2009

Yesterday, few of my collegues tried their hands on Silverlight application for the first time and they faced this issue, a simple one which will be faced by most of the Silverlight novices. The issue  is “Debugger not getting hit in the Silverlight project . So why is this? How to solve this?

Solution:

All Silverlight applications will have a hosting application which will be an ASP.NET web application..

1. Right click the ASP.NET web application – -> Properties

2. In the properties window, select the tab Web.

3. In the debugger’s section, check the Silverlight checkbox.

 debuggingsilverlight

4. Save the project properties.

5. Hit F5. Now you will be able to debug the Silverlight project

Leave your comments please.

Thanks.

Posted in Silverlight | Tagged: , , , | 19 Comments »

Silverlight 2 Tools – Offline Installation

Posted by Ramprasad Navaneethakrishnan on March 3, 2009

Hi.. 

Ever wondered why the error “Hash value is not correct. ” is coming while installing Silverlight Tools?  This is because, while installing Silverlight Tools, the setup tries to download silverlight developer runtime, ‘Silverlight.2.0_Developer.exe’ from internet. If you have an internet connection, a connection that does not block downloading exe’s then you should not face any problem during the installation. But if you are not connected to internet, or your firewall blocks downloading exe’s, then you will get this error – “Hash value is not correct.”

So how to install Silverlight Tools offline, without internet connection?

The solution is simple..

1. Download Silverlight tools and Silverlight developer runtime from a computer that has internet connection.

2. Go to command prompt

3. Navigate to the folder containing the Silverlight tools setup “Silverlight_Tools.exe“.

4. Run the command Silverlight_Tools.exe/x.

5. The windows will show a popup that asks for a location to extract files. Specify a location. The tools setup now extracts all the contents to this location

6. Paste the setup ‘Silverlight.2.0_Developer.exe’ in the above mentioned location. Now the ‘Silverlight Tools offline installation package‘ is ready!

7.  Go to the computer(the one without  internet connection)where you want to install Silverlight tools.

8. Paste the Silverlight Tools offline installation package.

9.  Run SPInstaller.exe (this is present inside the package)

10.  Now you can see the message ‘Installation completed successfully’.

 

Let me know your comments please..

Thanks,

Ramprasad.

Posted in Silverlight | Tagged: , , , , , , , | 8 Comments »