Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2007

Tip: Looking for answers? Try searching our database.

help host WCF in IIS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MR - 07 Nov 2007 21:01 GMT
I am trying to write my first WCF Service.  I am using VS2008 beta 2 on a
Vista Business machine

I have written and installed my service on the local IIS. I have defined a
service.svc file
when i try to access the service thru my browser i get the following error
response:

HTTP Error 404.3 - Not Found
Description: The page you are requesting cannot be served because of the
Multipurpose Internet Mail Extensions (MIME) map policy that is configured
on the Web server. The page you requested has a file name extension that is
not recognized, and is not allowed.

Error Code: 0x80070032

Notification: ExecuteRequestHandler

Module: StaticFileModule

Requested URL:
http://localhost:80/MSOMEAnalysisService/MSOMEAnalysisService.svc

Physical Path: D:\MSOMEAnalysisService\MSOMEAnalysisService.svc

Logon User: Anonymous

Logon Method: Anonymous

Handler: StaticFile

I figured because svc is not defined as a valid MIME extension. I added the
.svc extension as "application/octet-stream". now when i access the site i
the contents of the file are returned.

What do I need to do to get the service activated?

(I am using John Sharp's book WCF Step by Step as a tutorial. I think i
followed the example very closely but it doesn't mention the need to
configure the MIME)

thanks for your help
m
Renaud - 13 Nov 2007 15:20 GMT
I have exactly the same problem
Please help me :)

> I am trying to write my first WCF Service.  I am using VS2008 beta 2 on a
> Vista Business machine
[quoted text clipped - 39 lines]
> thanks for your help
> m
Marc Gravell - 13 Nov 2007 15:40 GMT
Some things to check:

IIS (sometimes doesn't configure itself correctly):
In the "Configuration..." option (Application Configuration) [for me
on the Virtual Directory tab], ensure that .svc is linked to
aspnet_isapi.dll, and does not have the "verify that file exists"
option checked.
On the ASP.NET tab, ensure that ASP.NET 2.0.blah is selected.

global web.config (doesn't get automatically updated if you have
customised the file prior to upgrade):
Ensure that there is a .svc entry in the buildProviders section,
linking to System.ServiceModel
Ensure that there is a .svc entry in the httpHandlers section, linking
to System.ServiceModel
Ensure that there is a ServiceModel entry in the httpModules
Ensure that System.IdentityModel and System.ServiceModel are in the
compilation assemblies
(for the last 3, the changes are a little tricky to describe - post
back if you need the gory details...)

Marc
Marc Gravell - 13 Nov 2007 15:43 GMT
Ah darnit, wrong IIS version - you might want to disregard, sorry...
Renaud - 13 Nov 2007 16:18 GMT
I've found the solution here
http://blogs.msdn.com/davidwaddleton/archive/2007/11/02/wcf-and-404-3-errors.aspx

> Ah darnit, wrong IIS version - you might want to disregard, sorry...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.