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 ...Problem in 4.3.4Problem in 4.3.4
Previous
 
Next
New Post
8/5/2006 4:43 PM
 

Greetings,

I downloaded a fresh source package for 4.3.4 and hooked it up. Everything was going great till I tried to build the new site and it **SMURF** about not being able to find ReportInfo and ReportController code. Surprise, surprise, it's not there!

So I downloaded the Report source package, and I go to install the sucker by uploading the module's code (still not sure this would fix the original problem), when I get this nice little failure.

What exactly do I need to do to fix this crap? It appears to be very unhappy about adding stuff to the app_code directory, and this shouldn't b a trust issue since all of DNN is supposed to be Medium trust and this is a DNN sanctioned project.

StartJob Creating files
Info Created D:\Websites\DotNetNuke.4.3.4.Dev\Website\DesktopModules\Reports\ViewReports.ascx
Info Created D:\Websites\DotNetNuke.4.3.4.Dev\Website\DesktopModules\Reports\ViewReports.ascx.vb
Info Created D:\Websites\DotNetNuke.4.3.4.Dev\Website\DesktopModules\Reports\Settings.ascx
Info Created D:\Websites\DotNetNuke.4.3.4.Dev\Website\DesktopModules\Reports\Settings.ascx.vb
Info Created D:\Websites\DotNetNuke.4.3.4.Dev\Website\DesktopModules\Reports\App_LocalResources\ViewReports.ascx.resx
Info Created D:\Websites\DotNetNuke.4.3.4.Dev\Website\DesktopModules\Reports\App_LocalResources\Settings.ascx.resx
Failure ExceptionSystem.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (machine.config) ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName) at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName, Boolean assertPermissions) at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName) at System.Configuration.Internal.DelegatingConfigHost.OpenStreamForRead(String streamName) at System.Configuration.UpdateConfigHost.OpenStreamForRead(String streamName) at System.Configuration.BaseConfigurationRecord.InitConfigFromFile() The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.FileIOPermission The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace --- at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors) at System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams) at System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type typeConfigHost, Object[] hostInitConfigurationParams) at System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site, String locationSubPath, String server, String userName, String password, IntPtr tokenHandle) at System.Web.Configuration.WebConfigurationManager.OpenWebConfigurationImpl(WebLevel webLevel, ConfigurationFileMap fileMap, String path, String site, String locationSubPath, String server, String userName, String password, IntPtr userToken) at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(String path) at DotNetNuke.Common.Utilities.Config.AddCodeSubDirectory(String name) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateModuleFile(PaFile File, PaFolder Folder) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.CreateFiles(PaFolder Folder) at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnInstallerBase.Install(PaFolderCollection folders) at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()

 
New Post
8/5/2006 5:15 PM
 

During the installation of a 4.x project which has files in the app_code directory, the install is adding this directory to the web.config file.

It looks like this is not working somehow (maybe a security / file access problem?)

You could try adding the directory manually to the web.config

<!-- register your app_code subfolders to generate granular assemblies during compilation
      <codeSubDirectories>
         <add directoryName="sub-directory name"/>
      </codeSubDirectories>
      -->

must be changed to

<!-- register your app_code subfolders to generate granular assemblies during compilation      -->
      <codeSubDirectories>
         <add directoryName="Reports"/>
      </codeSubDirectories>


Geert Veenstra
 
New Post
8/5/2006 5:27 PM
 

Did that, seems to be working. Would be nice to knoww hat's causing this though.

How does one debug a module in app_code?

 
New Post
9/4/2006 1:05 AM
 
I'm having this same problem except that it I can't find a download for the Reports source on the DotNetNuke site.  Can someone send me a link where I can get it?

Thanks!

Ian
 
New Post
9/12/2006 2:07 PM
 
I am getting this same exact error when trying to upload a module in DNN 4.3.3. Also the fix you presented earlier doesn't seem to fix anything. Any other suggestions?
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Problem in 4.3.4Problem in 4.3.4


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