.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

WCF Custom BehaviorExtension Error: An extension "silverlightFaults" already appears in extension co

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

WCF Custom BehaviorExtension Error: An extension "silverlightFaults" already appears in extension collection. Extension names must be unique.

I have a custom behaviorExtension for a silverlight project which helps in communicating faultcontract messages to client. This error occurs when the service is called. Works good in Dev and QA boxes but not in PROD test server. Any ideas of where to start and how to debug ?

Platform: .NET 3.5, Silverlight, WCF, Win2003 x64

Any help is appreciated.

web.config section:

        <add name="silverlightFaults"
            type="Mrr.Srsa.Services.SilverlightFaultBehavior, Mrr.Srsa.Services, Version=, Culture=neutral, PublicKeyToken=9e9f5a95ab06f177"/>
        <behavior name="SilverlightFaultBehavior">
            <silverlightFaults />

View Complete Post

More Related Resource Links

Custom markup extension or custom binding class?

Hey experts! I'm doing a project where I've encountered an issue I'd love some feedback on. I've created a custom Markup Extension called MyMarkupExtension, with two properties.  I can use it like below: <cc:DialogBorder Title="{local:MyMarkupExtension MyProperty='property value goes here', AnotherProperty='and another value here'}"> It works, and in 99% of the cases, it fits my needs perfectly.  In 1% of the cases, the values of MyProperty and AnotherProperty can not be set at design time, so I'd need some binding there. <cc:DialogBorder Title="{local:MyMarkupExtension MyProperty={Binding Path='SomePropertyOfTheViewModel'}, AnotherProperty='and another value here'}"> This presents my two questions (yes I did make only one post for 2 questions, bad karma...): 1. the binding inside my markup is not legal, after all, a binding can only be set on a DependencyProperty.  Is there any workaround which I could use for this problem at hand? In case there isnt... 2. I'm thinking about dropping the markup extension and creating a custom binding instead.  For this, I'd have to inherit from bindingbase, and so far I've read online that's one ____ of a nightmare.  Does anyone have some good code / examples on where to start? "The improbable we do, the impossible just takes

Question on Custom Delivery Extension

All, I want to add new File Based report subscriptions option as "Custom CSV Format". I am bit confused about Custom Delivery Extension and Custom Rendering Extension. My question is for this requirement, should I create Custom Delivery Extension or Custom Rendering Extension? Becaue What I see in rsreportserver.config file, the Rendering Extension defined under <Extension></Extension> tag are available for File Based report subscriptions So is there any relationship between them? Please point me to right direction.

Question on Custom Delivery Extension

All, I want to add new File Based report subscriptions option as "Custom CSV Format". I am bit confused about Custom Delivery Extension and Custom Rendering Extension. My question is for this requirement, should I create Custom Delivery Extension or Custom Rendering Extension? Becaue What I see in rsreportserver.config file, the Rendering Extension defined under <Extension></Extension> tag are available for File Based report subscriptions So is there any relationship between them? Please point me to right direction.

Printer Delivery Extension Error

I am trying to get the Printer Delivery Sample to work, and I have made all the changes, created the DLL, and changed the config files. It works if I am logged on to the server as the server admin, but if I try to run it from my workstation, I get this error, yet I am an admin on the SSRS system (I get the "Site Settings" link in the upper corner). SSRS is running under a domain account, and the printers are installed on the server under the same domain account. A subscription delivery error has occurred. (rsDeliveryError) One of the extension parameters is not valid for the following reason: Printer \\server\printer is not currently installed (rsInvalidExtensionParameter) Any thoughts why it works on the server, and not remotely? Thanks Rick 

SSRS custom security extension behind a router fire wall not working

