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 December 27th, 2012, 12:06 PM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default deploying my web site

hi i have followed your book(Beginning asp.net 4) all the way true, i did all the things about IIS, an when i write localhost, i get the site but alle the stylling is gone,
is there an explanation to that.

An they don't write anything about how i set it up, so i kan open the site over the internet from an other computer,

please help:)
Reply With Quote
  #2 (permalink)  
Old December 27th, 2012, 12:26 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 there,

Could this be a permissions issue? To see what the issue is get a copy of Fiddler (www.fiddler2.com) and then browse to your site. Fiddler will then tell you why the styles files are missing.

Quote:
An they don't write anything about how i set it up, so i kan open the site over the internet from an other computer,
I don't understand what this means...

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
  #3 (permalink)  
Old December 28th, 2012, 07:21 PM
Authorized User
Points: 207, Level: 4
Points: 207, Level: 4 Points: 207, Level: 4 Points: 207, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2012
Posts: 40
Thanks: 8
Thanked 5 Times in 4 Posts
Default

Hi Pskaaning,

I suppose you are saying:

# Nor is the hosting company telling you how to overcome the situation in order to make your site accessible for users(you from any machine).

Answer:

# Please follow what Imar has suggested in order to know the missing files.

# Plus do also check meanwhile that all the necessary files are successfully deployed to the host server.
Reply With Quote
  #4 (permalink)  
Old December 29th, 2012, 07:38 AM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default deploying my web site

hi tanks for the reply, I trye the fidler but i am not sure that i onderstand using i, but then i så that goggle crom have a tool for development and when I look at the code it look as if there is no css code at all, an all the files are there an if i starts it via visuel studie there is no problem showing i the browser.

About the other thing, I thoght that i was able to use my pc as sever so that e.g you vil be able to open it from your pc
Reply With Quote
  #5 (permalink)  
Old December 29th, 2012, 10:39 AM
Authorized User
Points: 207, Level: 4
Points: 207, Level: 4 Points: 207, Level: 4 Points: 207, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2012
Posts: 40
Thanks: 8
Thanked 5 Times in 4 Posts
Default

Hi Pskaaning

As you suggest that there is no css file so have you checked that your style-sheet is present on the server(web).
Reply With Quote
  #6 (permalink)  
Old December 29th, 2012, 11:55 AM
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

>> and when I look at the code it look as if there is no css code at all

What do you mean with this? Your CSS should be in a separate file, so what does "no CSS" mean? Is the file empty? Is no file returned? Is the HTML missing a link to the CSS file? Fiddler should tell you this; it should list missing files (a 404) in red.

>> I thoght that i was able to use my pc as sever so that e.g you vil be able to open it from your pc

Technically, yes. However, your PC then also needs to be accessible over the Internet which is unlikely.

If you want our help, please provide more information, such as:

1. The way you set up the site in IIS
2. The exact address in the browser's address bar
3. The final HTML for the first page in the browser
4. What you get when you browse to the URL from the site (from step 2) including the CSS file (e.g. something like http://localhost/App_Data/Monochrome.css where http://localhost/ is the URL for your site from step2)

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
  #7 (permalink)  
Old December 29th, 2012, 02:58 PM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default deploying my web site

[fiddle]# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
15 200 HTTP localhost / 13.339 private text/html; charset=utf-8 iexplore:9256
16 200 HTTP localhost /Styles/Styles.css 0 iexplore:9256
17 200 HTTP localhost /App_Themes/DarkGrey/DarkGrey.css 0 iexplore:9256
18 200 HTTP localhost /Scripts/jquery-1.4.1.min.js 0 iexplore:9256
19 200 HTTP localhost /Images/Banner120x240.gif 0 iexplore:9256
[/fiddle]
thats what fiddle shows at the left side, at the right side there are no syntaks errors
now I gone true chapter 19 again an check all the right, but still the same
Reply With Quote
  #8 (permalink)  
Old December 30th, 2012, 04:50 AM
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

Your static files (such as .css files) return zero bytes. This may indicate you haven't installed the static file handler:

http://mattberther.com/2009/07/16/iis7-and-static-files

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
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
Deploying Site hozdaman BOOK: Beginning ASP.NET Web Pages with WebMatrix 4 February 16th, 2012 02:06 AM
Trouble deploying web site Newbie_71 ASP.NET 3.5 Basics 1 January 17th, 2011 03:16 PM
Chapter 18: Deploying the Web Site ASPNETBeginner BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 September 6th, 2010 06:08 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
Ch 18 Deploying Your Web Site jtruffa BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 August 24th, 2009 07:29 AM



All times are GMT -4. The time now is 08:45 PM.


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