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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Changing company name of Module created by template (from Changing company name of Module created by template (from 'YourCompany'
Previous
 
Next
New Post
3/5/2010 4:24 PM
 

While on the topic of company names, if I do a search/replace and change the company name from 'YourCompany' to 'MyCompany' I get some errors when I attempt to build:

Error    12    'System.Web.UI.UserControl' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'System.Web.UI.UserControl' could be found (are you missing a using directive or an assembly reference?)    C:\Inetpub\wwwroot\dotnetnuke\DesktopModules\MyCompany\DataConnection\EditDataConnection.ascx.cs    79    40    DataConnection

Error    13    'System.Web.UI.UserControl' does not contain a definition for 'CreatedByUser' and no extension method 'CreatedByUser' accepting a first argument of type 'System.Web.UI.UserControl' could be found (are you missing a using directive or an assembly reference?)    C:\Inetpub\wwwroot\dotnetnuke\DesktopModules\MyCompany\DataConnection\EditDataConnection.ascx.cs    80    38    DataConnection


Error    15    'System.Web.UI.UserControl' does not contain a definition for 'CreatedDate' and no extension method 'CreatedDate' accepting a first argument of type 'System.Web.UI.UserControl' could be found (are you missing a using directive or an assembly reference?)    C:\Inetpub\wwwroot\dotnetnuke\DesktopModules\MyCompany\DataConnection\EditDataConnection.ascx.cs    81    38    DataConnection


Error    21    'System.Web.UI.UserControl' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'System.Web.UI.UserControl' could be found (are you missing a using directive or an assembly reference?)    C:\Inetpub\wwwroot\dotnetnuke\DesktopModules\MyCompany\DataConnection\EditDataConnection.ascx.cs    137    56    DataConnection

It seems the controls 'txtContent' and 'ctlAudit' are attempting to use methods that aren't inherited.  Here are the definitions:

 protected global::System.Web.UI.UserControl ctlAudit;

 protected global::System.Web.UI.UserControl ctlAudit;

 
New Post
3/5/2010 5:36 PM
 
I found the reason.. Apparently when a rename occurs the definitions are changed. Originally the definitions where these: protected global::DotNetNuke.UI.UserControls.LabelControl lblContent; protected global::DotNetNuke.UI.UserControls.ModuleAuditControl ctlAudit; After the renaming, they magically became these: protected global::System.Web.UI.UserControl lblContent; protected global::System.Web.UI.UserControl ctlAudit; As did every other control in the .designer.cs files! So, its seems there is problem with using search/replace. I will try the VS 2008 IDE's refactoring method function and post and update if there this is a better resolution
 
New Post
3/8/2010 10:16 AM
 

an FYI for anyone who runs into the issue:

Changing the namespace in the ascx files cause the .designer.cs files to revert to standard (non-dnn) web controls.  Simple workaround is to backup or copy the code files and paste them when you've made the change.

A strange issue all around

 
New Post
4/7/2010 3:59 AM
 

could this be caused by the fact that the designer cannot find the controls that are registered because they are outside the current solution?

Peter


Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
1/22/2012 6:21 PM
 

Hi

I ran into the same issue but I found that if you search and replace IN FILES everty thing works just fine

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Changing company name of Module created by template (from Changing company name of Module created by template (from 'YourCompany'


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