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

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

Exposing all ASP.Net Provider-based classes over WCF Services

Posted By:      Posted Date: October 04, 2010    Points: 0   Category :WCF

We are adopting an architecture completely based on WCF Services, thereby allowing us to decouple our presentation layer from our Business Logic layer.  However, everything that we currently know about traditional Web Forms seems to go out the door by adopting this model since traditional Web Forms assumes direct access to the database and to the Business Logic tier.

As a first step, we would like to figure out how to provide a default serialization mechanism for our SiteMap data so that it can be consumed by the SiteMapDataSource on the ASP.Net client side code, but eventually we would like to be able to serialize all of our ASP.Net providers such as our MembershipProviders, Personalization and Profile Providers so that they are all available via our WCF Services.

Are there any samples/examples anyone can provide on how to serialize all of our existing Provider classes over WCF Services so that they can be appropriately consumed by our ASP.Net web forms clients?  Is it supposed to work as simply as marking all of our classes with System.Runtime.Serialization and the appropriate serialization attributes or is it significantly more involved than that?



View Complete Post

More Related Resource Links

services based architecture


was giving a though on using ajax enabled wcf services as part of architecture

generally wht im using

is UI-> BL-> data access


is it suggestable to use wcf services layer instead

of BL

nd hv UI-> services-> data access

related to asp.net


would like to no pro's and con's of doing this thing.

is it suggestable to do it. 

Contract-First Web Services: Schema-based Development with Windows Communication Foundation


Schema- first contract-first modeling of Web Services gives you the ability to model your contracts with an XML-centric mindset. This process keeps you focused on universally acceptable types and the hierarchical data structures that can be represented in XML.

Christian Weyer, Buddhike de Silva

MSDN Magazine October 2009

Geneva Framework: A Better Approach For Building Claims-Based WCF Services


Here we introduce Microsoft Code Name "Geneva," the new framework for building claims-based applications and services, and federated security scenarios.

Michele Leroux Bustamante

MSDN Magazine December 2008

Service Station: Authorization In WCF-Based Services


Windows Communication Foundation (WCF) provides an easy role-based system and a more powerful and complex claims-based API for implementing authorization in services.

Dominick Baier and Christian Weyer

MSDN Magazine October 2008

Cutting Edge: A Provider-Based Service for ASP.NET Tracing


When it comes to catching programming errors, the debugger is a developer's best friend. ASP. NET tracing, however, is a nice complement to the debugger and shouldn't be overlooked. It enables your ASP.

Dino Esposito

MSDN Magazine June 2006

Web Services: Capturing and Analyzing Client Transaction Metrics for .NET-Based Web Services


This article presents a general-purpose client quality reporting mechanism that can be used in any .NET-based transaction system that employs HTTP/SOAP. The design uses client response time and quality recording, upload of logs as SOAP headers attached to new transaction requests, and server handoff of these headers to a low priority queue for logging and analysis. This technique gives an enterprise near real-time information on actual end-user response times. These response times reflect network delays, client application overhead and server delays. By using this technique, enterprises can avoid the need to develop custom software to mine HTTP logs.

Brian Connolly

MSDN Magazine July 2004

Windows Services: New Base Classes in .NET Make Writing a Windows Service Easy


Windows services are applications that run outside of any particular user context in Windows NT, Windows 2000, or Windows XP. The creation of services used to require expert coding skills and generally required C or C++. Visual Studio .NET now makes it easy for you to create a Windows service, whether you're writing code in C++, C#, or Visual Basic. You can also write a Windows service in any other language that targets the common language runtime. This article walks you through the creation of a useful Windows service, then demonstrates how to install, test, and debug the service.

Ken Getz

MSDN Magazine December 2001

How to resolve Shared Services Provider creation failure?

I would like to ask for support regarding this problem: SSP provisioning will be retried periodically. If you correct the error that caused this failure, provisioning will subsequently succeed. To stop provisioning from being retired, delete the SSP. I'm creating a New SSP & everytime I create, I received that message. I tried to reset the IIS already, restart the machine, but still I received that error after I create a new SSP. Wait for soonest advise!

Ideal approach? - Shared Classes or Non Shared (Object based)

