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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesWCF .svc file served as plain text in IIS7.5 .NET 4.0WCF .svc file served as plain text in IIS7.5 .NET 4.0
Previous
 
Next
New Post
12/17/2011 7:19 PM
 

I am deploying a WCF svc file to my live website for the first time and it is rendering/served up to the browser as plain text - you can see it here:

http://www.pokerdiy.com/desktopmodule...

It works fine on my dev environment on localhost.

The website is running on IIS 7.5.7600.16385 on Windows Server 2008 R2 Version 6.1 SP1 (64 bit) in anIntegrated Application pool with .NET 4.0 (I am using Entity Framework 4.2).

After a lot of RTFMing, The first thing I checked was the Handler Mappings as per the MS article: all the svc mappings are there (svc-integrated is at the top as per this article)

I also re-installed WCF as per this article with no difference. Using Fiddler I can see that the Content-Type is "text/html"

I am running URL Master and PageBlaster.

What else can I try?

Note: ASMX webservices, ASP.NET files etc. all work fine.

Other things I have tried: WCF in IIS 5.1 served as plain text file 404 when running .net 4 WCF service on IIS (no svc file)


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
12/21/2011 8:52 AM
 

Ok, after 2 days of debugging, it seems to be something to do with PageBlaster:

When I disable it in the web config, it works fine. How can I tell it not to process svc files?

Here is the message from Fiddler:

HTTP/1.1 200 OK

Cache-Control: public
Content-Type: text/html; charset=utf-8
Expires: Thu, 29 Mar 2012 13:50:40 GMT
Last-Modified: Sat, 17 Dec 2011 23:02:37 GMT
Server: Microsoft-IIS/7.5
X-Snapsis-PageBlaster: v:3.6.3;c:-;x:+;r:+
X-Powered-By: ASP.NET
Date: Wed, 21 Dec 2011 13:50:39 GMT
Content-Length: 159


<%@ ServiceHost Language="C#" Debug="true" Service="SmartThinker.DNN.Modules.Framework.FrameworkService" CodeBehind="FrameworkService.svc.cs" %>


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesWCF .svc file served as plain text in IIS7.5 .NET 4.0WCF .svc file served as plain text in IIS7.5 .NET 4.0


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