.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Using IIS Express to Secure Silverlight and WCF Applications

Posted By: dwahlin     Posted Date: May 22, 2011    Points: 0   Category :ASP.Net

I've been using IIS Express lately with Silverlight and WCF services and have learned to appreciate the "real-world" advantage it gives you versus the built-in Visual Studio "Cassini" server. Although I've always preferred to use IIS whenever possible, sometimes that's not an option when you're first starting a project and working on a machine that doesn't have IIS installed.  By using IIS Express you can identify security, configuration and other issues that may occur as you move an application to a real IIS 7+ server upfront rather than finding out about the issues after you move an application to a dev/staging server. In this post I'll walk-through some of the lessons learned and walls encountered when I started working with authentication in IIS Express. It's easy to work with once you know a few fundamentals. If you don't already have IIS Express installed (it comes with Visual Studio 2010 SP1) you can get it through the Web Platform Installer or here.

The details listed below should help get you started running Silverlight applications that consume WCF services on IIS Express. The general principles can be applied to other a

View Complete Post

More Related Resource Links

Silverlight Security: Securing Your Silverlight Applications


Josh Twist explains the unique challenges developers face in securing Silverlight applications. He shows where to focus your efforts, concentrating on the key aspects of authentication and authorization.

Josh Twist

MSDN Magazine May 2010

Inside Microsoft patterns & practices: Building WPF and Silverlight Applications with a Single Code


This article discusses the Project Linker tool and other techniques to create applications that target both WPF and Silverlight from a single code base.

Erwin van der Valk

MSDN Magazine August 2009

Data Services: Create Data-Centric Web Applications With Silverlight 2


ADO.NET Data Services provide Web-accessible endpoints that allow you to filter, sort, shape, and page data without having to build that functionality yourself.

Shawn Wildermuth

MSDN Magazine September 2008

Best Practices: Fast, Scalable, and Secure Session State Management for Your Web Applications


ASP.NET provides a number of ways to maintain user state, the most powerful of which is session state. This article takes an in-depth look at designing and deploying high-performance, scalable, secure session solutions, and presents best practices for both existing and new ASP.NET session state features straight from the ASP.NET feature team.

Mike Volodarsky

MSDN Magazine September 2005

Web Security: Putting a Secure Front End on Your COM+ Distributed Applications


The Internet requires that developers provide a different security model for clients than is used on a closed network. Because it would be too resource-intensive for both the client and server to prove their identity to each other, you need to look at other ways to ensure secure communications. This article covers the options, from digital certificates to public and private key encryption to Secure Sockets Layer and Web certificates. The discussion covers the installation of certificates in Microsoft Internet Information Services along with other options specific to IIS. This article was adapted from Keith Brown's Programming Windows Security (Addison-Wesley), due out in July 2000.

Keith Brown

MSDN Magazine June 2000

Quick Note: Create Silverlight Applications to Access SharePoint 2010 Data

In this exercise, you will learn how to create Silverlight applications to display SharePoint 2010 lists inside DataGrid controls.

Video: Consuming SharePoint 2010 Objects and Data in Silverlight Applications

This video provides an overview of how to build Silverlight applications that access SharePoint data. (Length: 3:50)

Video: Hosting Silverlight Applications in SharePoint 2010

This demonstration shows how to host a Silverlight Application in a Web Part. (Length: 4:17)

Video: Developing Silverlight Applications by Using the SharePoint 2010 Client Object Model

This demonstration shows how to use the client object model from a Silverlight application. (Length: 11:15)

August 29th Links: .NET, ASP.NET, IIS Express, Silverlight, Windows Phone 7

