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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Web.config issueWeb.config issue
Previous
 
Next
New Post
1/5/2011 10:04 AM
 
Hi, I have a strange problem.  I have a module that works, however, when I go into the designer of the View or when I debug (not sure when) I get a local web.config file generated.  With that in place in the module folder I get the following exception at run time and a Telerik tag prefix not registered error in the designer.  If I delete the module's web.config all works well till the next time.  The strange thing is I have another identical test module that does not exhibit this problem.

I have the following in DNNDev\webconfig:

<pages>
<controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>


DotNetNuke.Services.Exceptions.ModuleLoadException: 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.

(...,\DNNDev\DesktopModules\ssmi\web.config line 56) ---> System.Configuration.ConfigurationErrorsException: 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.
 
New Post
1/5/2011 12:22 PM
 
Ed, can you see in IIS if the two folders in desktop modules are setup the same? My guess would be that one of them is marked as a virtual directory while the other is not?

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
1/5/2011 2:11 PM
 
They are the same, I used the VS template to create the projects then rolled code from one to the other. There is only 1 virtual directory in IIS, DNNDev, not one for each module. I removed the web.config (debug and release) from the module folder after the project was created. Somehow in the working module it was recreated again. The VS Designer requires a local module web.config but that causes problems in the run time. This doesn't happen with the Test, working, module.
 
New Post
1/5/2011 4:40 PM
 
What is interesting is that I need to have a local web.config in the module folder with the Telerik tag defined even though it is defined in the virtual folder DNNDev for the VS designer work.  Without the local version the VS designer gives me the create error in both projects and loading the page works in both projects.  

I guess the VS desginer only looks to the local folder for the web.config and doesn't pick up the one at the DNNDev level?

Why one project works with the local web.config and one doesn't is beyond me.  They are configured identically.  I checked and didn't see any setting differences in the DNN Module settings.  Is there anything at the DNN level that dictates which web.config to use?

Error Creating Control - radGridCustomerPoolThis control cannot be displayed because its TagPrefix is not registered in this Web Form.
 
New Post
1/5/2011 5:01 PM
 
Hrmmm the Telerik control, I missed that key fact in the first message. I think I've seen a similar result when working with the Telerik controls, though I'm not sure why.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Web.config issueWeb.config issue


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