You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .

Unhandled Exception: System.TimeoutException: The request channel timed out while waiting for a reply after 00:00:58.8749356. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. ---> System.TimeoutException: The HTTP request to'http://localhost/ProductsService/Service.svc' has exceeded the allotted timeout of 00:00:59.0370000. The time allotted to this operation may have been a portion of a longer timeout. ---> System.Net.WebException: The operation has timed out

This says that localhost/ProductsService/Service.svc does not answer.
IMHO: Make sure that the service reference is correct.

The error message with "Invalid application path" is interesting. What are the permissions on disk for the ProductsService folder? Did you add the app pool account to the list of users with at least read permissions? Are there any specific deny permissions set?

I gave full access to IUSR and Network Service for everything in the wwwroot directory. So those two users have full access. Should i have added the ASP.NET v4.0 application pool as a user?

WHen i try to add ASP.NET v4.0 as a user i get this error: "An object named "ASP.NET v4.0" cannot be found. Check the selected object types and location for accuracy and ensure that you typed the object name correctly, or remove this object from the selection."

There are NO denies

Regarding Server Reference, I copied the code from Book Download and made the changes to the config files and re-published the site. It gives me the exact same error.

Thank guys for your help. At this point, I've read all of Chapter 19 and Appendix B. I understand a lot more than I did and it was a pleasure to read. Very easy to follow. I'm hoping the last part of Appendix B will fix my problem, but I don't understand it. This post is all about Appendix B the next post will tell you what I've done.

I'm in the last section of Appendix B and I don't understand it: "Configuring Application Services" Its the only thing so far I don't understand.

I'm not sure what the following statement means. Was this covered in Ch 19 and Appendix B?

Quote:

Earlier in this book you learned that the ASP.NET application services make use of a SQL Server database. You also saw how to make sure your own website and the application services use the same database.

Quote:

Follow these steps to let the application services use your own database:

1. First, make sure the application services point to a connection string you want to use. To do this, you need to set the connectionStringName to a connectionstring defined in your config file. The following example shows how to do this for the Membership section, but the other services follow a similar pattern: (I'm assuming this is in Web.Config. Its not in mine.)

Notice how connectionStringName points to the connection string called PlanetWroxConnectionString1, defined elsewhere in the config file.

Quote:

(I didn't think this one was necessary. But i can do it if i need to. This is in SSMS.)

2. Make sure the account used by the web server has permissions to alter the database schema. You can accomplish this by adding the account to the db_ddladmin group, shown in Figure B. 6 . This grants the account the permissions to execute Data Definition Language statements , which means it can create and alter tables and other objects in the database.

I don't know what the following means:

Quote:

4. Browse to your site and request the Login page. Try to log in with a fake username and password. At this stage, the .NET run time will modify the database and add the necessary tables to it. If you look in the database defined in the connection string used by the membership services, you'll notice it now contains the tables that are used by Membership, Roles, and Profile.

I was typing the below beforehand. I'll keep it for future reference. The Test Setting button in IIS Basic Setting still fails. But when i run the app now in VS2010, it works like its supposed to. I hope I'm not deceiving myself. Could it be running off VS Development Server?

Ok What I've done is I added both IIS APPPOOL\ASP.NET v4.0 and IIS APPPOOL\DefaultAppPool to the SQL SERVER's Security Logins. The Book author's aspnet.sql script had already added them to the AdventureWorks database.

I added them both to the file permissions at C:\inetpub\wwwroot, giving them full access.

I clicked the Advanced button at the bottom of the Security tab. Clicked Change Permissions and clicked the checkbox that says Replace All Child Object Permissions check box. ((It did not stay checked however).