I have an assembly with linq to sql mappings and I'd like to utilize it in my webpart. But when I try following:
DataList dataList = new DataList(); dataList.DataSource = DB.Foo; dataList.DataBind();
CreateChildControls, I'm getting sql exception that user IUSR could not log into database. I wonder why it tries to connect with IUSR while I have set another identity for my application pool and that user has access to database. How can I make it connect to database with application pool identity?