Here is the latest in my link-listing series.  Also check out my VS 2010 and .NET 4 series and ASP.NET MVC 2 series for other on-going blog series I'm working on. [In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu] .NET/WPF/EF 5 Little C#/.NET Wonders that Make Code Better: Nice blog post from James that highlights 5 nice language/framework tips you can take advantage of within your apps.  I'm betting a lot of people didn't know about the StopWatch class. WPF Ribbon Control Released: The WPF team recently released the final V1 release of the WPF Ribbon control.  This makes it easy to build ribbon-based applications. Also read this WPF team blog post for lots of great details on what it enables. EF4 .Include() Method w/ Lambda Support: Ever wanted to use a Lambda expression instead of a string parameter when eagerly loading associations in EF4 using the Include() method?  This blog post shows you how you can. ASP.NET Performance Tuning tricks for ASP.NET and IIS7 Part 1 and Part 2: Mads has a nice set of posts that detail some great performance optimization tips you can use with ASP.NET and IIS7. Better ViewState Management in ASP.NET 4 with the ViewStateMode Property: Sc

How to get all Secure Store Service (SSS) applications in the farm

Hello everyone, I am trying to use SharePoint 2010 Secure Store Service (next SSS) in my application to get credentials to external system. Is there any way to get all possible applications (IDs) from API provided. Currently I am using next code to get all applications: SecureStoreProvider provider = SecureStoreProviderFactory.Create() as SecureStoreProvider;             provider.Context = SPServiceContext.GetContext(SPServiceApplicationProxyGroup.Default, SPSiteSubscriptionIdentifier.Default);             if (provider != null)             {                 foreach (var app in provider.GetTargetApplications())                 {                     Console.WriteLine(app.Name);                 }             } However it depends on SPServiceApplicationProxyGroup.Default and SPSiteSubscriptionIdentifier.Default parameters. So in case I remove SSS from

Why silverlight applications only require ClientAccessPolicy.xml, why web application does not?



I know that silverlight application to access cross domain WCF/ web service need clientaccesspolicy.xml(silverlight way)/crossdomain.xml(flash way).

Does web application accessing the cross domain WCF/ web service need this clientaccesspolicy.xml(silverlight way)/crossdomain.xml(flash way)?

If the answer is no , why clientaccesspolicy.xml(silverlight way)/crossdomain.xml(flash way) required only for silverlight/flash applications?




Secure Sharepoint 2010 with Silverlight Webpart not communicating with CRM.


We have a SharePoint 2010 Enterprise site using SSL. I have modified a webpart that uses Silverlight to connect to crm and output data from there.

The project works when I debug the Silverlight project. This was only after I implemented a clientaccesspolicy.xml on the CRM site. The problem I have is that when I try moving it to the SharePoint site or debugging the project that wraps the webpart, I get the same cross domain error. The error is as follows.

Unhandled Error in Silverlight 2 Application An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.   at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
   at CRMSLParts.CrmSdk.ExecuteCompletedEventArgs.get_Result()
   at CRMSLParts.AccountManager.service_ExecuteCompleted(Object sender, ExecuteCompletedEventArgs e)
   at CRMSLParts.CrmSdk.CrmServiceSoapClient.OnExecuteCompleted(Object state)
<my site here>
Line 0

This error when debugged in Visual Studio 2010 is as follows.

An error occurred while trying to make a request to URI 'http://<myCRMsiteHere>/MSCrmServices/2007/CrmService.asmx'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is

Design view in VS2008 for silverlight applications



I installed the Silverlight 3 Tools for Visual studio 2008 sp1. But after this the design view for Silverlight 3 XAML files is not shown in VS 2008.  Please if anybody have some solution for this problem let me know.

Thanks in Advance!!!

Best regards,
Subalakshmi Vijayarajan.

Subalakshmi Vijayarajan.

Video: Create Silverlight Applications to Access SharePoint 2010 Data

Learn to create a Silverlight application that displays SharePoint 2010 lists inside DataGrid controls.

Sample: Integrating Custom Silverlight Applications with SharePoint Server 2010

Explore the code as you learn to use the SharePoint Foundation 2010 managed client object model to work with managed Microsoft Visual C# code within the context of custom Silverlight 4 applications.

Integrating Custom Silverlight Applications with SharePoint Server 2010

Learn how to use the SharePoint Foundation 2010 managed client object model to work with managed Visual C# code within the context of custom Silverlight 4 applications.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend