Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...How to map routes in C# webforms project to ignore aspnet_membership requests when hosting WCF RESTfHow to map routes in C# webforms project to ignore aspnet_membership requests when hosting WCF RESTf
Previous
 
Next
New Post
7/15/2012 9:29 AM
 
Hi,

I am building on a dnn 6.0 C# webforms website using .NET 4.0.

I am hosting a WCF Restful service (without a svc file) within the application with the following settings in the Web.config.:
targetFramework="4.0"
aspNetCompatibilityEnabled = true 
runAllManagedModulesForAllRequests="true" 
<standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true"/>   
<validation validateIntegratedModeConfiguration="false"/>

The service methods are then invoked using the WebInvoke and WebGet annotations.

This setup works perfectly fine when running from within VS2010 and I am able to login to the site and also call the RESTful service methods.

But the exact same website in localhost environment using IIS 7(application pool - integrated .NET v4.0.30319) does not allow me to log into the website, but the service methods remain functional. The error message says 

"Endpoint not found. Please see the service help page for constructing valid requests to the service." and the details of my service methods are displayed. 

**This leads me to believe that for some reason the SQL membership call is trying to find its target method in my web service methods.**

So I tried routing only my particular request for the service methods in order to ignore the other requests as below, which was ineffective as well:

routes.Ignore("{resource}.axd/{*pathInfo}");

        System.Web.Routing.RouteTable.Routes.Add("/Register", new System.ServiceModel.Activation.ServiceRoute("", new System.ServiceModel.Activation.WebServiceHostFactory(), typeof(ServicesProject.Services)));
        System.Web.Routing.RouteTable.Routes.Add("/Person({id})", new System.ServiceModel.Activation.ServiceRoute("", new System.ServiceModel.Activation.WebServiceHostFactory(), typeof(ServicesProject.Services)));     

When I turn runAllManagedModulesForAllRequests="**false**" then I can log into the website but the web service methods turn dysfunctional.

Thus, I now want to detect the particular requests from aspnet_membership control in DNN so that I can explicitly add the URL to the list of "ignore routes" so that it does not try to look for the target method in the webservice methods.

Please point it out if there is a fundamental misunderstanding regarding the root cause of the problem.

Kindly clarify why there is a difference in the execution of the same application in VS2010 and IIS 7?

Please help me detect and aspnet_membership requests and add them to ignore routes list.

Any help will be deeply appreciated.

Thanks!


 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...How to map routes in C# webforms project to ignore aspnet_membership requests when hosting WCF RESTfHow to map routes in C# webforms project to ignore aspnet_membership requests when hosting WCF RESTf


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out