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 )

10732 put(a) pogledan, 5 odgovor(a) 26.7.2013. 13:04:46Kreirao(la) super
super

super

26.7.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" ?

Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
kpeulic

kpeulic

26.7.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"/>
Ovaj sadržaj još nije ocijenjen. 
1849 Reputacija 181 Ukupno objava
super

super

26.7.2013. 13:48:42
thank you for the quick reply, I will try the above code and will post the results.
Ovaj sadržaj još nije ocijenjen. 
6018 Reputacija 709 Ukupno objava
Zoomicon

Zoomicon

26.7.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?

Ovaj sadržaj još nije ocijenjen. 
2793 Reputacija 345 Ukupno objava
khorvat

khorvat

26.7.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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava