What type of ado.net driver are you using? On Tue, Jul 28, 2009 at 4:08 PM, Erin Rollenhagen < e...@entrepreneurialtechnologies.com> wrote:
> Hi Everyone, > > > > I know I’ve brought this up before but I don’t think there was ever an > answer…I got around it at the time by switching from a GoDaddy account to a > HostMySite account that was running in a higher-trust environment. Now my > host has sent out an email saying that they’re switching to medium trust in > a week. I decided to test this out by setting the trust level to medium in > my application, and sure enough, my ibatis calls no longer work. > > > > I’ve tried marking the EntrepreneurialTechnologies.DatabaseHelper class > (which calls Ibatis) with the AllowPartiallyTrustedCallers attribute and > signing it, but to no avail. I still get the security exception. What I’d > like to know is if this is something that just cannot be done, if Ibatis is > fundamentally incompatible with medium-trust environments, or if there is a > way to configure things so that it will run in medium trust. Does anyone > have this working currently? > > > > If this is something obvious that I am not getting about how medium trust > works, please forgive me. I’ve never had to deal with this much before. > Any and all guidance is appreciated. > > > > Here is the stack trace: > > [SecurityException: That assembly does not allow partially trusted > callers.] > > > EntrepreneurialTechnologies.DatabaseHelper.SelectMapperClient.selectList(String > selectName, Object params) +0 > > ET.IowaChiropracticSociety.HomePageBannerService.getActive() +82 > > _DefaultPage.Page_Load(Object sender, EventArgs e) +308 > > System.Web.UI.Control.OnLoad(EventArgs e) +99 > > System.Web.UI.Adapters.ControlAdapter.OnLoad(EventArgs e) +15 > > System.Web.UI.Control.LoadRecursive() +8683053 > > System.Web.UI.Page.ProcessRequestMain(Boolean > includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785 > > System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, > Boolean includeStagesAfterAsyncPoint) +242 > > System.Web.UI.Page.ProcessRequest() +80 > > System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 > > System.Web.UI.Page.ProcessRequest(HttpContext context) +49 > > ASP.default_aspx.ProcessRequest(HttpContext context) +37 > > > System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() > +181 > > System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& > completedSynchronously) +75 > > > > Thanks! > > > > *Erin Rollenhagen* > > Entrepreneurial Technologies > > 12257 University Avenue, Suite 200 > > Clive, Iowa 50325 > > 515.440.1242 > > e...@entretechno.com > > http://www.entretechno.com > > > -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/