Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...The code subdirectory The code subdirectory '/pgt/App_Code/HTML/' does not exist
Previous
 
Next
New Post
9/8/2008 8:54 AM
 

Hello all.

I have a DNN portal running on my own server. I had to reinstall some things in IIS 6 and not I can not get my site to load. I get the following error.

Server Error in '/pgt' 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: The code subdirectory '/pgt/App_Code/HTML/' does not exist.

Source Error:

Line 120:      -->
Line 121:      <codeSubDirectories>
Line 122:        <add directoryName="HTML" />
Line 123: <add directoryName="PGT" /> Line 124: <add directoryName="YourCompany.DemoPgt" />

Source File: C:\Inetpub\wwwroot\pgt\web.config    Line: 122


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

 

I have checked the root folder and the folder DOES exist as it should. I am thinking I may have the permissions or something set incorrect in IIS but Im not sure.

 

ANY help would be great!

 
New Post
9/8/2008 9:08 AM
 

delete lines < add directoryname=... /> from web.config file and re-install the modules listed.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/8/2008 9:24 AM
 

Sebastian,

 

Thank you for the very quick reply.

Sorry, I should have mentioned that I have already tried this. If I remove the line for the HTML module, on next load it goes down the list to the next module listed. If I delete all of the listed directories I then get:

Server Error in '/pgt' 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: Could not load file or assembly 'Brettle.Web.NeatUpload' or one of its dependencies. The system cannot find the file specified. (C:\Inetpub\wwwroot\pgt\web.config line 75)

Source Error:

Line 73:     <httpModules>
Line 74:       <!-- add name="Authentication" type="DotNetNuke.HttpModules.AuthenticationModule, DotNetNuke.HttpModules.Authentication" / -->
Line 75:       <add name="UploadHttpModule" type="Brettle.Web.NeatUpload.UploadHttpModule, Brettle.Web.NeatUpload" />
Line 76: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> Line 77: <add name="Compression" type="DotNetNuke.HttpModules.Compression.CompressionModule, DotNetNuke.HttpModules" />

Source File: C:\Inetpub\wwwroot\pgt\web.config    Line: 75


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

 

If I delete all of the <add name.... lines here I get:

Server Error in '/pgt' 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: Could not load file or assembly 'DotNetNuke' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 77:     <httpHandlers>
Line 78:       <!-- This is for CAPTCHA support -->
Line 79:       <add verb="*" path="*.captcha.aspx" type="DotNetNuke.UI.WebControls.CaptchaHandler, DotNetNuke" />
Line 80: <!-- This is for Serving files, secure, insecure, from database --> Line 81: <add verb="*" path="LinkClick.aspx" type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke" />

Source File: C:\Inetpub\wwwroot\pgt\web.config    Line: 79

Assembly Load Trace: The following information can be helpful to determine why the assembly 'DotNetNuke' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


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

 

So it seems as tho it is not able to load ANYTHING. This is why I was thinking it is more of a IIS issue or something else not set right outside of the actual DNN module. Not sure tho. Before I made changes to IIS prior to having this problem I made a copy of my entire portal root directory. Now even copying the backup inplace of the current folders, I still recieve the same errors.

 

Thanks again!

 
New Post
9/8/2008 10:07 AM
Accepted Answer 

Sebastian,

 

Thank you again for your help. I seem to have found the problem. In IIS I changed the permission to Full control for EVERYONE. Althow this has fixed my problem, I do not want to leave access this open for obvious reasons. Can you tell me or do you have a link to a resourse explaining which users in IIS need what access so that I can still have the required access without leaving it open to exploit.

 

Thank you!!

 
New Post
9/8/2008 10:27 AM
 

RDO,

besides code subdirectories, you should have removed line UploadHttpModule, since this is not a core module. All extra modules need to be installed separately and will adjust web.config file accordingly (or contain instructions for it).

regarding permissions, local user "Network Service" (or "ASPNET" on WinXP) needs full access to the installations, anonymous users only needs read permission.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...The code subdirectory The code subdirectory '/pgt/App_Code/HTML/' does not exist


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out