Archive for the 'ASP.NET' Category

WCF and Silverlight on IIS setup

March 20th, 2008

Both involve MIME type setup on IIS.

1. WCF:  If your WCF does not work on your production IIS server, most likely the .svc MIME type is not registered, I used the following command line to fix it:

c:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg -i

2. Silverlight, you need to register the .xap MIME type, for IIS 7, simply using the following command line:

C:\windows\system32\inetsrv\appcmd set config /section:staticContent /+[fileExtension='.xap',mimeType='application\x-silverlight-app']

For both cases, the "C:\Windows\" directory path depends on where your OS is installed.

Posted in ASP.NET, SOA, Silverlight | No Comments »

Sliverlight Applications and Web Services

March 14th, 2008

I am trying to write my first Silverlight application.  I need to do data binding, I already have a set of business objects written in an existing project.  Naturally, I want to reference that project and reuse the business objects.  But VS 2008 won’t allow me to reference the project, says I can only reference Silverlight projects.  Fine, how about reference the .dll then?  Same thing, VS 2008 complaints the .dll is not built with Silverlight.  Why?

It clicked in 10 minutes later while trying different things:  a Silverlight application is a client side application, it should never directly using business objects, which sit on the server side.  The server side objects and operations should be exposed as services, which then can be consumed by Silverlight applications.

Posted in ASP.NET, SOA, Silverlight | No Comments »

MIX08 Sessions online

March 7th, 2008

If you don’t get to go to MIX, this years sessions are available here.   Lots of good stuff and good too see they built the whole thing with Silverlight.  So far, there are more than 60 sessions available, will take days if you go through them all.

Posted in .NET, ASP.NET, Silverlight | No Comments »

ASP.NET MVC Preview 2

March 5th, 2008

Another beta release from MSFT:  ASP.NET MVC Preview 2.

I mainly using MonoRail for my MVC stuff, have not looked at ASP.NET MVC yet, I only know ASP.NET MVC will support NVelocity view engine, which is the engine I use.

Posted in .NET, ASP.NET | No Comments »