Showing posts with label procedure. Show all posts
Showing posts with label procedure. Show all posts

Saturday, March 31, 2012

system.exception.handles : Object Must Inconvertible

i would like to execute an stored procedure command from asp.net.
i think all of my syntax is generaly true. but when i test it in ie browser. an error occured and
show the messages :
system.exception.handles : Object Must Inconvertible
anyone help me....
thank u very much.Crying [:'(]

Can you post the code that is causing the error?

Note: Please post the appropriate section(s), not the whole page.

Tuesday, March 13, 2012

System.Runtime.Remoting.ObjRef cannot be accessed

Hi.

I'm trying to pass a filestream to a remoted procedure in my ASP.NET application.

I've used remoted procedures which have returned filestreams in the same application without any problems, however when I try to execute a similar procedure and pass a filestream I get the following error:

Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed.

It's driving me simple. Does anyone have a clue whats going on?

Thanks in advance everyone.

Justin.All I can find on the web suggests for me to add something similar to this to my web.config file to allow relaxed security.

<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown
type="ServiceType, common"
objectUri=" ServiceType.soap"
mode="Singleton"
/>
</service>

<channels>
<channel ref="http">
<serverProviders>
<provider ref="wsdl" />
<formatter ref="soap" typeFilterLevel=Full />
<formatter ref="binary" typeFilterLevel=Full />
</serverProviders>
</channel>
</channels>
</application>
</configuration>

But no joy.