I have a instance of SSRS 2008 installed (we are not using IIS) with custom security extension which accepts a application user ID and password and sends back a sql authorization cookie back to client for logging into SSRS.  The (SSRS) server is behind a router,  SSRS is configured on port 81,  Port 81 in router if forwarded to the SSRS server. Here is the problem If I am inside the router firewall (RDP'ed to the machine) I am able to access report server (http://xx.xxx.xxx.xx:81/ReportServer) and reports manager (http://xx.xxx.xxx.xx:81/Reports) without any issues. If  am outside the firewall and try to go to report server page (http://xx.xxx.xxx.xx:81/ReportServer) from browser and try to login it works (I am getting the cookie back and authentication goes through fine).   But if I try to access reports manager (http://xx.xxx.xxx.xx:81/Reports) the login page shows up when I enter user ID and password and hit enter to authenticate it comes back to the login screen (I am not gettint the cookie back from SSRS). Any help is highly appreciated on how to debug /fix this issue. Note : if I first login to Reportserver (which sends the cookie back) and in the same session I login to Reports Manager I am able to get into Reports Manager page since I got the cookie when I logged in to reports server page already.  When I

Custom Delivery Extension - SubscriptionID

I am attempting to implement a custom delivery extension for SSRS 2000. The custom delivery extension will deliver the report to a database(table). CreateSubscription WebMethod returns a SubscriptionID once a subscription is created. Is it possible to get this SubscriptionID at run-time i.e when the IDeliveryExtension.Deliver method is called? If so, how? I want to store the SubscriptionID with the report in the database. Thanks for your help.

How to add the "expire" header in wcf rest custom service behavior extension.



I'm using WCF REST with custom service behavior extension. I'd like to add the "expired" header.

I tried this

object IClientMessageInspector . BeforeSendRequest (ref Message request , IClientChannel channel ) 
    var expireHeader = MessageHeader.CreateHeader 
            ( "Expire" ,"ns" , DateTime.Now.ToString
            ("ddd, dd MMM yyyy HH':'mm':'ss 'GMT' " ) , false ); 
    request.Headers.Add(expireHeader) ; 
    return null ; 

But then I get the following exception:
System.InvalidOperationException: Envelope Version 'EnvelopeNone
(http://schemas.microsoft.com/ws/2005/05/envelope/none)' does not support adding Message Headers.

Please help!


Custom Data Processing Extension doesn't show but should be registered correctly.



I have a custom data processing extension that i can't see to get to work. I followed the steps like in :http://msdn.microsoft.com/en-us/library/ms155086.aspx to register the extension. Yet the extension does not show up in the data source list.

It's an extension made for ssrs 2008 and I want to use it on a SSRS 2008R2 instance. I don't have any reasons to believe that I did not configure the extension correctly, it's the same as the article and and the same on my 2008 instance.

I am using Reporting Services standard edition 2008 R2 with cumulative fix patch 4 so that should support extensibility.

The data sources that I migrated from 2008 that still refer to the extension give a message saying that the extension is not registered or configured correctly. But i swear I did it right.

Any other extension that I use did register fine, none of them are DPE's though.


My config:


  <Extension Name="SecurityDataProce

Access report server database connection information from custom security extension



Is there any way from my custom security extension that I can get to and unencrypt the database connection information held within the RSReportServer.config file?



VS2010 Extension Manager won't open - error given. Please Help



I am getting this error when I try to open the Extension Manager from VS2010 Ultimate:

The specified path, file name, or both are too long. The fully qualified file name Microsoft Visual Studiomust be less than 260 characters, and the directory name must be less than 248 characters.

I had used the reset previously to correct it:

1 - Reset the skipped packages: From an elevated command-line prompt, run "devenv /ResetSkipPkgs" from under "\Program Files\Microsoft Visual Studio 10.0\Common7\IDE"

This no longer works for me. I also tried:

2 - Revert back to the general settings: From the Tools menu, go to "Import and Export Settings". Select "Reset settings". Make sure to backup your current settings if you have done any customization. Select "General Settings". Finish the wizard and see if the problem is resolved.

I cannot open my Extension Manager - Please Help. I really need to get this working.

thanks in advance!



The Decorator Pattern & Extension Methods

The decorator pattern provides a formal way to add new functionality to an existing type, without sub-classing. First question: What is wrong with classical inheritance? In and of itself, nothing is wrong with the good old Is-A relationship. It is very common to derive a new class from an existing base class in order to override a few virtual members, and add a pinch of new functionality.

The Decorator Pattern & Extension Methods

Numerous design patterns exist in the software world today, and ultimately nothing is preventing you from making your own (if people buy into it or not is another question). Furthermore, there is no 'master list' of patterns that all developers agree upon. While this is true, if you pick up any book on the subject, you will find a set of very common patterns most programmers agree are very useful. Many of these patterns were first formalized in the seminal book on the subject, Design Patterns: Elements of Reusable Object-Oriented Software (aka, the Gang of Four [GOF] book; not to be confused with the UK punk band of the same name).

Code spelling checker extension for visual studio 2010

Building a spelling checker for source code as an extension for visual studio 2010.

Custom Control Design-Time SiteMap Provider Error


Greetings - I was referred here by MSDN forums hope this is the right place -  

I have a custom control (:WebControl) that renders web.sitemap in a specific way. While it runs error free and produces the expected result, at Design-Time it complains

Error Creating Control - MyControl  The provider 'AspNetXmlSiteMapProvider' specified for the defaultProvider does not exist in the providers collection.

I have discovered that the error is cause by this line of code:

string div = string.Format("<div class='{0}' id='{1}'>{2}</div>", this.CssClass, this.ID.ToString(), EnumerateNodesRecursive(SiteMap.RootNode, level));

or more specifically, by the reference to SiteMap.RootNode - I am not clear what is missing thoough because I have configured the SiteMapProvider in web.config as this:

        <add name="AspNetXmlSiteMapProvider" 
             type="System.Web.XmlSiteMapProvider, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 

Custom Control Design view error



I have created a custom control from scratch and it works fine as in you can build the project that uses it and it works fine at runtime. Problem is when you go to design view the control shows an error in the place of where the control should be rendered.

Error: '<SomeValue>' Could not be set to '<SomeProperty>'

This shows up on all my custom set properties. These properties are created as basic as possible. I can give the properties values in Source view and run the app just fine. I can even add a Onclick event. If I don't set any custom properties the control will render fine in Design view. It's only when I set a value to a custom property.

Property Code Example:

public string Text
                string ret = "";
                object obj = ViewState["Text"];
                if (obj != null)
                    ret = obj.ToString();
                return ret;
                ViewState["Text"] = value;

I've even removed the Category and Description tags with no difference.

I don't know if what I said makes sens, but I hope it

Team System: Building a Visual Studio Team Explorer Extension


There's no magic behind how the TFS Power Tools were integrated with Team Explorer, and we'll show you how to expose your own custom features inside the Team Explorer window.

Brian A. Randell, Marcel de Vries

MSDN Magazine December 2009

Basic Instincts: Extension Methods


This column discusses one of the new features of Visual Basic 2008-Extension Methods. This powerful new feature was introduced to support LINQ. See what extension methods are, how to apply them yourself, and get some great usage tips.

Adrian Spotty Bowles

MSDN Magazine November 2007

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