You need to Register for free and Login to post a message in the forum.

Forum

Subject: [Server Error]This error can be caused by a virtual directory not being configured as an application in IIS.
Prev Next
You are not authorized to post a reply.

Author Messages
bukk bukk
Nuke Newbie
Nuke Newbie
Posts:2

18 Aug 2006 11:44 AM  

I have asigned aspnet control rights to the dnn directory. DB and web.config have been configurated.

But the ERROR still there:

 

Server Error in '/dir' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 45:   </system.codedom>
Line 46:   <system.web>
Line 47:     <machineKey
Line 48:       validationKey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902"
Line 49:       decryptionKey="F9D1A2D3E1D3E2F7B3D9F90FF3965ABDAC304902F8D923AC"
 

Source File: D:\dir\dnn\web.config    Line: 47

 

Show Additional Configuration Errors:


It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. (D:\dir\dnn\web.config line 93)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. (D:\dir\dnn\web.config line 154)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. (D:\dir\dnn\web.config line 162)
                     
 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 

I need help, thanx

Lee Sykes
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5287


18 Aug 2006 5:44 PM  
Andrew Hock, a module developer - site: www.fingerfuel.com is currently putting together an installation doc for the next issue. - I have a rough version which he has given me permission to send.

If you email me at: lee at dnncreative.com

I will send it across to you which may help you to get started configuring DNN.

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
bukk bukk
Nuke Newbie
Nuke Newbie
Posts:2

19 Aug 2006 10:23 AM  
Thank you!
I have Emailed you
Lee Sykes
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5287


21 Aug 2006 4:43 AM  
I've sent it across, thanks

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
satyendra
Nuke Newbie
Nuke Newbie
Posts:2

20 May 2008 8:53 AM  
I got the same error "This error can be caused by a virtual directory not being configured as an application in IIS." when installing to DNN site.

I need help.

Thanks
Satyendra
Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5327


20 May 2008 9:08 AM  
Something is wrong either with your IIS installation, or the way you created the IIS website.  Take a look at these for some help:


You might find a step that you've missed.

Which version of DotNetNuke?  What operating system?  Local or hosted?

Joe Craig
DNN Creative Support
Subscribe to the website
manoj
Nuke Newbie
Nuke Newbie
Posts:1

04 Dec 2008 11:46 AM  
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
MY ID:manojweb17@gmail.com
ARM
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:7

04 Jul 2009 2:00 AM  
Posted By mnaoj on 04 Dec 2008 11:46 AM
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
MY ID:manojweb17@gmail.com

I'm wondering if there is a solution to this. I just finished backing up my live site and restoring to my localhost but keep getting the configuration error - about the machine key.....when I try to access the machine key on IIS I get the error quoted above.....

Took me almost 6 hrs to get to this stage. Hate to just throw it away and go back to working on the live site only....

Any help would be appreciated!
Lee Sykes
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5287


05 Jul 2009 4:02 AM  
Which version of IIS and operating system are you using?

If you are installing a livesite to localhost I would recommend:

1. You do this using Virtual PC
How to setup and use Microsoft Virtual PC 2007

2. You first of all test by installing a fresh copy of DNN to your localhost installation - if this works you know your software is setup correctly

3. Now try installing live site to localhost - this will minimise the potential problems and will help when troubleshooting
How to backup a live hosted DotNetNuke website and restore it to a localhost installation



Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
ARM
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:7

05 Jul 2009 12:11 PM  
I had already set-up my system for DNN (as per the tutorial) and installed a fresh copy on my localhost and it works fine. The sites I set up from scratch on my localhost work fine, its the one I downloaded from my live site (along with the backed-up database) and tried to setup on my localhost that I'm having problems with. I followed the tutorial "How to backup a live hosted DotNetNuke website and restore it to a localhost installation'' but keep getting the machinekey validation error....

I'm using IIS vers.7.0.6 on Windows Vista
Lee Sykes
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5287


05 Jul 2009 2:23 PM  
ok great, can you confirm that you are using the web.config file from your live site? and all you have changed in the web.config file is the database connection string.

Have you also created a username in SQL server for accessing the database?

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
ARM
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:7

