persistently getting "it is an error..."
persistently getting "it is an error..."
persistently getting "it is an error..."
persistently getting "it is an error..."
persistently getting "it is an error..."
persistently getting "it is an error..." persistently getting "it is an error..." persistently getting "it is an error..." persistently getting "it is an error..." persistently getting "it is an error..." persistently getting "it is an error..." persistently getting "it is an error..." persistently getting "it is an error..."
persistently getting "it is an error..." persistently getting "it is an error..."
persistently getting "it is an error..."
Go Back  Xtreme Visual Basic Talk > > > persistently getting "it is an error..."


Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2014, 09:51 AM
starmanMike starmanMike is offline
Junior Contributor
 
Join Date: Oct 2005
Location: near Norwich, UK
Posts: 263
Default 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!! ;-)
Reply With Quote
  #2  
Old 11-14-2014, 12:34 PM
starmanMike starmanMike is offline
Junior Contributor
 
Join Date: Oct 2005
Location: near Norwich, UK
Posts: 263
Default

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!
Reply With Quote
  #3  
Old 11-14-2014, 12:35 PM
starmanMike starmanMike is offline
Junior Contributor
 
Join Date: Oct 2005
Location: near Norwich, UK
Posts: 263
Default

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!
Reply With Quote
  #4  
Old 11-14-2014, 02:25 PM
PlausiblyDamp's Avatar
PlausiblyDamppersistently getting "it is an error..." PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,056
Default

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.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #5  
Old 11-15-2014, 07:23 AM
starmanMike starmanMike is offline
Junior Contributor
 
Join Date: Oct 2005
Location: near Norwich, UK
Posts: 263
Default

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!
Reply With Quote
  #6  
Old 11-15-2014, 07:44 AM
PlausiblyDamp's Avatar
PlausiblyDamppersistently getting &quot;it is an error...&quot; PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,056
Default

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.
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
  #7  
Old 11-16-2014, 08:45 AM
starmanMike starmanMike is offline
Junior Contributor
 
Join Date: Oct 2005
Location: near Norwich, UK
Posts: 263
Default

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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
persistently getting &quot;it is an error...&quot;
persistently getting &quot;it is an error...&quot;
persistently getting &quot;it is an error...&quot; persistently getting &quot;it is an error...&quot;
persistently getting &quot;it is an error...&quot;
persistently getting &quot;it is an error...&quot;
persistently getting &quot;it is an error...&quot; persistently getting &quot;it is an error...&quot; persistently getting &quot;it is an error...&quot; persistently getting &quot;it is an error...&quot; persistently getting &quot;it is an error...&quot; persistently getting &quot;it is an error...&quot; persistently getting &quot;it is an error...&quot;
persistently getting &quot;it is an error...&quot;
persistently getting &quot;it is an error...&quot;
 
persistently getting &quot;it is an error...&quot;
persistently getting &quot;it is an error...&quot;
 
-->