views:

240

answers:

2

I Develope a XBAP Partial trust that use datagrid. This DataGrid has a TemplateColumn that use AutoComplateBox as Editing Element. When Click on One of that Column's cell throw the exception

System.Security.SecurityException: That assembly does not allow partially trusted callers.

any idea? tanx

A: 

Reza, make sure the AutoCompleteBox assembly supports partially trusted caller. This is usually done through [AllowPartiallyTrustedCaller] attribute definition on the source assembly.

If you don't have access to the source file in order to add the attribute, you can change your application to run full-trust.

Hope this helps.

James
thanx james. I need a solution that use original binary file and I can't change my application to full trust.
yoohoo
A: 

This problem solved in Visual Studio 2010 and can use it without any exception

yoohoo