asp.net - Hosting WCF web services on IIS - works in VS, but not in IIS -


I am very new to web programming stuff, so my question is basics, I am developing Silverlight applications and databases from it Need to reach. I am using SQL from LINQ to get data from the database and I am using a WFC web service to distribute in my app.

When I run my app in Visual Studio, then everything is working properly - When trying to publish a web service to the IIS - the web service call fails.

To simplify my question, I will focus on a brand new web service. Here are the steps I'm taking:

  1. Start Visual Studio 2008 -> File -> New -> Project -> Web -> WCF Service Application Name: MyWcfService

  2. Web Services "Service 1" as a result of Visual Studio "

  3. produces a sample project, rebuild, start with Visual Studio (on ASP.net) T development server) -> Everything works fine, I have a http: // localhost: 52489 / Service1.svc link

  4. under my View the service. I Visual Studio -> Right-click Project -> Publish -> Click on target location - Create a new web app called "MyWcfService" -> Publish

    P>

  5. Open IE on my PC Http: //localhost/MyWcfService/Service1.svc

The result is:

HTTP Error 404.3 - Pag Not Found If you are requesting the extension configuration can not be served because> if the page is a script, add a handler. If the file should be downloaded, add a MIME map.

I am trying to remove the "identities" section from web.config - the same problem does not help either by closing the firewall.

Can anyone help me? What am i doing wrong Maybe I'm missing something? WCF / WWF per program manager, Silverlight @ Microsoft:


There are two parts of the registration, one part is related to ASP.NET and the other part is related to WCF. ASP.NET part is that ASP.NET ISAPI should be a service extension for ISAs. The WCF part is that the HTTP handler should be a managed handler.

To set up two parts, Command 2.0 aspnet_regiis -i -enable "2.0 framework tool and" ServiceModelReg.exe -r "from 3.0 framework tool.

This one Managed handler "System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version = 3.0.0.0, Culture = Neutral, PublicKeyToken = b77a5c561934e089" and the resulting IIS in an ISAPI module for ".svc files"% SystemRoot% \ Microsoft.NET \ Framework \ v2.0.50727 \ aspnet_isapi.dll "In the IIS handler mapping, the managed handler should be above the ISAPI module for this task.

Together, two An HTTP pipeline starts in parts and as a result passes requests into WCF.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -