Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 21st, 2016, 09:28 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy First ASP.NET 4 Web Site

I cannot find the "ASP.NET Web Site" option when creating a "New Web Site...". I selected the "ASP.NET Web Site (Razor v3)" option, but the <%= DateTime.Now.ToString() %> line does not run, it just prints it on the screen.

Any suggestions would be appreciated.
  #2 (permalink)  
Old June 22nd, 2016, 08:05 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Which version of Visual Studio are you using? (Check Help | About Microsoft Visual Studio).

And are you sure you picked File | New Web site and not File | New Project?

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
  #3 (permalink)  
Old June 22nd, 2016, 08:15 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2016
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Microsoft Visual Studio Community 2015
Version 14.0.25123.00 Update 2

I also had the same problem on:

Microsoft Visual Studio Express 2015 for Web
Version 14.0.25123.00 Update 2

I did not choose the project. I did File | New Web site
  #4 (permalink)  
Old June 22nd, 2016, 08:41 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

A lot has changed between .NET 4 in 2010 (which this book targets) and VS 2015. I think you either may want to get an updated version of this book (my 4.5.1 version targets 2013), or install VS 2010, or be prepared for *lots* of changes between the different versions of VS.

When I choose File | New Website in 2015, I see:

ASP.NET Empty Web Site
ASP.NET Web Forms Site
ASP.NET Web Site (Razor v3)

Depending on the exercise you're working on you need to choose the first (completely empty) or second (which already has a bunch of stuff in it).

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to access the other site information in Asp.Net web site arunkongara ASP.NET 4 General Discussion 1 July 28th, 2011 10:16 AM
Chapter 1- Creating Your First ASP.NET 4 Web Site machinist BOOK: Beginning ASP.NET 4 : in C# and VB 4 June 1st, 2010 06:06 AM
ASP.NET web site which support any database sanjivbshinde ASP.NET 2.0 Professional 2 October 10th, 2008 12:46 AM
ERROR using ASP.net Web Site Administration Tool erictamlam C# 2005 0 April 3rd, 2007 01:28 AM
ASP.NET web site administration tool boksi ASP.NET 1.0 and 1.1 Basics 2 June 16th, 2005 07:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.