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 11433 time(s), 5 post(s) 26.07.2013 13:04:46by super
super

super

26.07.2013 13:05:36
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" ?

Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts
kpeulic

kpeulic

26.07.2013 13:39:53
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"/>
Dieser Inhalt wurde noch nicht bewertet. 
1849 Reputation 181 Total posts
super

super

26.07.2013 13:48:42
thank you for the quick reply, I will try the above code and will post the results.
Dieser Inhalt wurde noch nicht bewertet. 
6018 Reputation 709 Total posts
Zoomicon

Zoomicon

26.07.2013 14:06:39

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?

Dieser Inhalt wurde noch nicht bewertet. 
2793 Reputation 345 Total posts
khorvat

khorvat

26.07.2013 14:15:52
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
Dieser Inhalt wurde noch nicht bewertet. 
15993 Reputation 2214 Total posts