.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

Multiple net.tcp endpoints with different portnumbers on the same web site

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :WCF
I have multiple services that have to run under one website. Two of the services have a net.tcp endpoint. The addresses are formatted as follows: net.tcp://backend.ourcompany.com:9080/Product1/2010/09/Service1/Service1.svc net.tcp://backend.ourcompany.com:9081/Product1/2010/09/Service2/Service2.svc net.tcp://backend.ourcompany.com:9090/Product2/2010/09/Service2/Service2.svc Both services have their own Web.config. Currently both services have a different base address in their Web.config and a relative endpoint address. Everything worked ok with just the fist service installed, after installing the second I keep getting this error: 'This collection already contains an address with scheme net.tcp.  There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'.' Since the multipleSiteBindingsEnabled is only for http (why?) I tried getting it to work with the baseAddressPrefixFilters but I don't really understand how that would help me in my case. Is it possible what I'm trying to do here? Otherwise this would be a big fail of IIS, in a self-hosted environment I'm doing the same thing for years. I now want to migrate my ex

View Complete Post

More Related Resource Links

CAML query to access List data across multiple site collection.

Hi   Is there any way to get the Task List data across multiple site collection using CAML query. Currently, I have the code which will retrieve the data from a single site collection. Below is the code.                           /***************************************************I am using Moss2007.Thanks!Ravi             SPSiteDataQuery q = new SPSiteDataQuery();             q.ViewFields = "<FieldRef Name=\"Title\" />" "<FieldRef Name=\"Status\" Nullable=\"TRUE\"/>";             q.Lists = "<Lists ServerTemplate=\"107\"/>";             q.Webs = "<Webs Scope=\"SiteCollection\"/>";             q.Query = "<Where>" +                                "<Eq>" +                                     "<FieldRef Name=\"Status\" />" + "<Value Type=\"Choice\">Not  Started</Value>" +                                     "</Eq>" +                         "</Where>";             DataTable dt=null;             using (SPSite s = new SPSite("http://banglabguest1:31000/"))             {                 SPWeb w = s.OpenWeb();                 dt = w.GetSiteData(q);                 w = null;             }                              *************************

Using a List View web part to display documents from multiple document libraries from different site

Hi there, I am trying to have one web part display documents (or list items) from different document libraries (or different lists) from different site collections. I have achieved this under a single site collection using Data View Web Part (using SPD). I have also achieved displaying a single document library (or a list) from a different site collection by using List View Web Part. but I am not sure how to get my head around displaying documents or list items from different document libraries or lists across site collections. I have thought of using SPSiteDataQuery or ListViewByQuery, but they all seem to focus one site collection at a time. If any of you have done this before, please share your best practice on this one with me. Much appreciated. Clark

Multiple endpoints in IIS

I am trying to setup my WCF service in IIS. I definately need to have the rest-ful service enabled using the webHttpBehavior and webHttp behavior. In addition, I want to keep the basicHttpBinding.   When I try this I get the following exception message:   A binding instance has already been associated to listen URI 'http://saslaptop/BE/Application.svc'. If two endpoints want to share the same ListenUri, they must also share the same binding object instance. The two conflicting endpoints were either specified in AddServiceEndpoint() calls, in a config file, or a combination of AddServiceEndpoint() and config.   Should this be possible?   Code Block <system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="WebHttpBehavior"> <webHttp/> </behavior> </endpointBehaviors> </behaviors> <services> <service name="Application.Webservices.ApplicationService"> <endpoint behaviorConfiguration="WebHttpBehavior" binding="webHttpBinding" contract="Application.Webservices.IApplicationService"/> <endpoint binding="basicHttpBinding" contract="Application.Webservices.IApplicationService"/> </service> <service name="Application.Webservices.TypeAhead"> <endpoint behaviorConfiguration="WebHttpBehavior" bindin

searching across multiple site collections?

Say we plan to have a site collection at the root and want user in that site collection to be able to search across multiple site collections in the same web application? Is this possible?

thanks for any help or information.

Search across multiple site collections


I am working on a MOSS 2007 farm and like to know what would be a best way to setup Search so that I can search across multiple Site Collections? Basically, our SharePoint farm use to have only one site collection with lots of subsites. We reorganized and  promoted a lot of those subsites to site collections. After the promotion, I noticed that on each of the new site collection under the search dropdown, the only search scope that was available was “This Site”. I was able to fix this by changing search settings and creating a custom scope by providing the link to the Search Center site that had already existed in the root site collection. However, when I try to search from any site collection using the "All Sites" search scope, no results are displayed and I get a blank page. Any idea what I might be doing wrong? Thanks in advance for your help.

pushing out changes to multiple site collections


Hi Does anybody know a quick and easy way to push out changes to multiple site collections particularly mysites.

I have a new control I need to add on all mysites and have around 80 mysites so dont really fancy going through these one by one adding the new controls.

Hope you can help

Best practice for WCF service exposing multiple client-specific endpoints?


Moving forward with re-designing a web service architecture using WCF, our team has been discussing how we want to expose the endpoints. Example: I have a standard endpoint that all users could use with the proper token, but I also have some number of endpoints that will instead use certificate security. All endpoints will ultimately use the same implementation, so this is really just different ways of getting in to the system.

The certificate endpoints will have to point to a specific certificate in the store so will only work for one specific client. The thought is that our standard service could live at http://mysite.com/MyService.svc and the certificate endpoints would be something like http://mysite.com/MyService.svc/Acme. The concern here is that I'm effectively putting our client list into our WSDL, which is not desirable.

What's the best practice here? Is there a way to direct multiple clients through a single certificate endpoint and get the cert on the code side (how would we know which client we're dealing with without a sp

Configuration for STS with multiple endpoints


Hello all

I'm trying to configure an STS to have 2 endpoints. First endpoint accepts username client credentials and the second accepts the issued token as client credentials. So my client uses username and password to get a token, and when the token is about to expire I want to renew the token

I'm able to use the first endpoint but the second fails with error: Cannot find a token authenticator for the 'System.IdentityModel.Tokens.SamlSecurityToken' token type. Tokens of that type cannot be accepted according to current security settings.

I've tried to add custom service credentials but the are never hooked up.  

Multiple Approval Not Working using Site Content and Structure


Hi all

I have two dummy users. I have given one user contribute permissions and the other as approve permissions. I have enabled content approval on my document libraries, pages library etc. I have created a few pages,documents etc  using the dummy user having contribute permissions. Now using Site Content and Structure's pending approval section i am unable to approve these docs using the second dummy user having Approve permissons.

When logged in as dummy user 2 (having approve permissons) I am able to see all the documents requiring my approval in the pending approval section of Site Content and Structure. But when i check all the check boxes and click on approve its not getting approved. The page refreshes but the items still remain in the pending approval section without any change.

Please Help...

Varun Saxena

Exposing service with multiple endpoints


I have a service hosted as Windows Service. Now I want to make the same service availble via basicHttpBinding, wsHttpBinding.
So, I modified the my app.config as below using Microsoft Configuration editor. The WCF Service is already running on server (as Windows Service)

Note: The code (config) inside comments (below) is actual and the code inside "<!-- Newly .." is added later using config editor.
<!-- ORIGINAL -->
<!-- END - ORIGINAL -->

1. What I need to have in "baseAddresses" section for newly added endpoints (basicHttpBinding, wsHttpBinding)
2. Is newly added configuration correct?
3. Other than adding basicHttpBinding and wsHttpBinding, is there anything else that I need to do on "server"?

<?xml version="1.0" encoding="utf-8"?>
        <!-- ORIGINAL -->
        <behavior name="FirstServiceBehavior">
          <serviceMetadata httpGetEnabled="false" />
          <serviceDebug includeExceptionDetailInFaults="true" />

Feature Stappling -Stappling multiple site features



In SPsite definition,I have created one feature which activates when site is created.

Now i need to create second feature which should be activated after the first feature is activated


but I got the error

Dependency feature with id d43678b9-c58e-4902-9fd9-b9ced3f45049 for feature 'XSite' (id: 07a8588d-cfb5-46bd-a315-6fa80e31aaa6) is not installed. 

where dependancies are specied in  feature.xml  of 'XSite'


Multiple Sharepoint site design


Hello All,

My company uses standard license MOSS2007 in our corporate network. There is another network “production” that corporate users do not have access to.

I would like to create an additional site in production network using my existing standard license. The purpose if this is to limit corporate users access or even to see the site.


Is that possible? I don’t have a deep knowledge of a SharePoint so forgive my lingo and please provide details when responding.




Support Multiple Site Bindings: multipleSiteBindingsEnabled

According to post "Hosting Enhancements in .NET4 and Windows Server AppFabric" (http://blogs.msdn.com/endpoint/archive/2009/12/08/hosting-enhancements-in-net4-and-windows-server-appfabric.aspx) WCF 4.0 supports multiple site bindings.
But when I added <serviceHostingEnvironment multipleSiteBindingsEnabled="true"> I got the following error: "Parser Error Message: Unrecognized attribute 'multipleSiteBindingsEnabled'. Note that attribute names are case-sensitive."
Enviroment: .Net Framework 4.0 Beta 2

Discovery on IIS hosted WCF service no endpoints found untill site is visited


I have a problem which makes the whole discovery (.net 4) idea useless.
I got self-hosted wcf services with discovey working so I now at least something about it, however, when I create a website with a .svc file, configure the web.config well and host it in IIS something goes wrong.

I have my windows forms client program to test the discovery and it doesn't return any endpoints, not after iisreset, not after checking twice, tree-times with long timeouts. I have to manually "visit" my .svc file in the website by browser to kind of activate it and than my client recogizes it immediately.

Because you have to visit the service first, you already have to know what the url is and makes discovery pointless in this case (and I need it so much)

What can I do about this?

Is a Site that contains multiple Lists where the list should be able to create an InfoPath Form(form


I guess what I'm asking is, is this possible?

I have a System that I'm trying to implement in SharePoint. It basically is a Site that contains multiple Lists. The list should be able to create an InfoPath Form(form1). Then I need to create multiple InfoPath forms(form2) that is basically a sub-form of form1. Form2 will have its own List containing only form2's that relate to form1. Then create sub-form(form3) to form2.

Using a combination of InfoPath and SharePoint is this possible?

Multiple database support with Entity Framework

One of the features introduced in Entity Framework is being database independent. Which mean each database provider can support Entity Framework by implementing its provider.

This feature allows you build applications independent from the underplaying database provider. In this post I'm going to show how to build an application that support multiple databases using same conceptual model made by Entity Framework.

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor
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