MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Rename Monox!!  (Mono Support )

Viewed 12963 time(s), 9 post(s) 1/7/2014 2:07:01 PMby nasman
nasman

nasman

1/7/2014 2:07:01 PM
Hi,

Is it possible to rename MonoX folder?

Would the project work without doing anything or It would require massive amount of time to cope renaming like amending path etc?

Thanks
This content has not been rated yet. 
845 Reputation 93 Total posts
tihomir-kit

tihomir.kit

1/7/2014 2:37:09 PM
Hi Nasman,

you would have to:
 - change all rewriting rules
 - edit all controls, webparts and images on all pages (paths to controls need to be changed)
 - run Paths.tt

Hope this helps
This content has not been rated yet. 
526 Reputation 43 Total posts
nasman

nasman

1/7/2014 4:34:18 PM
Thanks for your reply. So its massive time taking job.

Just to know, i realized that only few pages in Page/MonoX folder. How MonoX is inserted in almost all URL?
This content has not been rated yet. 
845 Reputation 93 Total posts
denis

denis

1/7/2014 9:50:41 PM
Hi,
It will take time, but I would not say it is a massive job. This site uses a similar approach, as the original forum controls are inherited and placed in another subfolder.
The right question is why would you want to do it - the URL rewriting approach is almost always a better solution, as the physical path is not seen by the end user.
The rule that you have tried in your original post does not work for the "extensionless" URLs (no .aspx extension), and you will just have to adjust the URL rewriting rules to the pages you want to use.
P.S. Please refrain from posting multiple messages with the identical topic to this forum. The duplicate threads will be deleted as they really don't help us or other users to help you.
This content has not been rated yet. 
7207 Reputation 956 Total posts
nasman

nasman

1/8/2014 9:19:36 AM
Thanks Denis for your reply.

I appreciate your effort to reply my queries. 

The problem is that when you are stuck somewhere in MonoX, you don't get any help other than MonoX forum. So the help channel is extremely narrow and this is the big downside that there are only few number of user/developer exist for this product. On top of that when MonoX is customised, you become unable to help anyway.

So for that reason, more time is spent on some small issues and it causes frustration. 

Adjusting URL rewriting looks very easy and straightforward solution but you got to keep in mind that the huge amount of customisation has taken place in the product, you handed over. So at some instance you guys suggest perfect solution but it doesn't fit in customized MonoX. It doesn't mean you are wrong but it requires to explore awkward questions and how the things are done at the first place. You know what i mean. 

As you suggested. I will not post anything on multiple forum and will keep posting everything here/or other related forum.

Again i appreciate the way you try hard to response as much as you can and i will get  back to you once i am done what you have suggested. 



This content has not been rated yet. 
845 Reputation 93 Total posts
nasman

nasman

1/8/2014 10:32:39 AM
This is the rule already exists. 
<rewrite url="^(.*)/(.*)/dfilter/(.*)/(.*)/(\?(.+))?$" to="$1/$2.aspx?tftype=$3&amp;$6" name="DiscussionTopicFilter" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/{PageName}/dfilter/{FilterType}/{Slug}/"
 />

I have changed to following:

<rewrite url="^/(.*)/dfilter/(.*)/(.*)/(\?(.+))?$" to="$1/MonoX/Pages/SocialNetworking/Discussion.aspx?tftype=$2&amp;$5" name="DiscussionTopicFilter" defaultPage="/MonoX/Pages/SocialNetworking/Discussion.aspx" urlPattern="/dfilter/{FilterType}/{Slug}/" />

It didn't work? Any Help? 
This content has not been rated yet. 
845 Reputation 93 Total posts
khorvat

khorvat

1/8/2014 10:46:24 AM
Did you try to manually put the target URL to browser and see if it properly resolves ?
This content has not been rated yet. 
15993 Reputation 2214 Total posts
nasman

nasman

1/8/2014 11:01:57 AM
This is the url works:

http://mydomain.co.uk/Monox/Pages/SocialNetworking/Discussion/dfilter/LastActiveTopics/Topic-Filter/?groupid=72GTbxsL9EK7fqBbASU0qg

I just need to change it so that it should look like 

http://mydomain.co.uk/Pages/SocialNetworking/Discussion/dfilter/LastActiveTopics/Topic-Filter/?groupid=72GTbxsL9EK7fqBbASU0qg (I put this manually but it didn't resolve)

Just to let you know that The first line in URLRewriter is 

<rewrite url="^(.*)/Pages/(.*).aspx(\?(.+))?$" to="$1/MonoX/Pages/$2.aspx$3" name="PagePaths" urlPattern="/Pages/{PageName}.aspx/" />





This content has not been rated yet. 
845 Reputation 93 Total posts
nasman

nasman

1/8/2014 5:47:44 PM
Step by step we are getting closer to remove MonoX from all URLs but we can see more and more issues like Search in Discussions/Groups is not working. The search result url isn't working and als there are some instances where search result URL is is given when the control is references.

So I am just looking at the possibility if we can rename the MonoX. I renamed it and completed all the steps suggested. When i build and viewed in the browser i can see following Error:

==================================================================

Server Error in '/' Application.Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "MonoSoftware.MonoX.MonoX.Resources.DefaultResources.resources" was correctly embedded or linked into assembly "MonoX" at compile time, or that all the satellite assemblies required are loadable and fully signed.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "MonoSoftware.MonoX.MonoX.Resources.DefaultResources.resources" was correctly embedded or linked into assembly "MonoX" at compile time, or that all the satellite assemblies required are loadable and fully signed.


=====================================================================
This content has not been rated yet. 
845 Reputation 93 Total posts