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...How can i change the path of ModuleMessage.ascxHow can i change the path of ModuleMessage.ascx
Previous
 
Next
New Post
1/8/2009 2:09 AM
 

I have a strong requirement of changing the path of "ModuleMessage.ascx".

Actually i have changed the name of "Admin" directory of my portal as i was having problem running my portal over online shared server.I had uploaded all the files using file uploader.But as the server's "Admin" directory clashes with my portal's "Admin" directory,so i renamed my portal's "Admin" directory. After renaming all the reference of "Admin" directory all over the code and in the Database i was successfull in runnig the portal. But still i am getting one problem i.e. the path of "ModuleMessage.ascx" is still mentioned in code or in the Database as "/MyDirectory/admin/skins/ModuleMessage.ascx".

Please help me in resolving this issue.

Thanks in advance.

 
New Post
1/8/2009 3:50 AM
 

I don't think it is a good idea to rename folders of the distribution, there might be hardcoded links in the code and you will have to redo the effort on every upgrade. I strongly suggest to stand away from this change. Find a different way of integrating other applications like server administration (e.g. by using a different domain).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/8/2009 4:43 AM
 

Thanks Sebastian.

I appreciate your reply.

But for the time being i need the solution for my problem as i have uploaded files and the site is in use as well.

We are able to log into the portal and update contents of pages without any problem. But whenever a warning message like for example incorrect login happens, portal ends up with an error. When i debugged the portal on my local then i faced the same problem and an Http Exception thrown stating "/MyDirectory/admin/skins/ModuleMessage.ascx" does not exist.

I will be very greatfull if any help regarding this can be provided.

 
New Post
1/8/2009 8:02 AM
 

you may check the paths of all controls in Host :: Module definitions, but I fear there are a couple of hardcoded paths in the source code, you need to adopt and recompile.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
1/8/2009 8:51 AM
 

I have already checked Host :: Module definitions in which under  Edit Module Definition section of every module the Source of every module is displaying the path starting with "NewAdminDirectory/" which is correct as i have changed the "Admin " directory name.

 

 

Ln:880:        AddModuleMessage("LoginFailed", ModuleMessageType.RedWarning, True)

The Exception it throws is: The file '/MyDirectory/admin/skins/ModuleMessage.ascx' does not exist.

As you can see it is still picking up the old name of "Admin" directory which i have changed not only in code but in DB also the table name is "ModuleControls" and the column name is "ControlSrc"

The path for ModuleMessage.ascx is still picked up as '/MyDirectory/admin/skins/ModuleMessage.ascx'.

I hope this will help you in understanding my actual problem more clearly.

 

 

 

As i had mentioned earlier stating about wrong login,the line of code in file "Login.ascx.vb" under the directory structure "NewAdminDirectory\Authentication\" which throws HttpException is:

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How can i change the path of ModuleMessage.ascxHow can i change the path of ModuleMessage.ascx


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