Wrox Programmer Forums
|
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 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
 
Old February 11th, 2012, 05:58 PM
Authorized User
 
Join Date: Aug 2010
Posts: 50
Thanks: 7
Thanked 0 Times in 0 Posts
Default Deploying Site

Hi,

I tried deploying the classifieds site to my godaddy hosted site.

when i go to the default page i get this message


"
Quote:
Server Error in '/' Application.
This type of page is not served.
Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.cshtml' may be incorrect. Please review the URL below and make sure that it is spelled correctly.

Requested URL: /classifieds/Default.cshtml
My hosting site is set up for iis7 and .net 4.
i called godaddy and they couldn't help

Do I need to change the cshtml file to aspx file? If so how can i do it for the whole site?
 
Old February 11th, 2012, 06:24 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

No, simply renaming the file doesn't work.

Judging from this post: http://forums.iis.net/t/1174820.aspx GoDaddy doesn't support ASP.NET Web Pages (yet)....

Cheers,

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!
 
Old February 15th, 2012, 05:50 PM
Authorized User
 
Join Date: Aug 2010
Posts: 50
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Hi Imar,

I changed my hosting service to winhost.
I used web deploy to upload the classifieds site and it saved it as a folder called myapp.

I am having issues with the following
"Parser Error Message: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty"

Support told me i need to use the following code in my web.config.
Code:
<connectionStrings> 
<remove name="LocalSqlServer" /> 
<add name="LocalSqlServer" connectionString="Data Source=DBServerName;Integrated Security=false;Initial Catalog=DBName;User ID=DBLogin;Password=DBPassword" providerName="System.Data.SqlClient" />  
</connectionStrings>
the only database that i use the classifieds. how do i know what the password and user name is?

Thanks.
 
Old February 15th, 2012, 06:36 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Your host should provide these details, as this is the account used to access sql server.

Cheers,

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!
 
Old February 16th, 2012, 02:06 AM
Wrox Author
 
Join Date: Dec 2011
Posts: 57
Thanks: 1
Thanked 19 Times in 19 Posts
Default

If you look at page 371 of the book, you see the error message relating to the missing connection string covered in the section entitled Other Issues. The solution is to provide a none empty value to the connectionString. It is also covered here:

http://forums.asp.net/t/1694853.aspx...machine+config





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with deploying site. hozdaman BOOK: Beginning ASP.NET 4 : in C# and VB 2 October 20th, 2011 11:09 AM
Deploying Web Site majeedkhan BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 February 25th, 2010 05:06 AM
Deploying the site Rachel BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 11 March 21st, 2009 11:24 AM
Deploying the Site SoloEng BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 September 9th, 2007 09:39 PM
Deploying the site MoeShall BOOK: ASP.NET Website Programming Problem-Design-Solution 3 April 20th, 2005 07:06 AM





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