Showing posts with label silverlight4. Show all posts
Showing posts with label silverlight4. Show all posts

April 19, 2011

Sql Azure – Error XML HTTP Request does not exist . Parameter Name: typeName

I am trying to connect to SqlAzure database from my windows azure account, when I try to authorize by giving valid database credentials I get the error as XMLHTTP Request does not exist. 

I know that Azure is stateless. But the  connections are maintained with state.Especially when we are trying to use asynchronous  calls using the XMLHTTP request object it doesn't recognize .Hence we should not use  XMLHttpRequest while working with Azure. But in this case I am not using any ajax calls or xmlhttprequests.

azure-error

I thought might be internally azure is using xmlhttprequest. I  also checked the IP addresses of my SQL Azure firewall  to allow proxy IP.  It is  not dynamic,  it’s not changed. If this is the case error will be different message. I also have all latest XML components installed in the box.

Can you guess what is the cause and problem?

The problem is its not getting connected in IE7 or FF3.6.

This  silverlight application interface uses XMLHTTP requests from the client side,  all the operations are made through a service on Azure using port 80, not directly to the SQL Azure server.since the Silverlight application uses local XMLHTTP requests components on your machine, we need to make sure that client machine using azure account has the latest XML components. Upgrading my browser to IE8 solved the issue, I think this updated latest updates and necessary components for XMLHttpRequest for Silverlight4. At least we need to have IE8/ IE9 to work.  The cause is Silverlight 4.0 some problems with XMLHttpRequest in Firefox 3.6.

Sql Azure Tips

We should have sqlserver2008R2 to work with SqlAzure

SQL Azure is only compatible with SQL Server 2008 and SQL Server 2008 R2. If we are planning to migrate database to SQL Azure we should first upgrade it to run on SQL Server 2008 or SQL Server 2008 R2.   We can take help of  SQL Server 2008 Upgrade Advisor for compatibility  test before  migrating to SQL Azure.

The SQL Azure Migration Wizard is a very good tool for testing the compatibility between SQL Server 2008 and SQL Azure. This tooll can analyze SQL Profiler traces to check the compatibility of the T-SQL statements generated by the application.

August 31, 2010

Working with Silverlight 4 – Applications

This blog post focuses on how to get started with Silverlight project and installation of Silverlight4 templates to Visual Studio 2010 RC. This covers the required installation steps and prerequisites to work for a Silverlight 4 project. Step by step procedure of installation of Silverlight development Kit is explained. So Read on…

Once you install VS2010 , you can get started with Silverlight application.

Navigate to the  File menu in VS2010 - > New Project-> Silverlight-> Silverlight Application .

Silverlight- project

Give meaningful name of the Silverlight project. Once the name is given, you need to create a website to host Silverlight application.

select-project Type-2

You can select the project type as Web Application, Web Site or ASP.NET MVC project to host the newly created Silverlight application.

You can work with Silverlight3 using VS2010 by default.  You need to Install Silverlight SDK to work on latest version of silverlight  ie (SL4)

SilverLight3 -dropdown - VS2010

To create SL4 app, VS2010 requires installing Silverlight4_Tools.exe .

Silverlight-installtion-Step1

This installation includes

· Silverlight 4

· Silverligh4 Development KIT

· WINDOWS COMMUNICATION FOUNDATION (WCF) RIA SERVICES

· KB976272, which is a supplement to MICROSOFT VISUAL STUDIO 2010

After you agree terms and conditions software check and system requirements are fine, then you will be redirected to the following step.

Sliverlight-installtionStep2

Click on finish once the installation is done.

After the installation is successful, Open VS2010 and create new Silverlight project, now you can see Silverlight4 in dropdown and the additional project templates that are installed.

silverlight4

You can notice that SL4 business applications and WCF RIA Services are now newly added templates.

silverlight-4projects

It will not take more than 30 minutes to download and install these Silverlight4 tools.

Silverlight4-project host

Note: Now there is an option to enable WCF RIA Services.

You need to have silverlight4 in order for the Silverlight4 application to run and show its rich UI.  It can be downloaded and installed in just 2 minutes on this official MS site