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 03: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 05: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 11: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 04: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 10: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 02: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 Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9005
Avatar

--
2008-05-20 03: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 05: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 08: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 10: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 06: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 08: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 11: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 11: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 09: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 01: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 03: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

Enforce Terms Tutorial Update by Vistalogix Corporation
I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
RE: Best Practices for Modifying a Custom Module by Joseph Craig
Start up the development website, then install the module using the package that you have. Then, yo
Best Practices for Modifying a Custom Module by schilders
Good Morning, I'm needing to modify a custom built module created by another developer targeted f
RE: Admin menu problem by alireza arabiyan
hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
RE: Admin menu problem by Joseph Craig
Yes, that is what you should have done. What is the URL for your home page? What is the URL for
RE: Admin menu problem by alireza arabiyan
hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
RE: Admin menu problem by Joseph Craig
How did you move it? Have you added an entry in the portalalias table for the site's domain name?
RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
Set up a user with dbo privileges and set the connection string for that user, rather than using Win
Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
Admin menu problem by alireza arabiyan
hi i installed dnn 6 on localhost and move it in my host, all link's , pages and modules are ok,
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config procedure
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config
dnn 4.4 upgrade issue by imran shaikh
hi this is imran i am upgrading dnn 4.4 to dnn 6.0.2 and getting this error please help me for this
RE: How to build Skins for DNN 6.x by Joseph Craig
I'd recommend that you try replacing the hard-coded text with the DotNetNuke Text skin object. That
RE: Module permission does not work! by Joseph Craig
What permissions have you give to that role?
RE: DNN nav issue by Joseph Craig
Are you using a custom skin? How often does this happen?
RE: Friendly URLs Broken by Joseph Craig
I don't entirely understand this, but I'm glad you got things working.
RE: How to build Skins for DNN 6.x by Christopher Adamakis
Dear all, I have one more question regarding greek fonts. If you check my site http://www.expertsoft
RE: Dnn local setup problem by imran shaikh
this is error is resolve now now getting this one Server Error in '/cooperpharma.ma' Applicat
RE: Module permission does not work! by Abraham Tameru
I created a special role for the user to administer the site. The user is not a member of the Admini
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds