Xtreme Visual Basic Talk

Xtreme Visual Basic Talk (http://www.xtremevbtalk.com/)
-   ASP.Net (http://www.xtremevbtalk.com/asp-net/)
-   -   persistently getting "it is an error..." (http://www.xtremevbtalk.com/asp-net/327378-persistently-getting-error.html)

starmanMike 11-09-2014 10:51 AM

persistently getting "it is an error..."
 
Hi,
I am learning asp.net using the Darie/Barnett book (3rd edn) and while most of the stuff works well, I inconsistently get a long error message which starts "it is an error to..." and has to do with the web.config file, IIS, and that sort of thing. I am using the native "Cassini" server and have not touched IIS at all. I have searched for a cure for this problem (it seems I'm not alone!) and most people seem to suggest that the problem lies in having either a duplicate web.config file or having one in the wrong place. I have only one web.config file and that is located in the root directory of the project, which is where I understand it should be. Do I need to modify it in some way, and if so, how? Would it be better to not use Cassini at all? I run a WAMP server on my other machine for PHP, but have no experience whatsoever with IIS. So be gentle with me!! ;-)

starmanMike 11-14-2014 01:34 PM

Just an update; I have since gone into IIS and set the virtual directory ("c/dorknozzle") as an application, which apparently is supposed to work, but I still get this same annoying message on every page. Incidentally, what's 'virtual' about this directory? It's there in windows explorer!
At the moment I can go no further in the book, because every page produces this !**ing error message!

starmanMike 11-14-2014 01:35 PM

Just an update; I have since gone into IIS and set the virtual directory ("c/dorknozzle") as an application, which apparently is supposed to work, but I still get this same annoying message on every page. Incidentally, what's 'virtual' about this directory? It's there in windows explorer!
At the moment I can go no further in the book, because every page produces this !**ing error message!

PlausiblyDamp 11-14-2014 03:25 PM

From an IIS point of view a virtual folder is one that appears to be part of the web site's hierarchy but in reality it may be located elsewhere on the file system.

Unless the current part in the book is dealing with security it might be worth trying to remove the <authorization> section from the web.config to see if that helps.

starmanMike 11-15-2014 08:23 AM

Thanks all,
What pleases me about your replies is that they are totally different from those I have found before - many of which seemed to be borrowed (almost said 'plagiarised' there...) from earlier sources, and told you nothing new - all of them seemed to mention two scenarios, none of which applied to me.
I am definitely using a later version of VS than 2010. Downloaded it a couple of months ago.
Just another question! How do I not use Cassini, since that's the default? Do I simply move everything to the IIS folder ('inetweb' I think it is) or is there a setting somewhere in VS that allows you to browse with IIS instead?
Many thanks / diolch yn fawr!

PlausiblyDamp 11-15-2014 08:44 AM

If you right click on the project in visual studio there should be an option to use IIS Express which will stop the project using Cassini.

starmanMike 11-16-2014 09:45 AM

Hi again,
I redid the project, this time omitting some of the test pages that I had previously included in it, and the error message has gone. Must have been something in them that was causing the problem. But I shall still heed your collective good suggestions! Thanks.


All times are GMT -6. The time now is 05:13 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Optimisation provided by DragonByte SEO v2.0.15 (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
All site content is protected by the Digital Millenium Act of 1998. Copyright©2001-2011 MAS Media Inc. and Extreme Visual Basic Forum. All rights reserved.
You may not copy or reproduce any portion of this site without written consent.