Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET Web Pages with WebMatrix
This is the forum to discuss the Wrox book Beginning ASP.NET Web Pages with WebMatrix by Mike Brind, Imar Spaanjaars ; ISBN: 978-1-1180-5048-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Web Pages with WebMatrix 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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 30th, 2014, 04:54 PM
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2014
Location: Seville
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default chapter 2 - run page in browser

Hello Authors,

above all I want to say that your books are amazing and very very helpful.

So, for me the most important thing to understand and to follow the content are the Try-It-Out exercises. And here begin the first problems.

First of all, I cannot open any page but the default pages in any browser by clicking the "Run" button. It always gave me a 403 or 404 error message. I solved this problem by adding the whole extension of the page, e.g. localhost:XXXXX/Try Out.cshtml.

But when I followed the instructions of the Try-it-Out exercise for using an external Style Sheet on page 40, I recognised that the menu items of the mentioned exercise page don't open any link in the browser neither.

I mean the "nav" div with the a href elements home.cshtml, about.cshtml and contact.cshtml. Clicking them in the nav bar of the page gives me the following error:

Server Application Error '/', Connection string "Users" was not found.

I'm quite new to ASP.NET and a beginner in Web Design in general. But it's quite a pity not being able to reproduce the exercises or at least find a solution to solve this problem.

I would be very happy if anybody could help me out here. Maybe with instructions to correctly configure the IIS Manager or maybe to create a connection string within the Web.config file or whatever.

Kind regards of a big wrox fan.

Pete
Reply With Quote
  #2 (permalink)  
Old December 1st, 2014, 06:30 AM
Wrox Author
Points: 412, Level: 7
Points: 412, Level: 7 Points: 412, Level: 7 Points: 412, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2011
Posts: 57
Thanks: 1
Thanked 19 Times in 19 Posts
Default

If you are following the Try It Out sections faithfully, there should be no connection string issues at page 40. Databases and connection strings are introduced much further on in the book.

Also, there should be no need to do anything with IIS. The default installation will serve up cshtml files without their extension. One thing you should check though is in the site settings. Click the Site button in the bottom left, and then click the Settings option. Make sure that .NET 4 (Integrated) is selected in the Select .NET Framework Version selector.
Reply With Quote
  #3 (permalink)  
Old December 1st, 2014, 04:02 PM
Registered User
Points: 22, Level: 1
Points: 22, Level: 1 Points: 22, Level: 1 Points: 22, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2014
Location: Seville
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

thanks for the quick reply.

.NET 4 (Integrated) is already selected in site settings. That's why I asked to change configurations in IIS Manager.

Is it possible that the browser's adjustments collide with other programs ("Xampp") that I used before using WebMatrix?

Kind regards, Pete
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TIO page 552: Exception when trying to run Default.aspx in browser mkaftor BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 April 26th, 2011 12:20 PM
Hello World does run in browser -vista Todp BOOK: Beginning ASP.NET 4 : in C# and VB 6 November 7th, 2010 12:23 PM
Can any one tell how to run chtml code in browser? frnd4u_dotnet ASP.NET 2.0 Professional 0 November 6th, 2007 10:02 AM
run a software from web browser jun99 PHP How-To 1 December 28th, 2005 09:50 AM



All times are GMT -4. The time now is 03:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.