Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : 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 July 20th, 2016, 02:16 AM
Registered User
 
Join Date: Jul 2016
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Publishing First WebSite-Beginning ASP.NET 4.5.1

I have lodged a request for support via email before realising that I should be using this forum. I will include the text from my emails here:

I started studying this book some weeks ago and you have already helped me with an early question about source code.

I have now got to the stage of publishing the web site (PlanetWrox) and have a problem. I have installed IIS and configured it according to the book’s instruction and when I invoke my site through the browser ( HTTP:\\localhost ) as instructed I get the following error.
HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.

I noticed that the file system security settings had not been applied correctly. All the directories inside RELEASE were missing the READ permission but did have the LIST FOLDER CONTENTS permission. NB. The RELEASE folder had both settings so I can’t see why the sub-folders missed SOME of the settings.

I corrected that situation by manually setting each directory and tried the HTTP:\\localhost again. Same outcome.

I wonder if, on my first attempt to open the website IIS absorbed the (incorrect) access authorities and is reusing them each time I try to open the site. If so how can I reset them?

I should note that I am using:
Windows 10 Pro
VS Community 2015
SQLExpress 2014
CHROME browser

Any helpful comments would be greatly appreciated.
================================================

Further to my email last night I can add the following information.

I have followed the book’s suggestion of setting authorities for EVERYONE to have READ,LIST FOLDER,MODIFY,WRITE,EXECUTE from the folder above RELEASE and the website works. When I remove EVERYONE it doesn’t work. So it is an authorities problem.

I also changed the specified process and gave .NET v4.5(user) READ,LIST FOLDER,MODIFY,WRITE,EXECUTE and that propagated successfully down to all sub-folders and other items. However the website still doesn’t work.

As I said last night, I will really appreciate any help you can give.
 
Old August 9th, 2016, 11:16 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Sorry for my late response. I was on vacation.

Do you still need help with this? If so, can you check which application pool has been assigned to your site? That's the one for which you need to set the permissions.

Where did you store the release folder? In a folder outside of your documents i.e. C:\BegASPNET\Release?

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 August 10th, 2016, 02:07 AM
Registered User
 
Join Date: Jul 2016
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem Status

Thanks Imar for following up my post. It is a little late. I am now well into developing my first app and have had to uninstall the Wrox website so I can use debug for the new project.
One of my problems may well have been that I was developing on the same computer that I was installing the website to and that was risky. I have very little knowledge of web server environments. Your book has helped.
I had the Release directory well away from my Documents. C:\Z_DATA\ASPDEV\BegASPNET\Release
The Site was installed to .NET v4.5 as instructed and that was the username I set the security for - so all should have been well. The problem may have been a Windows 10 one, which I am new to. When I set up the security at the top level and then asked Windows to ripple it down to all sub-directories and items it didn't work. None of the lower levels got READ access even though the top level had it. When I rectified that and tried again, it still didn't work.

I am a retired 'old timer' trying to learn a new technology and all I have is the one PC. I don't have access to to a .NET web server at all to try things out on. DO you have any suggestions?
 
Old August 12th, 2016, 03:14 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

>> DO you have any suggestions?

For what? For testing multiple sites? On IIS, also on Windows 10, you can create multiple sites. Just right-click on the Sites node and click Add Website.

Hope this helps,

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 August 14th, 2016, 11:30 PM
Registered User
 
Join Date: Jul 2016
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default .NET Webservers

Thanks Imar
My question was related to the problem I had starting the new project with the Wrox Site installed on the same machine. For some reason I wasn't able to use DEBUG until I uninstalled the default application in IIS. Is there a way I can get onto some external server to try out and demonstrate my apps? Perhaps an external service for small players like me??
Thanks for any input.
Peter
 
Old August 16th, 2016, 10:20 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Like I said, you should be able to do this on Windows. I have about 15 sites running on my machine without issues.

For debugging, I would debug as explained in the book; i.e. open the web site as a File based web site using IIS Express in VS instead of going through the full local IIS.

Hopes his helps,

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
I have created a asp. Net website HathTech BOOK: Beginning ASP.NET 4.5.1 : in C# and VB 3 June 16th, 2015 05:08 AM
Adding dll to website and publishing it on server avidan ASP.NET 4 General Discussion 0 January 15th, 2012 08:09 AM
Uploading asp.net website Rebel ASP.NET 2.0 Basics 2 November 15th, 2007 04:23 AM
ASP.NET Website Programming: ... VB.NET ed. slowhand BOOK: ASP.NET Website Programming Problem-Design-Solution 0 November 29th, 2003 09:56 PM
ASP.NET Website Programming VB.NET version lean4huskytop Wrox Book Feedback 1 July 7th, 2003 10:35 AM





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