XSLT Extension function that executes SQL statement

B

Buddy Ackerman

I've created an Extension Object for use in XslTransforms. One of the
methods in this class connects to a SQL Server database and execute a sql
statement. However, it returns the following error:

Request for the permission of type
System.Data.SqlClient.SqlClientPermission, System.Data, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.


This only happens when this function is called from the xsltransform. Is
there any way around this error that doesn't involve modifying machine level
config files or machine level security as this application runs on server at
various hosting providers possibly in shared hosting environments?

Thanks


--Buddy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top