What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

HB coder needed

Sidalol

Member
Joined
Jul 1, 2010
Messages
987
Reaction score
18
I'm currently getting the error HttpUtility does not exist in the current context, as well as The type or namespace name 'HttpUtility' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) when I compile via HB.

I've added System.Web as a reference when working with the project, but it doesn't work when compiling with HB.
 
Things that go BUMP in the night.
It looks like HB wasn't linked with the assembly you're trying to use so you're out of luck unless you find an alternive way to achieve what you're trying to do or maybe convince the devs to link to that assembly.
 
Forwarded to Nesox because I have no damned idea.
 
It looks like HB wasn't linked with the assembly you're trying to use so you're out of luck unless you find an alternive way to achieve what you're trying to do or maybe convince the devs to link to that assembly.

It's just System.Web that's included within .NET framework.
 
System.Web doesn't exist in Honorbuddy's Appdomain so it won't add it to the compiler options when compiling Plugins, routines bots etc...
We MIGHT add it, we talked about doing so long time ago but nothing was decided.
You either have to the class by yourself or just do it in another way ;)
 
System.Web doesn't exist in Honorbuddy's Appdomain so it won't add it to the compiler options when compiling Plugins, routines bots etc...
We MIGHT add it, we talked about doing so long time ago but nothing was decided.
You either have to the class by yourself or just do it in another way ;)

Damn that sucks ass. I need it for my MSN plugin :( Is there any workaround? Or can I request it's added?
 
Told'ya you should to Jabber instead...

Lol I've never used Jabber in my life. I don't even know what it looks like. I might have a look into it as an extension but not if I can't get this one working. There must be some sort of workaround to get System.Web working in HB?
 
Short of them adding it. No theres not. Write your own http handler, or use some code on the net. Theres tons of them. Simple and Complex.
 
Lol I've never used Jabber in my life. I don't even know what it looks like. I might have a look into it as an extension but not if I can't get this one working. There must be some sort of workaround to get System.Web working in HB?

Jabber is an open source IM platform. Google uses it for Google Talk. http://xmpp.org/
 
If you need url encoding, there are some nice functions in URL class, which is available.
 
I think he needs the http handler for rerouting in-game whispers to msn though, not sure where url encoding comes into the picture.
 
I think he needs the http handler for rerouting in-game whispers to msn though, not sure where url encoding comes into the picture.

MSN protocol = XML => escape special chars

#
 
You can always load it via Reflection if you're a sadomasochist.
 
Or just use the WebClient class. (System.Net if I remember correctly)

For proper URL encoding; you need to reference another library, that HB doesn't currently allow.
 
Or just use the WebClient class. (System.Net if I remember correctly)

For proper URL encoding; you need to reference another library, that HB doesn't currently allow.
Huh?

Code:
string escaped = Uri.EscapeUriString("any string that contains bad URI characters!");
 
Huh?

Code:
string escaped = Uri.EscapeUriString("any string that contains bad URI characters!");

There's a class in System.Web.dll called HttpUtility that has quite a few more functions.
 
Back
Top