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 December 27th, 2012, 12:06 PM
Registered User
 
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:)
 
Old December 27th, 2012, 12:26 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,

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!
 
Old December 28th, 2012, 07:21 PM
Authorized User
 
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.
 
Old December 29th, 2012, 07:38 AM
Registered User
 
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
 
Old December 29th, 2012, 10:39 AM
Authorized User
 
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).
 
Old December 29th, 2012, 11:55 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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!
 
Old December 29th, 2012, 02:58 PM
Registered User
 
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
 
Old December 30th, 2012, 04:50 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 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!





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





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