Mono Support How to remove monox work from "MonoSoftware.MonoX.GetImage.axd" 

Viewed 11437 time(s), 5 post(s), 7/26/2013 1:04:46 PM - by super
7/26/2013 1:05:36 PM
6018 Reputation 709 Total posts

When we try to see the url of any image on monox site (by right clicking on any user's profile), it gives a long url like this:

http://www.mono-software.com/MonoSoftware.MonoX.GetImage.axd?git=UserAvatar&entityid=eaaa2f38-c504-49a2-a741-dcf9bffef65f&CacheDuration=0&1917313352

How to remove "MonoSoftware.MonoX" from the url and make it custom and similar to my domain ?

Update: Please change the title of this topic to - How to remove monox work from "MonoSoftware.MonoX.GetImage.axd" ?

1
7/26/2013 1:39:53 PM
1849 Reputation 181 Total posts

You need to make following changes:

Global.asax:
add bellow code to the ApplicationStart

public static string GetImageHandlerPath = "/CustomName.GetImage.axd"

web.config: 

Replace this code:
<remove verb="POST,GET" path="MonoSoftware.MonoX.GetImage.axd"/>
<add verb="POST,GET" path="MonoSoftware.MonoX.GetImage.axd" type="MonoSoftware.MonoX.GetImage"/>
with this code:
<remove verb="POST,GET" path="CustomName.GetImage.axd"/>
<add verb="POST,GET" path="CustomName.GetImage.axd" type="MonoSoftware.MonoX.GetImage"/>

 And replace this code:
<remove name="MonoSoftware.MonoX.GetImage.axd" />
<add name="MonoSoftware.MonoX.GetImage.axd" verb="POST,GET" path="MonoSoftware.MonoX.GetImage.axd" type="MonoSoftware.MonoX.GetImage"/>
with this code:
<remove name="MonoSoftware.MonoX.GetImage.axd" />
<add name="MonoSoftware.MonoX.GetImage.axd" verb="POST,GET" path="CustomName.GetImage.axd" type="MonoSoftware.MonoX.GetImage"/>

2
7/26/2013 1:48:42 PM
6018 Reputation 709 Total posts

thank you for the quick reply, I will try the above code and will post the results.

3
7/26/2013 2:06:39 PM
2793 Reputation 345 Total posts

won't they have to implement CustomName.GetImage.axd? Or do they rename/edit the other .axd?

if blackbox and can't edit maybe use assembly mapping?

4
7/26/2013 2:15:52 PM
15993 Reputation 2214 Total posts

Hi,

1. there are two settings one for IIS 6, and one for IIS 7.x and above
2. "CustomName.GetImage.axd", no need to implement this as this is only the path name, the underneath type stays the same.
3. I think there is no need for assembly mapping here.

Regards

5
This is a demo site for MonoX. Please visit Mono Software for more info.