Per my msdn post: http://forums.microsoft.com/MSDN/ShowPost.aspx?
PostID=3700993&SiteID=1&mode=1


I'm trying to go through the book examples in VS2008.

I'm using Vista and IIs7.  When I try to run the chapter 1 ProductsService
as http://localhost/ProductsService/ProductService.svc I get a http 404
not found error.

This is using IIs connected as the login user with my password, not as
passthrough

However the 404 page does say "Logon Method: Anonymous"

"Logon User: Anonymous"



The IIs test connection wizard shows that authentication and authorization
are successful.



Per the book, I'm supposed to get a window saying:

"This is a Windows communications foundation service.



Metadata publishing for this service is currently disabled.





If I run the url autogenerated in the app.config :
http://localhost:8731/Design_Time_Addresses/ProductsService/ProductsService
Imp1/

I get a window saying "you have created a service.  To test this
service....blah blah





What am I doing wrong here???



The app.config is posted below.



Thanks,



Phil





<?xml version="1.0" encoding="utf-8"?>

<configuration>

<configSections>

<section name="dataConfiguration"
type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSett
ings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

</configSections>

<connectionStrings>

<add name="AdventureWorksConnection" connectionString="Data
Source=*****;Initial Catalog=AdventureWorks2008;Integrated Security=True"

providerName="System.Data.SqlClient" />

</connectionStrings>

<system.web>

<compilation debug="true" />

</system.web>

<!-- When deploying the service library project, the content of the config
file must be added to the host's

app.config file. System.Configuration does not support config files for
libraries. -->

<system.serviceModel>

<services>

<service name="Products.ProductsServiceImp1"
behaviorConfiguration="Products.ProductsServiceImp1Behavior">

<host>

<baseAddresses>

<add
baseAddress="http://localhost:8731/Design_Time_Addresses/ProductsService/Pr
oductsServiceImp1/" />

</baseAddresses>

</host>

<!-- Service Endpoints -->

<!-- Unless fully qualified, address is relative to base address supplied
above -->

<endpoint address="" binding="basicHttpBinding"
contract="Products.IProductService">

<!--

Upon deployment, the following identity element should be removed or
replaced to reflect the

identity under which the deployed service runs. If removed, WCF will infer
an appropriate identity

automatically.

-->

<identity>

<dns value="localhost" />

</identity>

</endpoint>

<!-- Metadata Endpoints -->

<!-- The Metadata Exchange endpoint is used by the service to describe
itself to clients. -->

<!-- This endpoint does not use a secure binding and should be secured or
removed before deployment -->

<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />

</service>

</services>

<behaviors>

<serviceBehaviors>

<behavior name="Products.ProductsServiceImp1Behavior">

<!-- To avoid disclosing metadata information,

set the value below to false and remove the metadata endpoint above before
deployment -->

<serviceMetadata httpGetEnabled="True" />

<!-- To receive exception details in faults for debugging purposes,

set the value below to true. Set to false before deployment

to avoid disclosing exception information -->

<serviceDebug includeExceptionDetailInFaults="False" />

</behavior>

</serviceBehaviors>

</behaviors>

</system.serviceModel>

</configuration>

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to