05 Jul 2009 5:13 PM  
I have created a username in SQL server however I haven't changed the connection string in the web.config file.

The connection string looks to be all right. I compared it to another connection string from a site that works and its looks similar....here are the two connections strings -

From the site I'm having problems with -







and from the site that works fine -





ARM
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:7

05 Jul 2009 5:40 PM  
Attached is a file with the two web.config connections strings - one is working fine and the other one is the one that keeps giving me an error when I try to access the site.

Attachment: 175402254471.txt

Lee Sykes
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5287


06 Jul 2009 3:15 AM  
Hello,

ok, you need to make changes to your connection string so that it links to the database that you have restored in your local SQL server.

To do this watch video 3 of How to backup a live hosted DotNetNuke website and restore it to a localhost installation where it covers:

  • How to edit the web.config file for the localhost installation
  • How to edit the database connection string to connect to the local SQL Server Express restored database
  • Editing the SQL Server Express connection strings



Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
ARM
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:7

07 Jul 2009 7:30 PM  
IIS and Connection string configured properly. Went through the tutorial twice but still keep coming up with the machine key validation problem.
Lee Sykes
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5287


08 Jul 2009 9:13 AM  
Can you attach your live website config file and your local web.config file -


of course make sure you XXXX the server, username and password details for the live website config file before posting into the forum.

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > [Server Error]This error can be caused by a virtual directory not being configured as an application in IIS.



ActiveForums 3.7

Latest Forum Posts

RE: Creating Portals before setting the host by cyborama
Thanks for the reply Joe, The way my hosting company does things they don't have per say host hea...
RE: Flash in the HTML Module by robmacker
Wow, why does the forum format my question to make it basically unreadable?? I certainly did not typ...
Flash in the HTML Module by robmacker
Hello members! I have a simple flash application that was written for an HTML page and i'm trying...
Send email with Dynamic Forms Results by jesp17
Hello, Is there a way to automatically generate a report with all form results and then send this r...
Community Edition Question by idesofmarch
I'm learning a lot just browsing around here. Wish I could delete my question below. Oh well. Wher...
RE: DNN Site crashed after module install by mcmanta
I found a work around. Looks like the module replaces the Telerik.Web.UI located in the bin folder o...
RE: iHostASP by chandirika
Hi,I am reselling account with this http://www.goresellers.com/ site ,for my web site's web hosting...
the now content not showing and still showing the old one by wael_e
after i uploading the new contenct in my website and i uploading static html page have introdaction ...
RE: Regular Expression by jumatthey
Hi, Thank you very much Mark. It is indeed a name I am checking. Thank you for your help, very mu...
RE: How to do links? by Guy..L
I think this website is properly structured in that I can drop the requirement to exclude certain pa...
RE: Nav Menu v2 for DotNetNuke v5 - Issue 52 by kparker
What are the advantages of setting the RenderMode to UnorderedList for the Nav Menu? How can this b...
RE: DNN Site crashed after module install by jncraig
Most likely, the module that you installed uses a Telerik library that is different from the one tha...
DNN Site crashed after module install by mcmanta
Hello All,I'm using DNN 5.2.3 after install everything was working fine. I installed the 365 Simple ...
Fun? with styling of Home.aspx by dkemp@karrtuttle.com
I asked my assistant to create a page for me and pursue an idea that I had for our intranet.  I thou...
Using Xenu Link Sleuth to Spot and Improve External Links in a Domain by Sh@wn
Hi,I have used this (useful) program in my dnn website and I have seen several page not found errors...
RE: Change Registration Redirect? by ollep
Thanks guys! So what are you using on this site?? Looks pretty much like the standard DNN regist...
RE: Regular Expression by MarkXA
Hi, For the case in point ValidationExpression="^[a-zA-z-' ]*$" should do it. I've added the hyph...
RE: Regular Expression by MarkXA
Hi, For the case in point ValidationExpression="^[a-zA-z-' ]*$" should do it. I've added the hyph...
How to slow down the menu by datamark
Can you tell me how to slow down the solpart menu so that the mouse user can be a bit more sloppy ab...
RE: How to do links? by Guy..L
It's a fine line between being too automatic and being too configurable.  It's awesome if Nav 2 indi...
AppTheory
RSS Feeds