WCF with IIS Configuration

WCF with IIS Configuration

Old forum URL: forums.lhotka.net/forums/t/6566.aspx


CSLAer posted on Friday, March 06, 2009

I've created virtual directories for Rolodex Web (http://localhost/Rolodex) and WcfHostWeb (http://localhost/WcfHostWeb). Both have been configured to use local IIS,  instead of Visual Studio Development Server. I aslo change the address in ServiceReferences.ClientConfig to http://localhost/WcfHostWeb/WcfPortal.svc. Both are accessible from IE. But when I try to login, I got invalid login. If I change Visual Studio Development Server mode, it works perfectly. May I know if there is somewhere I did wrongly.

sergeyb replied on Friday, March 06, 2009

Check connection string to see if it using integrate security, if so you would have to either change it or give iis worker process rights to DB.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: CSLAer [mailto:cslanet@lhotka.net]
Sent: Friday, March 06, 2009 8:07 AM
To: Sergey Barskiy
Subject: [CSLA .NET] WCF with IIS Configuration

 

I've created virtual directories for Rolodex Web (http://localhost/Rolodex) and WcfHostWeb (http://localhost/WcfHostWeb). Both have been configured to use local IIS,  instead of Visual Studio Development Server. I aslo change the address in ServiceReferences.ClientConfig to http://localhost/WcfHostWeb/WcfPortal.svc. Both are accessible from IE. But when I try to login, I got invalid login. If I change Visual Studio Development Server mode, it works perfectly. May I know if there is somewhere I did wrongly.

CSLAer replied on Sunday, March 08, 2009

sergeyb:

Check connection string to see if it using integrate security, if so you would have to either change it or give iis worker process rights to DB.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

I'm not using integrate security. My PC is joined company domain. When I go to http://localhost/WcfHostWeb/WcfPortal.svc. It says "svcutil.exe http://company domain/WcfHostWeb/WcfPortal.svc?wsdl", instead of "svcutil.exe http://localhost/WcfHostWeb/WcfPortal.svc?wsdl". I'm not sure if this is the cause of the issue.

Copyright (c) Marimer LLC