Whats the ideal approach while developing an  ASP .Net application.1. Using normal classes and then using their functions by making objects? 2. Using Shared (Static for C#) classes and their shared functions and accessing them without creating the objects.My questions areWhat are benefits and drawbacks of above both?Can we face issues in simultaneous access of functions in 2nd case?Will there be separate copies of functions and variables in memory for 2nd case or just a single copy?What if our SqlConnection, SqlCommand and SqlAdapter are also shared? 

Selecting ODP.NET (provider for Oracle) in Reporting Services 2008 R2 x64, Report Builder 3.0, Busin

We have a requirement to connect Reporting Services 2008 R2 x64 + Report Builder 3.0 to Oracle database and also to build a web application which connects to Oracle. I installed ODAC (Oracle Data Access Components) which contains ODP.NET (Oracle Data Provider for .NET) and Instant Client (required by the provider). Now the problem is how to make Report Designer, Reporting Services and Report Builder 3.0 to add ODP.NET as an Oracle provider in the drop down list contained by the Data Source Wizard? I found out that Reporting Services and Report Builder work based on Data Extensions so I added Oracle.DataAccess as extension to RsReportServer.config and RsReportDesigner.config as shown in: http://www.bigresource.com/Tracker/Track-ms_sql-aIXqXMEE/. By changing RsReportDesigner the ODP.NET appeared in the list for Report Designer (Business Intelligence Studio) but it couldn't be used because an error was thrown as soon as Test Connection was pressed stating that the provider is not registered with the application. With these changes ODP.NET does not appear in the list of providers for Reporting Services and Report Builder 3.0. For now I managed to connect to Oracle through .NET Provider for Oracle (provided by default) but this seems to be deprecated and in Report Builder 3.0 I can't select tables to be added to the query, I'm prompted only with a blank textbox and one excla

Same Role provider (ASP.NET Services database) for various WCF services


Hi there,

Service Authetnication

Have configured WCF service to implement authentication using AD(Active Directory), when a request comes from the client it is authenticated aginst active directory and either allow access or deny based on the credentials passed to the service.

Authorization using ASP.NET Role provider

Have implemented the method level authorization using SecurityPermission attribute, which checks the role data in ASP.NET Services database( in other words Membership database) against aspnet_roles, aspnet_Users_InRoles tables to allow / deny access to particular method.

It works well with single instance of service, where the request is from mutliple client applicaitons.

In the above implementation, WCF service is configured to use ASP.NET Membership database to implement authorization to authorize access to particular methods.


Would like to know if it is feasible/best practice to utilise the same instance of ASP.NET Membership databse to implement Role based authorization on number of WCF services.

[PrincipalPermission(SecurityAction.Demand, Role = <

Synchronization for Shared Services Provider 'yyy' has failed. Event ID 5783


Hi all,

Hoping someone can shed some lights on this issue -

I'm getting 5783 application log warning (details below) one in every minute in my WFE. Time job status says Shared Services Provider Synchrorizing Job succeeded on this WFE (xxxWEB01) - but aborted on Application server (xxxAPP - where my CA is running) [see below]. Though there is no 5783 warnings in Application server logs. I also noticed if I disable the "Shared Services Provider Synchrorizing Job" - I don't get the warning on xxxWEB01.

I tried deleting old databases through the Sync STSADM command following this post with no luck.   

This is a MOSS 2007 server farm with SP2 applied and 1 WFE, 1 Application server and 1 SQL 2005 server.

Any suggestion would be greatly appreciated.

Many thanks in advanced!


Event Type: Warning
Event Source: Office SharePoint Server
Event Category: Office Server Shared Services
Event ID: 5783
Date:  9/23/2010
Time:  12:39:59 PM
User:  N/A
Computer: xxxWEB01
Synchronization for Shared Services Prov

Report Model based on Analysis Services Cube doesn't work


Hi all,

I am working in BIDS and would like to create a Report Model based on a cube.

Creating a Data Source based on SSAS goes well, but when I want to make a Data Source View, the earlier created Data Source doesn't show up, which is necessary for the final resulting Report Model.

Could somebody help me out in solving this issue? (And also tell me why this is issue is rising?)


SQL Server 2008 & BIDS 2008 (Version 9.0.3x)

Sharepoint Services Provider for search


click on search settings i have got this error:

The search service is currently offline. Visit the Services on Server page in SharePoint Central Administration to verify whether the service is enabled. This might also be because an indexer move is in progress.

can any help me out for create search scope

Is there a way to query entity based on multiple filter criteria? WCF Data Services, Linq to Entiti


Instead of:

DW_CMSOPEN dwc = new DW_CMSOPEN(new Uri("http://acctdev02/WCFDataService/EmployeeService.svc"));

dwc.Credentials = System.Net.CredentialCache.DefaultCredentials;

var employees = from emp in dwc.Employees 
             where emp.DEPT == "123"
             select emp;

I'd like the linq query to resemble:

var employees = from emp in dwc.Employees
              where emp.DEPT // in {"123", "456", etc}
              select emp;

Windows Identity Foundation (Claims Based Authentication) for Reporting Services



I see that SQL Server 2008 R2 Reporting Services now supports Claims Based Authentication in Sharepoint 2010, meaning that end users can authenticate with Sharepoint using Claims Based Authentication, and use the same security tokens to connect through to Reporting Services.

I assume that behind the scenes Sharepoint is using Windows Identity Foundation (WIF - formerly codenamed "Geneva") to handle the authentication, and passing this on to Reporting Services.

I'm keen to use Windows Identity Foundation to authenticate with Reporting Services without Sharepoint. We have an existing ASP.NET web application, and we'd like to call Reporting Services from that, passing on the Windows Identity Foundation credentials of the user logged into our web application.

I've done some work on setting up a custom security extension using Forms Authentication (based on the sample), but am not sure how to proceed from there.

Google/Bing hasn't been helpful. Can you please point me to some guidance on how to set up Windows Identity Foundation authentication for Reporting Services?<

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