Click here to Skip to main content
15,891,033 members
Home / Discussions / Database
   

Database

 
GeneralRe: Sort Results ignoring symbols like ! ? * " Pin
AlexeiXX316-Apr-10 18:35
AlexeiXX316-Apr-10 18:35 
GeneralRe: Sort Results ignoring symbols like ! ? * " Pin
Andy_L_J16-Apr-10 19:02
Andy_L_J16-Apr-10 19:02 
AnswerRe: Sort Results ignoring symbols like ! ? * " Pin
Eddy Vluggen17-Apr-10 0:37
professionalEddy Vluggen17-Apr-10 0:37 
Questionhow to read data from pdf file Pin
raghvendrapanda16-Apr-10 1:37
raghvendrapanda16-Apr-10 1:37 
QuestionProblem with attaching a copy of DB which is recieved from another server Pin
ArtemCh15-Apr-10 8:40
ArtemCh15-Apr-10 8:40 
AnswerRe: Problem with attaching a copy of DB which is recieved from another server Pin
ArtemCh15-Apr-10 9:07
ArtemCh15-Apr-10 9:07 
QuestionREADPAST SP Pin
Amr M. K.14-Apr-10 22:04
Amr M. K.14-Apr-10 22:04 
QuestionSystem.Security.SecurityException while accessing report Pin
nizamuddin73314-Apr-10 19:26
nizamuddin73314-Apr-10 19:26 
I don't no where to post this question please help me

I am facing this problem from last two days

while opening report from my website i am getting following issue this was working fine on our test server
but in client machine we are getting this issue

System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

i am using vs2005 and sql2005 reporting services

i checked on client machine report is opening from report manager
and anonymous user chek box is checked and windows auth check box checked
we have one user reportadmin he has rights browser also and this user also have rights in reportserver db with resexe role .

this id my cod

protected void Page_Load(object sender, EventArgs e)
{
BreadCrumbs.MenuItemID = ModuleID;
HdnParameters.Value = Convert.ToString(Session["UserID"]) + "-" + Convert.ToString(Session["ProviderID"]) + "-" + ViewDataAccessType;

RVReferralListing.BorderWidth = 0;
if (!this.IsPostBack)
{
int referralID = 0;
if (Request.QueryString["ReferralID"] != null)
{
referralID = Convert.ToInt32(Request.QueryString["ReferralID"]);
FillSubReport(referralID);
}
if (referralID == 0)
{
PnlSearchBasedControls.Attributes.Add("style", "display:''");
divMainReport.Attributes.Add("style", "display:''");
divSubReport.Attributes.Add("style", "display:none");
}
else
{
PnlSearchBasedControls.Attributes.Add("style", "display:none");
divMainReport.Attributes.Add("style", "display:none");
divSubReport.Attributes.Add("style", "display:''");
}
Session["ClientAccessData"] = Convert.ToString(Session["UserID"]) + "-" + Convert.ToString(Session["ProviderID"]) + "-" + ViewDataAccessType;
}
}

private void FillSubReport(int referralID)
{
RVReferralSubReport.Visible = true;
RVReferralSubReport.BorderWidth = 2;
Uri ur = new Uri(Convert.ToString(ConfigurationManager.AppSettings["ReportServerUri"]));
RVReferralSubReport.ServerReport.ReportPath = Convert.ToString(ConfigurationManager.AppSettings["ReportPath"]) + "/ChldReferralServicesReport";
RVReferralSubReport.ServerReport.ReportServerUrl = ur;
List<ReportParameter> paramList = new List<ReportParameter>();

paramList.Add(new ReportParameter("ReferralID", referralID.ToString(), false));

RVReferralSubReport.ServerReport.SetParameters(paramList);
}

protected void btnViewReport_OnClick(object sender, EventArgs e)
{
string clientID = "";
string stateID = "";
if (txtClientName.Text.Trim() != "")
{
if (CheckIfExists_ClientName(txtClientName.Text) == "Empty")
{
hdnClientIDTyped.Value = "";
lblWarning.Text = "Please select valid client name from the list.";
ScriptManager.GetCurrent(Page).SetFocus(txtClientName);
txtClientName.Text = "";
MPEWarning.Show();
return;
}
else
{
hdnClientIDTyped.Value = CheckIfExists_ClientName(txtClientName.Text);
}
clientID = hdnClient.Value.ToString() != "" ? hdnClient.Value : hdnClientIDTyped.Value;

}
if (txtState.Text.Trim() != "")
{
if (CheckIfExists_State(txtState.Text) == "StateError")
{
hdnClientIDTyped.Value = "";
lblWarning.Text = "Please select valid state from the list.";
ScriptManager.GetCurrent(Page).SetFocus(txtState);
txtState.Text = "";
MPEWarning.Show();
return;
}
else
{
hdnStateTypedID.Value = CheckIfExists_State(txtState.Text);
}
stateID = hdnState.Value.ToString() != "" ? hdnState.Value : hdnStateTypedID.Value;
}

FillReport(clientID != "" ? clientID : null, stateID != "" ? stateID : null, txtZipCode.Text != "" ? txtZipCode.Text : null);

}

