Wrox Programmer Forums
|
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
 
Old June 22nd, 2010, 09:29 AM
Authorized User
 
Join Date: Jun 2010
Posts: 24
Thanks: 10
Thanked 0 Times in 0 Posts
Default Copy Website

Hey everyone,

I have got a problem copying my website to the ftp-host:

a few weeks ago my hosting-company had an older version of ASP.Net installed. One way or the other copying the website wouldn't make it work.

After some fumbling around I erased a line in web.config that ended with "TargerFramework="4.0" after erasing this line the website worked....but....

It is different than I designed it, all the CSS properties for the navigation menu were gone or changed, now i don't see my submenus because backgroundcolor and fore color have been switched to white. And also the buttons have been evenly spread in my #NavigationBar, this wasn't also set this way...

What went wrong? What kind of codeline should I put back in my Web.config?
http://www.skooter.nu

since yesterday my provider installed DotNetFx40_Full_setup.exe but the site did not change appearance...
 
Old June 22nd, 2010, 12:42 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 bertus,

You may need to ask your host to configure the application pool for the application to run under .NET 4. Once that's done, you can add the attribute you removed back in.

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!
The Following User Says Thank You to Imar For This Useful Post:
bertus (September 22nd, 2010)
 
Old June 22nd, 2010, 03:31 PM
Authorized User
 
Join Date: Jun 2010
Posts: 24
Thanks: 10
Thanked 0 Times in 0 Posts
Default

Hey Imar,

Are these configuration settings of ASP.NET 4? Because they installed ASP.NET 4 just recently...

And where does the server get the "weird" css properties from? On the localhost the menu looks like i designed it, on the web the same website looks different, that shouldn't be possible, right?

kindest regards,

Bertus

Strange, talking english to a dutchman...

cheers anyway!
 
Old June 22nd, 2010, 03:41 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

IIS registers itself with IIS, so after installiing .NET 4, an option to run the Application Pool under .NET 4 has been added to IIS. Your host should know how to configure the application pool. Check out page 715 for more details.

With regard to the menu: .NET 4 renders the menu differently from .NET 3.5 so your 4.0 compatible CSS may not match the HTML rendered by the 3.5 version of the menu.

Ja, zeker raar, in het Engels. Maar zo kan wel iedereen het volgen ;-)

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!
The Following User Says Thank You to Imar For This Useful Post:
bertus (June 23rd, 2010)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with website andypandyrox456 BOOK: Beginning HTML, XHTML, CSS, and JavaScript 5 April 25th, 2010 01:33 PM
all about website benny HTML Code Clinic 2 February 11th, 2008 04:49 AM
Dynamic website to Static website Aboal3ood ASP.NET 1.x and 2.0 Application Design 4 December 7th, 2006 11:46 AM
Link to a Website jmss66 VB How-To 3 June 15th, 2006 10:01 AM
website development Futuregame BOOK: ASP.NET Website Programming Problem-Design-Solution 3 January 31st, 2004 06:52 AM





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