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

Forum

[Server Error]This error can be caused by a virtual directory not being configured as an application in IIS.
Last Post 2009-07-08 02:13 PM by Lee Sykes. 15 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
bukk bukkUser is Offline
Nuke Newbie
Nuke Newbie
Posts:2

--
2006-08-18 04:44 PM  

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 SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2006-08-18 10: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/DNNCreative

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

--
2006-08-19 03:23 PM  
Thank you!
I have Emailed you


Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2006-08-21 09: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/DNNCreative

Lee Sykes's Facebook Profile
satyendraUser is Offline
Nuke Newbie
Nuke Newbie
Posts:2

--
2008-05-20 01:53 PM  
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 CraigUser is Online
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9309
Avatar

--
2008-05-20 02:08 PM  



Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
manojUser is Offline
Nuke Newbie
Nuke Newbie
Posts:1

--
2008-12-04 04:46 PM  
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


ARMUser is Offline
Nuke Newbie
Nuke Newbie
Posts:6

--
2009-07-04 07: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 SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2009-07-05 09: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/DNNCreative

Lee Sykes's Facebook Profile
ARMUser is Offline
Nuke Newbie
Nuke Newbie
Posts:6

--
2009-07-05 05: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 SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2009-07-05 07: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/DNNCreative

Lee Sykes's Facebook Profile
ARMUser is Offline
Nuke Newbie
Nuke Newbie
Posts:6

--
2009-07-05 10: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 -


<!-- Connection String for SQL Server 2005 Express -->

<!-- Connection String for SQL Server 2000/2005
name="SiteSqlServer"
connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"
providerName="System.Data.SqlClient" />
-->


and from the site that works fine -


<!-- Connection String for SQL Server 2005 Express -->

<!-- Connection String for SQL Server 2000/2005
name="SiteSqlServer"
connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"
providerName="System.Data.SqlClient" />
-->


ARMUser is Offline
Nuke Newbie
Nuke Newbie
Posts:6

--
2009-07-05 10: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.

175402254471.txt

Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2009-07-06 08: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/DNNCreative

Lee Sykes's Facebook Profile
ARMUser is Offline
Nuke Newbie
Nuke Newbie
Posts:6

--
2009-07-08 12:30 AM  
IIS and Connection string configured properly. Went through the tutorial twice but still keep coming up with the machine key validation problem.


Lee SykesUser is Offline
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945
Avatar

--
2009-07-08 02:13 PM  
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/DNNCreative

Lee Sykes's Facebook Profile
You are not authorized to post a reply.

Active Forums 4.3

Latest Forum Posts

DNN 6.2 by Sameer
Hi All i am using dnn 6.2 beta version for my demo site i need to custmize the 4 modules in that
RE: Deploying dnn by Sameer
Thanks a lot so kind of you
RE: Unable to Create Skin Package by schilders
Joe, When I click the Edit icon next to the skin package on the Host Extensions page, I receive t
horizontal main and submenu items by Dan Glanton
I found a very good tutorial on horizontal main and subitems in DNN Creative, but what about if you
RE: Skin creation - Menu questoni by Joseph Craig
This has to do with the structure of the elements that make up the skin and the CSS. Most likely, y
Skin creation - Menu questoni by CDMeyer
I have a skin and when I add more menu items to the nav bar than can fit in one row of nav, the seco
RE: FCK Editor in DNN 6 by Pingle2009
Just to follow on from Joe's reply, the 'official' line seems to be that not only that the old FCK E
RE: Slice a Site by Dan Glanton
Thanks, I'll look into that when I get a chance.
RE: Creating structured page content by Stephen Bugden
Thankyou very much Joe, I will take a look at your suggestions.
RE: Subpages or dropdowns navigation is going behind this flash by Joseph Craig
I googled a bit and found that this is a messy problem. Possibly the best solution will be to giv
RE: Subpages or dropdowns navigation is going behind this flash by vijendra
Pls check the attachment. That Iframe code we are using and subnavigations are goind behind that.
RE: Rename or move site from domain name to subdomain name by Bill Quinn
Hi Joseph, Thank you so much for your reply. I will be able to implement this later in the we
RE: Creating structured page content by Joseph Craig
Take a look at the DotNetNuke Reports Module, the DotNetNuke Form & List Module, SGSV from Tresslewo
RE: Subpages or dropdowns navigation is going behind this flash by Joseph Craig
It looks like your iframed content may have a z-index that puts it on top of the menu. I can't id
Subpages or dropdowns navigation is going behind this flash by vijendra
Hi, Subpages or dropdowns navigation is going behind this flash. Pls check the url below http://www.
RE: user adding images by rod lloyd
That worked, thank you. I did not expect those permissions to be in File Manager. I note a
RE: Unable to Create Skin Package by Joseph Craig
To be quite honest, I've never used this functionality to create a skin. What I usually do is cre
RE: Unable to Create Skin Package by Joseph Craig
I'm confused by this, too.
RE: Unable to Create Skin Package by schilders
We are running DNN 6.x
RE: Unable to Create Skin Package by Joseph Craig
Which version of DotNetNuke are you using?
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds