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.

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

Viewed 5973 time(s), 5 post(s) 7/26/2013 1:04:46 PMby super
super

super

7/26/2013 1:05:36 PM
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" ?

This content has not been rated yet. 
6018 Reputation 709 Total posts
kpeulic

kpeulic

7/26/2013 1:39:53 PM
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"/>
This content has not been rated yet. 
1849 Reputation 181 Total posts
super

super

7/26/2013 1:48:42 PM
thank you for the quick reply, I will try the above code and will post the results.
This content has not been rated yet. 
6018 Reputation 709 Total posts
Zoomicon

Zoomicon

7/26/2013 2:06:39 PM

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?

This content has not been rated yet. 
2793 Reputation 345 Total posts
khorvat

khorvat

7/26/2013 2:15:52 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts