Can't Run Rolodex sample

Can't Run Rolodex sample

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


tkd posted on Friday, October 24, 2008

I'm trying to run the Rolodex example in Silverlight. I've got everything compiling and I can run the browser and see the logon page. But none of the logins work. It keesp reporting invalid logon. I think its something to do with the database connection.

I've got into the properties sheet for WCFHostWeb and on the Settings tab I've changed the  connection string tp point to where I have the mdf file. The Test Connection works ok. At this point I should just build the project and then run Rolodex in the browser shouldn't I?  Is the WCFHostWeb cached or something? Its either not seeing the changes I made or the changes are still somehow wrong. But the error message doesn't show the actual problem. Its just an invalid logon :-(

 

sergeyb replied on Friday, October 24, 2008

Make sure you start up project is Web.  Make sure your connection string is OK.  If all that checks out, run with option to break on all exception to see what the error is.  Please let me know if this still does not work.

 

Thanks.

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

Magenic ®

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

 

From: tkd [mailto:cslanet@lhotka.net]
Sent: Friday, October 24, 2008 8:45 PM
To: Sergey Barskiy
Subject: [CSLA .NET] Can't Run Rolodex sample

 

I'm trying to run the Rolodex example in Silverlight. I've got everything compiling and I can run the browser and see the logon page. But none of the logins work. It keesp reporting invalid logon. I think its something to do with the database connection.

I've got into the properties sheet for WCFHostWeb and on the Settings tab I've changed the  connection string tp point to where I have the mdf file. The Test Connection works ok. At this point I should just build the project and then run Rolodex in the browser shouldn't I?  Is the WCFHostWeb cached or something? Its either not seeing the changes I made or the changes are still somehow wrong. But the error message doesn't show the actual problem. Its just an invalid logon :-(

 



tkd replied on Friday, October 24, 2008

That was fast. I was just getting back into ask how to debug these things (I'm new to .NET and to CSLA :-) ).

So in Startup Optiosn for the solution I changed it to Web. I then pressed F5 to run the project. Seems to work ok as far as debugging is concerned. So thats a start.

Doesn't seem to be a database issue. Its actually getting an error in Reference.cs:

public Csla.WcfPortal.WcfResponse EndFetch(System.IAsyncResult result) {

object[] _args = new object[0];

Csla.WcfPortal.WcfResponse _result = ((Csla.WcfPortal.WcfResponse)(base.EndInvoke("Fetch", _args, result)));

return _result;

}

It can't make a request to URI http://localhost:2430/WcfPortal.svc

I gather this is the setting in ServiceReferences.ClientConfig and needs to be changed to include the virtual folder I created in IIS. In my case:

http://localhost:2430/rolodexwcfhostweb/WcfPortal.svc

But it still can't access it :-(

 

 

 

sergeyb replied on Saturday, October 25, 2008

You should not need to change that.  Url should be correct.

Add the following to your web.config to wcf host web project.  Run the app again.  Then open c:\Traces.svclog and look for error – they will be in red.

 

<system.diagnostics>
        <sources>
            <source name="System.ServiceModel"
                    switchValue="Information, ActivityTracing"
                    propagateActivity="true">
                <listeners>
                    <add name="traceListener"
                        type="System.Diagnostics.XmlWriterTraceListener"
                        initializeData= "c:\Traces.svclog" />
                </listeners>
            </source>
        </sources>
    </system.diagnostics>

 

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Friday, October 24, 2008 9:28 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: Can't Run Rolodex sample

 

That was fast. I was just getting back into ask how to debug these things (I'm new to .NET and to CSLA :-) ).

So in Startup Optiosn for the solution I changed it to Web. I then pressed F5 to run the project. Seems to work ok as far as debugging is concerned. So thats a start.

Doesn't seem to be a database issue. Its actually getting an error in Reference.cs:

public Csla.WcfPortal.WcfResponse EndFetch(System.IAsyncResult result) {

object[] _args = new object[0];

Csla.WcfPortal.WcfResponse _result = ((Csla.WcfPortal.WcfResponse)(base.EndInvoke("Fetch", _args, result)));

return _result;

}

It can't make a request to URI http://localhost:2430/WcfPortal.svc

I gather this is the setting in ServiceReferences.ClientConfig and needs to be changed to include the virtual folder I created in IIS. In my case:

http://localhost:2430/rolodexwcfhostweb/WcfPortal.svc

But it still can't access it :-(

 

 

 



tkd replied on Saturday, October 25, 2008

Is it really supposed to be this hard?

No traces file is created. If I include this in the WCFHostWeb project then why would the error show in it anyway? The error is coming from the client, not being able to find the service to connect to.

This is the error message in full:

****************

An error occurred while trying to make a request to URI 'http://localhost:2430/WcfPortal.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details.

****************

I deleted the sample source I had since I had stuffed around with settings and such and recreated the samples dir from the zip file. The only change I have made is to set the Web project as the Startup Project. Still get the same error :-(

Do I need to set up anything in IIS like virtual directories or something? Whats the cross-domain part about? Its on localhost so their should be no domain issues should there?

 

 

So if I simply compile up my apps.

sergeyb replied on Sunday, October 26, 2008

Pretty much all the errors on server are reported as 404 errors on the client.  This behavior is by design (according to Microsoft).  The only thing you should need to change is connection string in wcf web.config.  If you have SQL Express running, you only need to change a path to database. You can also try to just type http://localhost:2430/WcfPortal.svc into IE to see if this page comes up without errors, and I think it will.  Cross domain access is already setup in the solution.

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Saturday, October 25, 2008 9:57 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: Can't Run Rolodex sample

 

Is it really supposed to be this hard?

No traces file is created. If I include this in the WCFHostWeb project then why would the error show in it anyway? The error is coming from the client, not being able to find the service to connect to.

This is the error message in full:

****************

An error occurred while trying to make a request to URI 'http://localhost:2430/WcfPortal.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details.

****************

I deleted the sample source I had since I had stuffed around with settings and such and recreated the samples dir from the zip file. The only change I have made is to set the Web project as the Startup Project. Still get the same error :-(

Do I need to set up anything in IIS like virtual directories or something? Whats the cross-domain part about? Its on localhost so their should be no domain issues should there?

 

 

So if I simply compile up my apps.



tkd replied on Sunday, October 26, 2008

If I try http://localhost:2430/WcfPortal.svc in IE, I get an error about not finding the website. Which is consistent with the error the client is getting.

Is 'Web' is the only startup project for the solution?

How does 'Web' find wcfhostweb and launch it? There doesn'tseem to be a reference to wcfhostweb in the Web project.

 

Is there a minimum IIS requirement? I'm using IIS5.1 on an XP SP2 box.

sergeyb replied on Monday, October 27, 2008

Yes, web is the only startup project in the solution.  WcfHostWeb is its own site, and not tied to Web in any way.  SL application has a reference to it in its ServiceReference.ClientConfig file.  Mae sure WcfHostWeb is launched and running on port 2430

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Sunday, October 26, 2008 5:05 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: Can't Run Rolodex sample

 

If I try http://localhost:2430/WcfPortal.svc in IE, I get an error about not finding the website. Which is consistent with the error the client is getting.

Is 'Web' is the only startup project for the solution?

How does 'Web' find wcfhostweb and launch it? There doesn'tseem to be a reference to wcfhostweb in the Web project.



tkd replied on Monday, October 27, 2008

Yes Roldex.ServiceRefrences.ClientConfig is set to 2430.

 

When the program starts up, the ASP.NET Developr is showing that its http://location:3877/  Actually it seems to be a random port each time its run. That must be OK because the Rolodex app itsefl does display the actual logon screen. Its just when it goes to verify the identify over the wcfportal that there is a problem. What actually starts up the wcf side of things? And what tells it to listen on port 2430. Doing a search through the rest of the solution there doesn't seem to be anythingelse set to use 2430.

Does the rolodex sample need to be in a very specific directory or something? Something is definitely not right :-(

sergeyb replied on Monday, October 27, 2008

Check properties of wcf host web application.  This is where port is specified.  The same port should be set in ServiceReferences.ClientConfig in SL application.  If they match, then the app should connect.

 

Thanks.

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Monday, October 27, 2008 10:56 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: Can't Run Rolodex sample

 

Yes Roldex.ServiceRefrences.ClientConfig is set to 2430.

 

When the program starts up, the ASP.NET Developr is showing that its http://location:3877/  Actually it seems to be a random port each time its run. That must be OK because the Rolodex app itsefl does display the actual logon screen. Its just when it goes to connect to the wcfhostweb that its not gettign a connection. What actually starts up wcfhostweb to listen on port 2430?

 

 



tkd replied on Monday, October 27, 2008

I take it this is the Web tab in the Properties for WcfHostWeb. Its 2430. Still not starting up.

On that tab, the Start Action is Current Page

Its using the Visual Studio Development Server and has a specific port of 2430 and Virtual Path of /

Given we didn't get anything from the traces log to show the wcfhostweb is even being loaded. what is the process that is supposed to load it?

 

Could it be the version of IIS?

Could it be the version of silverlight. Believe I am on the RTW version though.

 

sergeyb replied on Monday, October 27, 2008

Just running the solution will start up the web site.  You should see dev server running on port 2430 in the system tray.  If you see that, then try to paste in the address form ServiceReference.CLientConfig inti IE (such as http://localhost:2430/......svc).  This page should come up If everything is setup propertly.

Try this and see what happens.

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Monday, October 27, 2008 11:12 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

I take it this is the Web tab in the Properties for WcfHostWeb. Its 2430. Still not starting up.

On that tab, the Start Action is Current Page

Its using the Visual Studio Development Server and has a specific port of 2430 and Virtual Path of /

 

Given we didn't get anything from the traces log to show the wcfhostweb is even being loaded. what is the process that is supposed to load it?

 



tkd replied on Monday, October 27, 2008

So in the properties for the Web and WcfHostWeb, the Port used should be the same? I've set them both to be 2430. Previously it was 2430 for Wcfhostweb and 3150 (actually its autoassigned) for the Web.

If I try http://localhost:2430/wcfportal.svc I get an error saying the resource cannot be found.

If I try http://localhost:3150/wcfportal.svc I get a website unavailable error.

Now when I try to logon, the error I get is:

The remote server returned an error: NotFound

Is there any possibility this is an error in relation to the latest beta version? Surely other people have run this sample before? I was expecting an error because of the database path, but this seems to pretty basic problem I'm having here. I really needed to get started on this CSLA project and now I am days behind. :-(

 

KingTuck68 replied on Monday, October 27, 2008

In my case, the problem was that running http://localhost:2430/wcfportal.svc was generating an error about not being able to resolve Csla.Server.Hosts.Silverlight.WcfPortal. Doing some snooping around, I found that I was referencing the wrong 3.6 version of CSLA. Pointing the WCFHostWeb project to the CSLACS\bin\Debug version of the DLL caused everything to work correctly.

Thanks guys for an great release. I'm really looking forward to using this with Silverlight!

tkd replied on Monday, October 27, 2008

KingTuck68:
In my case, the problem was that running http://localhost:2430/wcfportal.svc was generating an error about not being able to resolve Csla.Server.Hosts.Silverlight.WcfPortal. Doing some snooping around, I found that I was referencing the wrong 3.6 version of CSLA. Pointing the WCFHostWeb project to the CSLACS\bin\Debug version of the DLL caused everything to work correctly.

Thanks guys for an great release. I'm really looking forward to using this with Silverlight!

In my case, I'm not getting to a resolve error. its just straight not out finding it.

I'm hoping its a great release! This is my first time trying to use CSLA and its not leaving a favourable impression so far. I persist only because their are others running these Silverlight samples successfully, so it must be something at my end. So I'm hoping once I get this issue resolved, that I can see just how good it is.

tkd replied on Tuesday, October 28, 2008

Help....Is everyone at PDC? :-)

sergeyb replied on Wednesday, October 29, 2008

My recommendation is to try to get just one project working.  Here are key setup points to start with

1.       Port numbers must be the same between projects

a.       Port number that WCF service web site runs on must be the same as port number in ServiceReferences.ClientConfig.

2.       Start up project must be correct – it should always be the web site that hosts SL application

3.       Version of CSLA referenced by all projects must be correct.

4.       Verify services by running them in browser – past address from ServiceReferences.ClientConfig.

5.       Last resort – use debugging trick from earlier in the thread to capture wcf calls and look for errors.

 

If you pick one project, follow the instructions but it still does not run, please post ServiceReferences.ClientConfig and web.config files from all projects and errors you get from step 4

 

Thank you.

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Tuesday, October 28, 2008 8:09 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: Can't Run Rolodex sample

 

Help....Is everyone at PDC? :-)

tkd replied on Wednesday, October 29, 2008

OK. I am looking at the Rolodex solution. Still no luck with it. It seems to be that Web is simply not loading WCFHostWeb at all.

1a.

I am looking at the ServiceReferences.ClientConfig and it has this endpoint:

http://localhost:2430/WcfPortal.svc

The only other reference I could find was in the Properties of WcfHostWeb on the Web tab. Specific Port 2430, Virtual Path /

2.   Yes it is. I get a browser page with the logon page displayed. So it is being served up a page, so I would assume this part is OK.

3. Looking at the projects in the solution:

Rolodex   - CSLA.NET for Silverlight. Runtime v2.0.50727 Version 3.6.0.0

Rolodex.Business.Client  - CSLA.NET  for Silverlight. Runtime v2.0.50727 Version 3.6.0.0

Rolodex.Business.Server - CSLA.NET Framework. Runtime v2.0.50727 Version 3.6.0.0

Web - Not used

4. Does not find http://localhost:2430/WcfPortal.svc. It simply isn't loading. http://localhost:3839/ connects to the Web part ok to download the initial page.

5. No trace file is generated.

*******************************************

ServiceReferences.ClientConfig:

<configuration>
<system.serviceModel>
<
bindings>
<
basicHttpBinding>
<
binding name="BasicHttpBinding_IWcfPortal" maxBufferSize="10000000" maxReceivedMessageSize="10000000" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00">
</
binding>
</
basicHttpBinding>
</
bindings>
<
client>
<
endpoint address="http://localhost:2430/WcfPortal.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IWcfPortal" contract="Csla.WcfPortal.IWcfPortal" name="BasicHttpBinding_IWcfPortal" />
</
client>
</
system.serviceModel>
</
configuration>

**********************************

wcfhostweb web.config:

<?xml version="1.0"?>
<
configuration>
<
configSections>
<
sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<
section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</
sectionGroup>
</
sectionGroup>
</
sectionGroup>
</
configSections>
<
appSettings/>
<
connectionStrings>
<
add name="WcfHostWeb.Properties.Settings.RollodexConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=&quot;C:\Visual Studio Projects\csla\samples\trunk\CslaLight\cs\Rolodex\Database\Rolodex.mdf&quot;;Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient" />
</connectionStrings>
<
system.web>

<!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only  during development.
-->
<compilation debug="true">
<
assemblies>
<
add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</
assemblies>
</
compilation>

<!--
The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<
pages>
<
controls>
<
add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
controls>
</
pages>
<
httpHandlers>
<
remove verb="*" path="*.asmx"/>
<
add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</
httpHandlers>
<
httpModules>
<
add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
httpModules>
</
system.web>
<
system.codedom>
<
compilers>
<
compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<
providerOption name="CompilerVersion" value="v3.5"/>
<
providerOption name="WarnAsError" value="false"/>
</
compiler>
</
compilers>
</
system.codedom>

<!-- The system.webServer section is required for running ASP.NET AJAX under Internet Information Services 7.0. It is not necessary for previous version of IIS.

-->

<system.webServer>
<
validation validateIntegratedModeConfiguration="false"/>
<
modules>
<
remove name="ScriptModule"/>
<
add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
modules>
<
handlers>
<
remove name="WebServiceHandlerFactory-Integrated"/>
<
remove name="ScriptHandlerFactory"/>
<
remove name="ScriptHandlerFactoryAppServices"/>
<
remove name="ScriptResource"/>
<
add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
handlers>
</
system.webServer>
<
runtime>
<
assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<
dependentAssembly>
<
assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<
bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</
dependentAssembly>
<
dependentAssembly>
<
assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<
bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</
dependentAssembly>
</
assemblyBinding>
</
runtime>
<
system.serviceModel>
<
behaviors>
<
serviceBehaviors>
<
behavior name="WcfPortalBehavior">
<
serviceMetadata httpGetEnabled="true"/>
<
serviceDebug includeExceptionDetailInFaults="true"/>
</
behavior>
</
serviceBehaviors>
</
behaviors>
<
bindings>
<basicHttpBinding>
<
binding name="BasicHttpBinding_IWcfPortal" maxBufferSize="10000000" maxReceivedMessageSize="10000000" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00">
<
readerQuotas maxBytesPerRead="10000000" maxArrayLength="10000000" maxStringContentLength="10000000"/>
</
binding>
</
basicHttpBinding>
</
bindings>
<
services>
<
service behaviorConfiguration="WcfPortalBehavior" name="Csla.Server.Hosts.Silverlight.WcfPortal">
<
endpoint address="" binding="basicHttpBinding" contract="Csla.Server.Hosts.Silverlight.IWcfPortal" bindingConfiguration="BasicHttpBinding_IWcfPortal">
<
identity>
<
dns value="localhost"/>
</
identity>
</
endpoint>
</
service>
</
services>
</
system.serviceModel>
<
system.diagnostics>
<
sources>
<
source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<
listeners>
<
add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData= "c:\Traces.svclog" />
</
listeners>
</
source>
</
sources>
</
system.diagnostics>
</
configuration>

**************************************
Web web.config

<?xml version="1.0"?>
<
configuration>
<
configSections>
<
sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<
section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</
sectionGroup>
</
sectionGroup>
</
sectionGroup>
</
configSections>
<
appSettings/>
<
connectionStrings/>
<
system.web>

<!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development.
-->
<
compilation debug="true">
<
assemblies>
<
add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</
assemblies>
</
compilation>

<!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. -->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace.<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->

<pages>
<
controls>
<
add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
controls>
</
pages>
<
httpHandlers>
<
remove verb="*" path="*.asmx"/>
<
add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</
httpHandlers>
<
httpModules>
<
add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
httpModules>
</
system.web>
<
system.codedom>
<
compilers>
<
compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<
providerOption name="CompilerVersion" value="v3.5"/>
<
providerOption name="WarnAsError" value="false"/>
</
compiler>
</
compilers>
</
system.codedom>

<!-- The system.webServer section is required for running ASP.NET AJAX under Internet Information Services 7.0. It is not necessary for previous version of IIS. -->

<system.webServer>
<
validation validateIntegratedModeConfiguration="false"/>
<
modules>
<
remove name="ScriptModule"/>
<
add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
modules>
<
handlers>
<
remove name="WebServiceHandlerFactory-Integrated"/>
<
remove name="ScriptHandlerFactory"/>
<
remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<
add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
handlers>
</
system.webServer>
<
system.diagnostics>
<
sources>
<
source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<
listeners>
<
add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData= "c:\TracesWeb.svclog" /></listeners>
</
source>
</
sources>
</
system.diagnostics>
<
runtime>
<
assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<
dependentAssembly>
<
assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<
bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</
dependentAssembly>
<
dependentAssembly>
<
assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<
bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</
dependentAssembly>
</
assemblyBinding>
</
runtime>
</
configuration>

sergeyb replied on Wednesday, October 29, 2008

The problem seems to be wcf portal based on the fact that http://localhost:2430/WcfPortal.svc does not come up in browser.  Could you check the properties of wcf web application to make sure it is setup to start on port 2430?  You can also look at the system tray and see what ports are used – you should have two instances of Cassini running – web host for SL app and WCF host for wcf service.

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Wednesday, October 29, 2008 10:17 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: Can't Run Rolodex sample

 

OK. I am looking at the Rolodex solution. Still no luck with it. It seems to be that Web is simply not loading WCFHostWeb at all.

1a.

I am looking at the ServiceReferences.ClientConfig and it has this endpoint:

http://localhost:2430/WcfPortal.svc

The only other reference I could find was in the Properties of WcfHostWeb on the Web tab. Specific Port 2430, Virtual Path /

2.   Yes it is. I get a browser page with the logon page displayed. So it is being served up a page, so I would assume this part is OK.

3. Looking at the projects in the solution:

Rolodex   - CSLA.NET for Silverlight. Runtime v2.0.50727 Version 3.6.0.0

Rolodex.Business.Client  - CSLA.NET  for Silverlight. Runtime v2.0.50727 Version 3.6.0.0

Rolodex.Business.Server - CSLA.NET Framework. Runtime v2.0.50727 Version 3.6.0.0

Web - Not used

4. Does not find http://localhost:2430/WcfPortal.svc. It simply isn't loading. http://localhost:3839/ connects to the Web part ok to download the initial page.

5. No trace file is generated.

*******************************************

ServiceReferences.ClientConfig:

<configuration>
<
system.serviceModel>
<
bindings>
<
basicHttpBinding>
<
binding name="BasicHttpBinding_IWcfPortal" maxBufferSize="10000000" maxReceivedMessageSize="10000000" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00">
</
binding>
</
basicHttpBinding>
</
bindings>
<
client>
<
endpoint address="http://localhost:2430/WcfPortal.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IWcfPortal" contract="Csla.WcfPortal.IWcfPortal" name="BasicHttpBinding_IWcfPortal" />
</
client>
</
system.serviceModel>
</
configuration>

**********************************

wcfhostweb web.config:

<?xml version="1.0"?>
<
configuration>
<
configSections>
<
sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<
section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</
sectionGroup>
</
sectionGroup>
</
sectionGroup>
</
configSections>
<
appSettings/>
<
connectionStrings>
<
add name="WcfHostWeb.Properties.Settings.RollodexConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=&quot;C:\Visual Studio Projects\csla\samples\trunk\CslaLight\cs\Rolodex\Database\Rolodex.mdf&quot;;Integrated Security=True;Connect Timeout=30;User Instance=True" providerName="System.Data.SqlClient" />
</
connectionStrings>
<
system.web>

<!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only  during development.
-->
<
compilation debug="true">
<
assemblies>
<
add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</
assemblies>
</
compilation>

<!--
The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user.
-->
<
authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<
pages>
<
controls>
<
add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
controls>
</
pages>
<
httpHandlers>
<
remove verb="*" path="*.asmx"/>
<
add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</
httpHandlers>
<
httpModules>
<
add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
httpModules>
</
system.web>
<
system.codedom>
<
compilers>
<
compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<
providerOption name="CompilerVersion" value="v3.5"/>
<
providerOption name="WarnAsError" value="false"/>
</
compiler>
</
compilers>
</
system.codedom>

<!-- The system.webServer section is required for running ASP.NET AJAX under Internet Information Services 7.0. It is not necessary for previous version of IIS.

-->

<system.webServer>
<
validation validateIntegratedModeConfiguration="false"/>
<
modules>
<
remove name="ScriptModule"/>
<
add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
modules>
<
handlers>
<
remove name="WebServiceHandlerFactory-Integrated"/>
<
remove name="ScriptHandlerFactory"/>
<
remove name="ScriptHandlerFactoryAppServices"/>
<
remove name="ScriptResource"/>
<
add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
handlers>
</
system.webServer>
<
runtime>
<
assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<
dependentAssembly>
<
assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<
bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</
dependentAssembly>
<
dependentAssembly>
<
assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<
bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</
dependentAssembly>
</
assemblyBinding>
</
runtime>
<
system.serviceModel>
<
behaviors>
<
serviceBehaviors>
<
behavior name="WcfPortalBehavior">
<
serviceMetadata httpGetEnabled="true"/>
<
serviceDebug includeExceptionDetailInFaults="true"/>
</
behavior>
</
serviceBehaviors>
</
behaviors>
<
bindings>
<
basicHttpBinding>
<
binding name="BasicHttpBinding_IWcfPortal" maxBufferSize="10000000" maxReceivedMessageSize="10000000" receiveTimeout="00:10:00" sendTimeout="00:10:00" openTimeout="00:10:00" closeTimeout="00:10:00">
<
readerQuotas maxBytesPerRead="10000000" maxArrayLength="10000000" maxStringContentLength="10000000"/>
</
binding>
</
basicHttpBinding>
</
bindings>
<
services>
<
service behaviorConfiguration="WcfPortalBehavior" name="Csla.Server.Hosts.Silverlight.WcfPortal">
<
endpoint address="" binding="basicHttpBinding" contract="Csla.Server.Hosts.Silverlight.IWcfPortal" bindingConfiguration="BasicHttpBinding_IWcfPortal">
<
identity>
<
dns value="localhost"/>
</
identity>
</
endpoint>
</
service>
</
services>
</
system.serviceModel>
<
system.diagnostics>
<
sources>
<
source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<
listeners>
<
add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData= "c:\Traces.svclog" />
</
listeners>
</
source>
</
sources>
</
system.diagnostics>
</
configuration>

**************************************
Web web.config

<?xml version="1.0"?>
<
configuration>
<
configSections>
<
sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<
section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</
sectionGroup>
</
sectionGroup>
</
sectionGroup>
</
configSections>
<
appSettings/>
<
connectionStrings/>
<
system.web>

<!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only during development.
-->
<
compilation debug="true">
<
assemblies>
<
add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</
assemblies>
</
compilation>

<!-- The <authentication> section enables configuration of the security authentication mode used by ASP.NET to identify an incoming user. -->
<
authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration of what to do if/when an unhandled error occurs during the execution of a request. Specifically, it enables developers to configure html error pages to be displayed in place of a error stack trace.<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->

<pages>
<
controls>
<
add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
controls>
</
pages>
<
httpHandlers>
<
remove verb="*" path="*.asmx"/>
<
add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</
httpHandlers>
<
httpModules>
<
add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
httpModules>
</
system.web>
<
system.codedom>
<
compilers>
<
compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<
providerOption name="CompilerVersion" value="v3.5"/>
<
providerOption name="WarnAsError" value="false"/>
</
compiler>
</
compilers>
</
system.codedom>

<!-- The system.webServer section is required for running ASP.NET AJAX under Internet Information Services 7.0. It is not necessary for previous version of IIS. -->

<system.webServer>
<
validation validateIntegratedModeConfiguration="false"/>
<
modules>
<
remove name="ScriptModule"/>
<
add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
modules>
<
handlers>
<
remove name="WebServiceHandlerFactory-Integrated"/>
<
remove name="ScriptHandlerFactory"/>
<
remove name="ScriptHandlerFactoryAppServices"/>
<
remove name="ScriptResource"/>
<
add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
handlers>
</
system.webServer>
<
system.diagnostics>
<
sources>
<
source name="System.ServiceModel"
switchValue="Information, ActivityTracing"
propagateActivity="true">
<
listeners>
<
add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData= "c:\TracesWeb.svclog" /></listeners>
</
source>
</
sources>
</
system.diagnostics>
<
runtime>
<
assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<
dependentAssembly>
<
assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
<
bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</
dependentAssembly>
<
dependentAssembly>
<
assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
<
bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</
dependentAssembly>
</
assemblyBinding>
</
runtime>
</
configuration>



tkd replied on Wednesday, October 29, 2008

Yes the port is 2430.

When I F5 the solution, I get one icon added to the system tray which is:

ASP.NET Development Server - Port 3839

I do NOT have one running for Port 2430 which you seem to be saying I should have. So what actually starts up WcfHostWeb given that its not a Startup Project?

 

sergeyb replied on Wednesday, October 29, 2008

When you run the solution, .NET should kick off a server for each web application.  Could you check that project’s properties –web tab to see if anything looks weird?

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Wednesday, October 29, 2008 4:09 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: Can't Run Rolodex sample

 

Yes the port is 2430.

When I F5 the solution, I get one icon added to the system tray which is:

ASP.NET Development Server - Port 3839

I do NOT have one running for Port 2430 which you seem to be saying I should have. So what actually starts up WcfHostWeb given that its not a Startup Project?

 



tkd replied on Wednesday, October 29, 2008

Both look quite similar. The Web one has the ASP.NET and Silverlight debugging option turned on and has random port while the WcfHostWeb does not have Silverlight debugging option on (although it does has ASP.NET) and is assigned to a specific port.

If I run with just the Web as the start up project I get these ports in use (netstat -a):

DEV:3839      DEV:0      LISTENING

DEV:3839      localhost:4400  TIME_WAIT

3839 is the Web project.

But if I change the solution startup projects to say Web AND WCFHostWeb should start up. I get an error when I run it saying port 2430 is in use. Which seems to indicate it may well be opening up. But if I run netstat -a I don't see anything listening on 2430. In that case all I see is:

DEV:3839      DEV:0      LISTENING

 

 

sergeyb replied on Wednesday, October 29, 2008

OK.  Try hard-coding ports for both and make sure no other copies of Cassini are running.  You can also try to setup multiple start up projects, although I have no idea already why this is not working.  Could you see what other options on web tab may look weird?

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Wednesday, October 29, 2008 4:52 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: Can't Run Rolodex sample

 

Both look quite similar. The Web one has the ASP.NET and Silverlight debugging option turned on and has random port while the WcfHostWeb does not have Silverlight debugging option on (although it does has ASP.NET) and is assigned to a specific port.

Interestingly, if I change the solution startup projects to say Web AND WCFHostWeb should start up. I get an error when I run it saying port 2430 is in use. Which seesm to indicate it may well be opening up.

 



tkd replied on Thursday, October 30, 2008

I've tried all sorts of stuffing around with the ports to no avail. By Cassini you mean Webdev.WebServer.exe? Thats what actually runs and sits in the system tray. I take it this would have been installed with the VS 2008 environment.

Running with multiple startup projects doesn't work. It complains 2430 is in use when I try to run it. This seems to imply that its already been loaded once and shouldn't be getting loaded again. However, that does actually produce a traces.log file which shows the error is:

The ServiceHost directive must specify either the 'Factory' or the 'Service' attribute

which I don't understand.

Would it be possible to send the solution to you to see if you get same issue? It should be the same as what is in the samples dir from the download area but who knows. Fast running out of ideas at the moment. It doesn't help being a newbie to .NET. I'm not fluent enough in WCF. I was just sort of hoping it would just work and I could move on to the important stuff. It also doesn't help that I'm in Australia and the timezone difference is making it hard to work on it in a timely manner.

Thanks for your help so far. Now if only it would work ;-)

P.S. I noticed http://forums.lhotka.net/forums/thread/27356.aspx had similar error to what I was getting. But he reckons that he got two IE windows opening up. Which I am not. He referes specifically to Cassini. The Web server doesn't seem to be called Casinni anymore. Is there still a product called that which I should be using or is everyone just used to calling it that?

 

 

sergeyb replied on Thursday, October 30, 2008

Sure.  You can send it.  Port in use could mean that it is in use by a different solution or another software.  You can try changing the port number on web site and Client Reference file to see if the issue is solved that way.

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Thursday, October 30, 2008 1:20 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

I've tried all sorts of stuffing around with the ports to no avail. By Cassini you mean Webdev.WebServer.exe? Thats what actually runs and sits in the system tray. I take it this would have been installed with the VS 2008 environment.

Running with multiple startup projects doesn't work. It complains 2430 is in use when I try to run it. This seems to imply that its already been loaded once and shouldn't be getting loaded again. However, that does actually produce a traces.log file which shows the error is:

The ServiceHost directive must specify either the 'Factory' or the 'Service' attribute

which I don't understand.

Would it be possible to send the solution to you to see if you get same issue? It should be the same as what is in the samples dir from the download area but who knows. Fast running out of ideas at the moment. It doesn't help being a newbie to .NET. I'm not fluent enough in WCF. I was just sort of hoping it would just work and I could move on to the important stuff. It also doesn't help that I'm in Australia and the timezone difference is making it hard to work on it in a timely manner.

Thanks for your help so far. Now if only it would work ;-)

 

 



tkd replied on Sunday, November 02, 2008

Hi Sergey

Just checking that you received my email from last week. Not sure that its going to be of much use though. I just downloaded the latest versions that Rocky has released. I updated the references to the correct csla dlls and run the sample and it blows up straight away with the same error I have been getting all along.

 

I was also mucking around with the RemotePortalWithCompressedProxy sample. Get the same problem in that. I did manage to change the app over to be hosted by local IIS rather than the Visual Studo Development Server. I was then able to surf to the wcfportal.svc and actually see something, which is a first. But if I switched back to the Dev Server, I couldn't get to the wcfportal.svc page anymore. But even when I had it running under IIS, I still couldn't get the client to connect. It still gets the same client access policy error I've been getting all along.

 

sergeyb replied on Monday, November 03, 2008

I did, and I replied to it.  Maybe something happened to my post.  Here is my email from Thursday

 

Jeff,

The only issue I saw was the ServiceReferences.ClientConfig file not correct in Rolodex project.  It has port 4000 specifried in end point, but wcf project was setup on port 2430.  I made this change (changed 4000 to 2430 in ServiceReferences.ClientConfig ), rebuilt the solution, updated connection string in web.config in wcf project and ran.  I was able to login without any issues.  I am guessing that your issue is the same - ServiceReferences.ClientConfig does not correspond to port number in wcf project/web configuration tab.

 

It does not really matter where you are getting Csla.dll from.  You just need to make sure you have 3.6 version of SL and .NET that you can reference in your projects in Rolodex solution. 

 

Thanks for not giving up, man J.  You can read the old books while you wait.

 

 

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Sunday, November 02, 2008 8:49 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

Hi Sergey

Just checking that you received my email from last week.



tkd replied on Monday, November 03, 2008

Found the email in my Junk folder :-( You must have thought it had been quiet.

 

Looks liek that port number got stuffed up when I was playing around. Have changed it back as you have it, made sure the database connect is fine and connects ok. Run the app, same error as before:

*****************
An error occurred while trying to make a request to URI 'http://localhost:2430/WcfPortal.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details.
******************

Are you using VS2008? When you run it do you get the two browser windows opening up? I still only get one window open for Web. Nothing for WcfHostWeb. And I only have one icon for the Webdev server in my system tray which says its connecting to the random port being used for Web.

None of the samples that I have tried are working.

 

sergeyb replied on Tuesday, November 04, 2008

Yep, I am using VS 2008.  Yes, I only have one window open for SL web site host.  That message you are getting does not make much sense to me.  Since I am not really sure what the issue is, how about you setup a virtual directory for WCF host and host it in IIS?

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Monday, November 03, 2008 10:29 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

Found the email in my Junk folder :-( You must have thought it had been quiet.

 

Looks liek that port number got stuffed up when I was playing around. Have changed it back as you have it, made sure the database connect is fine and connects ok. Run the app, same error as before:

*****************
An error occurred while trying to make a request to URI 'http://localhost:2430/WcfPortal.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details.
******************

Are you using VS2008? When you run it do you get the two browser windows opening up? I still only get one window open for Web. Nothing for WcfHostWeb. And I only have one icon for the Webdev server in my system tray which says its connecting to the random port being used for Web.

None of the samples that I have tried are working.

 



Fel replied on Tuesday, November 04, 2008

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

Sergey,

I downloaded Rolodex project yesterday. I was able to compile it However, when I try to login, I’m getting “Invalid login Try again” error message. I’ve checked port # for Wcf.  Any other ideas how to make it working?

Thanks for your help.

sergeyb replied on Tuesday, November 04, 2008

Co0nnection string in web.config is the first suspect.

 

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: Fel [mailto:cslanet@lhotka.net]
Sent: Tuesday, November 04, 2008 2:30 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

Sergey,

I downloaded Rolodex project yesterday. I was able to compile it However, when I try to login, I???m getting ???Invalid login Try again??? error message. I???ve checked port # for Wcf.  Any other ideas how to make it working?

Thanks for your help.



Fel replied on Tuesday, November 04, 2008

I already pointed database connection string to correct folder.
Other ideas?

sergeyb replied on Tuesday, November 04, 2008

Do you have SQLExpress running?  I would just test connection string by itself to eliminate it as a possible problem.

 

 

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: Fel [mailto:cslanet@lhotka.net]
Sent: Tuesday, November 04, 2008 2:45 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

I already pointed database connection string to correct folder.
Other ideas?


Fel replied on Tuesday, November 04, 2008

Good catch. I’m not running SQL Express on my system. I have SQL 2005. 
When I try to create connection to it from Server Explorer, I’m getting error.
 Do I need to have SQL Express to access this database?

Thanks for your help

sergeyb replied on Tuesday, November 04, 2008

No, you can just attach DB to your SQL Server instance and change the connection string accordingly.

 

 

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: Fel [mailto:cslanet@lhotka.net]
Sent: Tuesday, November 04, 2008 3:26 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

Good catch. I???m not running SQL Express on my system. I have SQL 2005. 
When I try to create connection to it from Server Explorer, I???m getting error.
 Do I need to have SQL Express to access this database?

Thanks for your help

Fel replied on Tuesday, November 04, 2008

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} OK.
Then I tried one more time crate connection to Rolodex database from Server Explorer in VS2008.. I choose Microsoft SQL Server Database File (Sql Clinet) as Data Source and in I entered location of the database into Database file name field. When I click Test connection, I’m getting error message: “A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that Sql Server is configured to allow remote connection (provider: SQL Network Interface, error: 26 – Error Locating Server/Instance Specified).

I don't understand, why I'm getting network error when I try to establish connection to local database?


Any suggestion?

sergeyb replied on Tuesday, November 04, 2008

Probably means that the engine cannot find the server by its name.

 

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: Fel [mailto:cslanet@lhotka.net]
Sent: Tuesday, November 04, 2008 4:06 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} OK.
Then I tried one more time crate connection to Rolodex database from Server Explorer in VS2008.. I choose Microsoft SQL Server Database File (Sql Clinet) as Data Source and in I entered location of the database into Database file name field. When I click Test connection, I???m getting error message: ???A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that Sql Server is configured to allow remote connection (provider: SQL Network Interface, error: 26 ??? Error Locating Server/Instance Specified).

I don't understand, why I'm gettting network error when I try to establish connection to local database?


Any suggestion?

Fel replied on Friday, November 07, 2008

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;} Sergey,

 I think I solved issue with connection string. However, I’m still getting message “Invalid user”.

Is it way to find out what is the problem by setting breakpoint somewhere? 

One more question, I noticed that part of code for SILVERLIGHT , after “#if SILVERLIGHT” statement, is editable but for unknown me reason I can’t set up breakpoint  on any of its line.

Example: check RolodexIdentity.cs file.

What am I missing?

Thanks for your help.

tkd replied on Tuesday, November 04, 2008

So you only had one browser window? OK. At least consistent with what I am seeing then. I tried the IIS optiuon the other day. Still no luck.

With reference to fel, if you go to WcfHostWeb| Properties| Settings.Settings and click on it, it will bring up the settings in a designer. It will recogniose the connection string with a proper designer which has a Test connection button on it. This will let you test the connection string is ok.

But in my case it never actually fires up the WcfHostWeb in order to use the database string. At least as far as I can tell anyway.

 

 

sergeyb replied on Tuesday, November 04, 2008

I am at a loss with this issue.  If you do not even have Cassini starting up (web server icon in system tray), I am not sure what could be going on. 

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Tuesday, November 04, 2008 3:30 PM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

So you only had one browser window? OK. At least consistent with what I am seeing then. I tried the IIS optiuon the other day. Still no luck.

With reference to fel, if you go to WcfHostWeb| Properties| Settings.Settings and click on it, it will bring up the settings in a designer. It will recogniose the connection string with a proper designer which has a Test connection button on it. This will let you test the connection string is ok.

But in my case it never actually fires up the WcfHostWeb in order to use the database string. At least as far as I can tell anyway.

 

 



tkd replied on Monday, November 10, 2008

sergeyb:

I am at a loss with this issue.  If you do not even have Cassini starting up (web server icon in system tray), I am not sure what could be going on. 

But I do get the Web dev in system tray. I only get one though for the Web port. I thought you said earlier I should have two? One for the Web and one for the WCFHostWeb. If you only have one icon o nthe taskbar then we have the same thing. But if I try to browse to http://localhost:2430/WCFPortal.svc, it doesn't show me anything. I get an error about the website not being available. Since I am only going to localhost, my router shouldn't be causing a problem with blocking of port 2430 should it?

sergeyb replied on Monday, November 10, 2008

I indeed get two icons – one for each web project (WCF and Web host).  That is why I am at a total loss why are you only getting one.  You can try to combine them if you would like – copy WCF sections of web.config from WCF host into web site as well as connection strings and point ServiceReference.ClientConfig to Web project’s port number

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Monday, November 10, 2008 8:07 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

sergeyb:

I am at a loss with this issue.  If you do not even have Cassini starting up (web server icon in system tray), I am not sure what could be going on. 

But I do get the Web dev in system tray. I only get one though for the Web port. I thought you said earlier I should have two? One for the Web and one for the WCFHostWeb. If you only have one icon o nthe taskbar then we have the same thing. But if I try to browse to http://localhost:2430/WCFPortal.svc, it doesn't show me anything. I get an error about the website not being available. Since I am only going to localhost, my router shouldn't be causing a problem with blocking of port 2430 should it?



tkd replied on Monday, November 10, 2008

You do get two? Damn. That's where the problem lies, the fact I only get one. I tried using the Compression sample which has the WCFHostWeb and Web combined and that didn't work either. I'll have to play around a bit more tomorrow.

 

What is it that actual launches the WCFHostWeb? Is there code in Web which gets it started? Would it not load if it can't find the related assemblies?

sergeyb replied on Monday, November 10, 2008

VS is starting up a dev web server for each web application.  There is no code required to do this.  I am not sure about assemblies, but you can check the references for that project to make sure they are all resolved.

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Monday, November 10, 2008 8:23 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

You do get two? Damn. That's where the problem lies, the fact I only get one. I tried using the Compression sample which has the WCFHostWeb and Web combined and that didn't work either. I'll have to play around a bit more tomorrow.

 

What is it that actual launches the WCFHostWeb? Is there code in Web which gets it started? Would it not load if it can't find the related assemblies?



tkd replied on Monday, November 10, 2008

But the WcfHostWeb is not marked as a startup project so why would VS itself, start it up? I thought there might have been something in Web but I can see no reference in that to WcfHostWeb.

 

If you change the solution so the only start up project is WCFHostWeb and then run it, does WcfHostWeb start up as a window on your system tray? In my case it fails with Unable to launch the ASP.NET EDevelopment Server because port '2430' is in use.

 

sergeyb replied on Monday, November 10, 2008

It should because this is a web application, and in its properties under servers we have it marked to run in dev web server on a certain port.

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Monday, November 10, 2008 8:35 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

But the WcfHostWeb is not marked as a startup project so why would VS itself, start it up? I thought there might have been something in Web but I can see no reference in that to WcfHostWeb.

 



tkd replied on Monday, November 10, 2008

If you change the solution so the only start up project is WCFHostWeb and then run it, does WcfHostWeb start up as a window on your system tray? In my case it fails with Unable to launch the ASP.NET Development Server because port '2430' is in use.

 

If Web is your only start up project and you run the solution, when you run netstat -a at a command prompt, do you see port 2430 listed as in use?

 

sergeyb replied on Monday, November 10, 2008

I never tried that because this is not going to work.  Start up project must be Web.

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Monday, November 10, 2008 8:44 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

If you change the solution so the only start up project is WCFHostWeb and then run it, does WcfHostWeb start up as a window on your system tray? In my case it fails with Unable to launch the ASP.NET Development Server because port '2430' is in use.



tkd replied on Monday, November 10, 2008

If Web is your only start up project and you run the solution, when you run netstat -a at a command prompt, do you see port 2430 listed as in use?

sergeyb replied on Monday, November 10, 2008

Yes.  Both Web and WCF ports are shown as in use.

 

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: tkd [mailto:cslanet@lhotka.net]
Sent: Monday, November 10, 2008 8:50 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: Can't Run Rolodex sample

 

If Web is your only start up project and you run the solution, when you run netstat -a at a command prompt, do you see port 2430 listed as in use?



tkd replied on Monday, November 10, 2008

I am using netstat -n to see what ports are in use. When I run the app, the Web project grabs a random port. I can see that in use. Nothing is using 2430.

 

Spent a bit of time playing around with this today.

1. In the Rolodex sample, I can make Rolodex the start up project (not Web) and Web will start up in the ASP.NET Development Server (I guess this is Cassini) and shows an icon in the system tray. So that proves to me that VS2008 knows about the web projects and is able to auto start them

2. I stripped out the WCFHostWeb so it had no service code in it. The Default.aspx was to simply show a page with "Hello there" in it. So basically tried to make it look just like the Web project. Although it compiled, it still did not run it is ASP.NET Dev Server. I removed the Web project from Rolodex solution and ran the solution. Web project didn't start up (as expected) but the WCFHostWeb would not start either.

3. I then marked the WCFHostWeb as the start up project. When I then ran the solution, it complained that the port 2430 was in use. I changed the port to another number. It then complained that port was in use. When Web was marked as a start up project (even though no need to), it would start up without any issues.

4. I went back to the RemotePortalWithCompressedProxy sample and ran this. This has a combined WCF/Web project. It did NOT start up in ASP.NET Dev Server. Nothing was added to the system tray. The Sample did display in a web page (C:\cslalighttest\CslaLight\cs\RemotePortalWithCompressedProxy\Sample\Bin\Debug\TestPage.html). Should this be a file path or should it be a http address? I think its a file because I set Sample as the start up project.

5. If I marked the Web as the startup project, I got port in use (like with step 3).

tkd replied on Monday, November 17, 2008

bump!

triplea replied on Monday, March 30, 2009

Not really sure if this is of any help but after not working with SL for a while, I downloaded the samples for 3.6.2. None of them were working and I ended up going through this thread. It appeared that even though Cassini was starting up fine, an error was always coming up. The solution for me was simple:

http://blogs.msdn.com/webdevtools/archive/2009/03/13/asp-net-web-development-server-stops-working.aspx

It may help somebody else out there...

ajj3085 replied on Monday, November 10, 2008

Is something else already using 2430 on your system?  Also, when you were changing configuration settings, perhaps you set them both to use the same port, and the second one fails to start because the first is already using it?

James Thomas replied on Monday, March 30, 2009

Two recent gotchas:

1. Do you run NOD32 antivirus? If so, a recent update can block the webserver and give you the error saying the port is in use. You need to go to advanced settings on the firewall and change the 'web access protection settings'. If you google for it, you'll find the answer.

2. Check your whether ip v6 is enabled and whether your hosts file has the correct entries. Again, google is your friend here.

Hope these help (sorry I can't give direct URLs - have to sleep!)

James.

tkd:

If you change the solution so the only start up project is WCFHostWeb and then run it, does WcfHostWeb start up as a window on your system tray? In my case it fails with Unable to launch the ASP.NET Development Server because port '2430' is in use.

 

tkd replied on Monday, October 27, 2008

I thought i would try some of the other samples.

 

LocalDatPortalUsingWCFService.

- Changed CSLA references to point to correct directories.

- Press F5. Nothing runs.

- Realised the Startup Project was WcfServce.Business.Client. Changed Startup Project to be Web. Press F5. App starts up, says Unable to launch the ASP.NET Development Server because port '3026' is in use.

- Go into properties on Web, and on the Web tab change the port to 2430 (I know this one is not in use ;-) ). Run again. Now it reckons 2430 is in use. Try another port. Still no good.

- Give up.

RemotePortalWithCompressedProxy

- Changed CSLA references to point to correct directories.

- Press F5. App tries to run. Get same error as I original saw on the Roldex app:

An error occurred while trying to make a request to URI 'http://127.0.0.1.:4281/CompressedWcfPortal.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. Please see the inner exception for more details.

 

Really wanting to give up now.... :-(

Must...go...on.....

 

I asked yesterday but I don't think I got an answer.Is the ersion of IIS6 a problem? I'm using ISS5.1.

Edit: Apparently not. Googling seems to show it should be ok. But then in this case we aren't even using IIS are we? We're using the dev app to run the application.

 

 

Copyright (c) Marimer LLC