Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 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 Search this Thread Display Modes
  #1 (permalink)  
Old June 22nd, 2010, 09:29 AM
Authorized User
 
Join Date: Jun 2010
Location: Sneek, Netherlands
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...
Reply With Quote
  #2 (permalink)  
Old June 22nd, 2010, 12:42 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
bertus (September 22nd, 2010)
  #3 (permalink)  
Old June 22nd, 2010, 03:31 PM
Authorized User
 
Join Date: Jun 2010
Location: Sneek, Netherlands
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!
Reply With Quote
  #4 (permalink)  
Old June 22nd, 2010, 03:41 PM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
bertus (June 23rd, 2010)
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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



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


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