private void FillReport(string clientID, string stateID, string zipCode)
{
RVReferralListing.Visible = true;
RVReferralListing.BorderWidth = 2;
Uri ur = new Uri(Convert.ToString(ConfigurationManager.AppSettings["ReportServerUri"]));
RVReferralListing.ServerReport.ReportPath = Convert.ToString(ConfigurationManager.AppSettings["ReportPath"]) + "/PG_ReferralReport";
RVReferralListing.ServerReport.ReportServerUrl = ur;
List<ReportParameter> paramList = new List<ReportParameter>();

paramList.Add(new ReportParameter("ClientID", clientID, false));
paramList.Add(new ReportParameter("State", stateID, false));
paramList.Add(new ReportParameter("Zipcode", zipCode, false));
paramList.Add(new ReportParameter("ZipCode_1", zipCode, false));
paramList.Add(new ReportParameter("UserID", Convert.ToString(Session["UserID"]), false));
paramList.Add(new ReportParameter("AllowView", Convert.ToInt32(AllowView).ToString(), false));
paramList.Add(new ReportParameter("AllowEdit", Convert.ToInt32(AllowEdit).ToString(), false));
paramList.Add(new ReportParameter("EditDataAccessType", EditDataAccessType, false));
paramList.Add(new ReportParameter("ViewDataAccessType", ViewDataAccessType, false));

RVReferralListing.ServerReport.SetParameters(paramList);
//RVReferralListing.Reset();
hdnClient.Value = "";
hdnState.Value = "";
}
AnswerRe: System.Security.SecurityException while accessing report Pin
nizamuddin73314-Apr-10 23:21
nizamuddin73314-Apr-10 23:21 
QuestionIncorrect syntax near the keyword 'WITH' Pin
icanmakeiteasy14-Apr-10 19:06
icanmakeiteasy14-Apr-10 19:06 
JokeMessage Removed Pin
14-Apr-10 23:50
Michel Godfroid14-Apr-10 23:50 
GeneralRe: Incorrect syntax near the keyword 'WITH' Pin
David Skelly15-Apr-10 1:58
David Skelly15-Apr-10 1:58 
GeneralRe: Incorrect syntax near the keyword 'WITH' Pin
Michel Godfroid15-Apr-10 2:19
Michel Godfroid15-Apr-10 2:19 
AnswerRe: Incorrect syntax near the keyword 'WITH' Pin
WoutL15-Apr-10 2:20
WoutL15-Apr-10 2:20 
GeneralRe: Incorrect syntax near the keyword 'WITH' Pin
icanmakeiteasy9-May-10 20:35
icanmakeiteasy9-May-10 20:35 
QuestionIs it possible to specify multiple text data filters in SQL profiler 2005? Pin
Jon_Boy14-Apr-10 6:36
Jon_Boy14-Apr-10 6:36 
Questionhow to enter the records from one table to another table at the same time Pin
developerit13-Apr-10 22:51
developerit13-Apr-10 22:51 
AnswerRe: how to enter the records from one table to another table at the same time Pin
Dylan Morley14-Apr-10 0:23
Dylan Morley14-Apr-10 0:23 
AnswerRe: how to enter the records from one table to another table at the same time Pin
Mycroft Holmes14-Apr-10 2:09
professionalMycroft Holmes14-Apr-10 2:09 
AnswerRe: how to enter the records from one table to another table at the same time Pin
Sandesh M Patil14-Apr-10 3:24
Sandesh M Patil14-Apr-10 3:24 
GeneralRe: how to enter the records from one table to another table at the same time Pin
Jon_Boy14-Apr-10 6:54
Jon_Boy14-Apr-10 6:54 
AnswerRe: how to enter the records from one table to another table at the same time Pin
dan!sh 14-Apr-10 7:42
professional dan!sh 14-Apr-10 7:42 
Questionsearch from multiple tables Pin
test-0913-Apr-10 21:17
test-0913-Apr-10 21:17 
AnswerRe: search from multiple tables Pin
www.Developerof.NET13-Apr-10 21:50
www.Developerof.NET13-Apr-10 21:50 
AnswerRe: search from multiple tables Pin
Mycroft Holmes13-Apr-10 22:38
professionalMycroft Holmes13-Apr-10 22:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.