|
List Info
Thread: iBatis and Medium Trust Environments
|
|
| iBatis and Medium Trust Environments |

|
2006-03-30 22:19:18 |
|
Is it possible to use iBatis on a web server that has been configured to allow ASP.net websites to operate only under Medium trust?
I've tried this with a simple test application and get a Security error when trying to access the iBatis libraries.
I'm guessing that it probably isn't possible since Medium trust puts a lot of restrictions on reflection and I believe iBatis uses reflection for mapping fields to properties in the DAL classes.
Thanks,
Shawn.
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. |
| iBatis and Medium Trust Environments |

|
2006-03-31 04:55:34 |
|
You might try to modify the web_mediumtrust.config to grant Assertion and Reflect permission based on the strong name.
On 3/31/06, Shawn Smiley <yahoo.com">ssmiley483 yahoo.com> wrote:
Is it possible to use iBatis on a web server that has been configured to allow ASP.net websites to operate only under Medium trust?
I've tried this with a simple test application and get a Security error when trying to access the iBatis libraries.
I'm guessing that it probably isn't possible since Medium trust puts a lot of restrictions on reflection and I believe iBatis uses reflection for mapping fields to properties in the DAL classes.
Thanks,
Shawn.
|
| iBatis and Medium Trust Environments |

|
2006-03-31 12:35:13 |
|
Thanks for the reply. Unfortunately my code will be running on a shared server at my hosting provider so I can't modify the trust level or allowed permissions.
I'll just have to come up with a different DAL solution. I'll probably just throw together a very simple one (I only have 3 tables in a SQL Server db).
Thanks,
Shawn.
Gilles Bayon <ibatis.net gmail.com> wrote: You might try to modify the web_mediumtrust.config to grant Assertion and Reflect permission based on the strong name.
On 3/31/06, Shawn Smiley <yahoo.com">ssmiley483 yahoo.com> wrote:
Is it possible to use iBatis on a web server that has been configured to allow ASP.net websites to operate only under Medium trust?
I've tried this with a simple test application and get a Security error when trying to access the iBatis libraries.
I'm guessing that it probably isn't possible since Medium trust puts a lot of restrictions on reflection and I believe iBatis uses reflection for mapping fields to properties in the DAL classes.
Thanks, Shawn.
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. |
| iBatis and Medium Trust Environments |

|
2006-03-31 22:03:19 |
Is this with .NET 1.1 or 2.0? I have applications hosted
with
GoDaddy.com and I haven't recieved any errors about
security.
--- Shawn Smiley <ssmiley483 yahoo.com> wrote:
> Thanks for the reply. Unfortunately my code will be
running on a
> shared server at my hosting provider so I can't modify
the trust
> level or allowed permissions.
>
> I'll just have to come up with a different DAL
solution. I'll
> probably just throw together a very simple one (I only
have 3 tables
> in a SQL Server db).
>
>
> Thanks,
>
> Shawn.
>
> Gilles Bayon <ibatis.net gmail.com> wrote: You
might try to modify
> the web_mediumtrust.config to grant Assertion and
Reflect permission
> based on the strong name.
>
>
> On 3/31/06, Shawn Smiley <ssmiley483 yahoo.com> wrote: Is it
> possible to use iBatis on a web server that has been
configured to
> allow ASP.net websites to operate only under Medium
trust?
>
> I've tried this with a simple test application and get
a Security
> error when trying to access the iBatis libraries.
>
> I'm guessing that it probably isn't possible since
Medium trust puts
> a lot of restrictions on reflection and I believe
iBatis uses
> reflection for mapping fields to properties in the DAL
classes.
>
> Thanks,
>
>
> Shawn.
>
>
>
> ---------------------------------
> New Yahoo! Messenger with Voice. Call regular phones
from your PC
> and save big.
>
>
>
>
>
>
>
> ---------------------------------
> New Yahoo! Messenger with Voice. Call regular phones
from your PC and
> save big.
|
|
| iBatis and Medium Trust Environments |

|
2006-04-01 00:06:03 |
|
This is currently with .net 1.1 hosted by 1&1. The FAQ on their site doesn't explicitly say that they are running in Medium trust, but I inferred that based on the list of restrictions they indicate.
The restrictions include: -No file access outside of the application directory -No calls to unmanaged code -No access to any data access driver other than System.Data.SqlClient -No access to IsolatedStorage -No access to system environment variables -Application Tracing/debugging is not allowed -No access to Message Queues, Directory Services, Printing, or Performance Counters -No access to the Registry or Windows Event Logs -Control of security relavant infrastructure like ControlAppDomain, ControlEvidence, RemotingConfiguration, UnmangedCode and others --Cannot create or open network sockets
Thanks, Shawn
Ron Grabowski <rongrabowski yahoo.com> wrote: Is this with .NET 1.1 or 2.0? I have applications hosted with GoDaddy.com and I haven't recieved any errors about security.
--- Shawn Smiley yahoo.com> wrote:
> Thanks for the reply. Unfortunately my code will be running on a > shared server at my hosting provider so I can't modify the trust > level or allowed permissions. > > I'll just have to come up with a different DAL solution. I'll > probably just throw together a very simple one (I only have 3 tables > in a SQL Server db). > > > Thanks, > > Shawn. > > Gilles Bayon gmail.com> wrote: You might try to modify > the web_mediumtrust.config to grant Assertion and Reflect permission > based on the strong name. > > > On 3/31/06, Shawn Smiley yahoo.com> wrote: Is
it > possible to use iBatis on a web server that has been configured to > allow ASP.net websites to operate only under Medium trust? > > I've tried this with a simple test application and get a Security > error when trying to access the iBatis libraries. > > I'm guessing that it probably isn't possible since Medium trust puts > a lot of restrictions on reflection and I believe iBatis uses > reflection for mapping fields to properties in the DAL classes. > > Thanks, > > > Shawn. > > > > --------------------------------- > New Yahoo! Messenger with Voice. Call regular phones from your PC > and save big. > > > > > > > > --------------------------------- > New Yahoo! Messenger with Voice. Call regular phones from your PC and > save
big.
yahoo.com>gmail.com>yahoo.com>
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big. |
[1-5]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|