WCF - Visual Studio won't generate SVC file

I have a very annoying problem that I think is related to certificates, although I'm not sure ...

I have two development machines - my new machine A and my old development machine B. I have a WCF project that is 100% identical for both.

However, when I try to publish with A, the required SVC file is not generated, but it is on B.

This is not a huge problem at the moment - I can just post via B, but this is very annoying.

Since the code for the two is completely identical, I think it is something about the environment on A, which is the problem.

I think most likely certificates.

We have the following in the App.config for the service:

      <serviceCredentials>
        <serviceCertificate findValue="*.ourcompany.dk" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="My"/>
        <userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="OurWebservice.UserNameValidator, OurWebservice"/>
      </serviceCredentials>

      

I added the certificate to my personal store on A and following the guide at http://msdn.microsoft.com/en-us/library/aa702621.aspx to make sure WCF can access it. Not yet joy.

I'm pretty much on my way here - I have no idea how to debug this! VS2010 doesn't even give me a warning when posting - it just doesn't create the SVC file ..!

Thanh in advance!

+3


source to share


1 answer


I had a similar problem but decided to add back

<host>
  <baseAddresses>
    <add baseAddress="http://localhost:8732/Design_Time_Addresses/servicename/" />
  </baseAddresses>
</host>

      



to my app.config

0


source







All Articles