Click here to Skip to main content
15,903,203 members
Home / Discussions / Database
   

Database

 
GeneralRe: Database design Pin
Rocky#16-Nov-07 4:29
Rocky#16-Nov-07 4:29 
QuestionNewer newbie question - Access forms Pin
john john mackey15-Nov-07 11:49
john john mackey15-Nov-07 11:49 
AnswerRe: Newer newbie question - Access forms Pin
michaelvdnest16-Nov-07 0:38
michaelvdnest16-Nov-07 0:38 
GeneralRe: Newer newbie question - Access forms Pin
john john mackey19-Nov-07 5:30
john john mackey19-Nov-07 5:30 
QuestionVS2005 and SQL Server Express Pin
Chris Meech15-Nov-07 9:28
Chris Meech15-Nov-07 9:28 
Questionmultiple data source queries Pin
mobius11100115-Nov-07 8:36
mobius11100115-Nov-07 8:36 
AnswerRe: multiple data source queries Pin
pmarfleet15-Nov-07 9:53
pmarfleet15-Nov-07 9:53 
QuestionRemote accessing of reportserver using SSRS 2005 Pin
MSinha15-Nov-07 5:03
MSinha15-Nov-07 5:03 
I am using SSRS 2005. Trying to connect reportserver remotely. and trying to fetch reports and collect on a treeview. But getting following error. This works fine, when the web server & sql server are on the same system. I mean works fine locally. Please help me.

Error::

System.Web.Services.Protocols.SoapException: The item '/Sajan Reports' cannot be found. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ItemNotFoundException: The item '/Sajan Reports' cannot be found.
at Microsoft.ReportingServices.Library.ListChildrenAction.PerformActionNow()
at Microsoft.ReportingServices.Library.RSSoapAction.Execute()
at Microsoft.ReportingServices.WebServer.ReportingService2005.ListChildren(String Item, Boolean Recursive, CatalogItem[]& CatalogItems)
--- End of inner exception stack trace ---
at Microsoft.ReportingServices.WebServer.ReportingService2005.ListChildren(String Item, Boolean Recursive, CatalogItem[]& CatalogItems)

Source codes
Global.asax.cs
**************
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Services.Protocols;
using Microsoft.ReportingServices.Library.Soap2005;

///
/// Summary description for Global
///

public class Global : System.Web.HttpApplication
{
public void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
}
public void Application_End(object sender, EventArgs e)
{
// Code that runs on application startup
}
public void Session_Start(object sender, EventArgs e)
{
// Code that runs on application startup
Session["Uid"] = "";
}



public void Session_End(object sender, EventArgs e)
{
// Code that runs when a session ends.
}

// Report Server defines the URL to root of the
// Reporting Services home page.
public static string ReportServer
{
get { return "http://10.10.40.2/reportserver"; }

}

// ReportPath, when appended to the ReportServer property,
// will define the root of the report search.
// For example, to view all available reports on the report
// server, use "/" as the ReportPath. Setting the value to
// "/MyDemoReports", would only show reports and subdirectories
// under http://ReportServer/MyDemoReports.
public static string ReportPath
{
get { return "/Sajan Reports"; }

}

// There are a couple places where we need to do string
// manipulation to add and remove path seperators -
// sometimes the seperator needs to be passed as an array
// of char, othertimes as a string. These two properties
// simply define both so the code is a little cleaner
// when we do the string munging.
public static char[] PathSeparatorArray
{
get { return pathSeparatorArray; }
}

public static string PathSeparatorString
{
get { return pathSeparatorString; }
}
protected static char pathSeparator = '/';
protected static char[] pathSeparatorArray = { pathSeparator };
protected static string pathSeparatorString = new string(pathSeparator, 1);
}


RenderReport.aspx.cs
*********************
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class RenderReport : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
ReportViewer1.ServerReport.ReportServerUrl = new Uri ("http://10.10.40.2/reportserver");
ReportViewer1.ServerReport.ReportPath = Global.ReportPath + Request["Path"];
}

}
}


Fetching and collecting on treeview with the following code
***********************************************************
rService.Credentials = System.Net.CredentialCache.DefaultCredentials;
catalogItems = rService.ListChildren(Global.ReportServer, true);
TreeView_Reports.Nodes.Clear();
RadTreeNode node16 = new RadTreeNode();
node16.Text = "Report";
TreeView_Reports.Nodes.Add(node16);
TreeView_Reports1(TreeView_Reports, node16, catalogItems);
AnswerRe: Remote accessing of reportserver using SSRS 2005 Pin
pmarfleet15-Nov-07 6:24
pmarfleet15-Nov-07 6:24 
GeneralRe: Remote accessing of reportserver using SSRS 2005 [modified] Pin
MSinha15-Nov-07 18:31
MSinha15-Nov-07 18:31 
GeneralRe: Remote accessing of reportserver using SSRS 2005 [modified] Pin
MSinha16-Nov-07 3:12
MSinha16-Nov-07 3:12 
QuestionDecimal vs Money Pin
Brendan Vogt15-Nov-07 4:04
Brendan Vogt15-Nov-07 4:04 
AnswerRe: Decimal vs Money Pin
Rob Philpott15-Nov-07 4:40
Rob Philpott15-Nov-07 4:40 
Questionfind percentage of perticular fields of two columns in sqlserver2005 Pin
subbu.sk15-Nov-07 3:24
subbu.sk15-Nov-07 3:24 
AnswerRe: find percentage of perticular fields of two columns in sqlserver2005 Pin
Pete O'Hanlon15-Nov-07 3:52
mvePete O'Hanlon15-Nov-07 3:52 
QuestionCreating a dynamic sql dataset without needing to postback Pin
kosh205915-Nov-07 3:23
kosh205915-Nov-07 3:23 
Answerplease ignore/delete this question, moved to web dev Pin
kosh205915-Nov-07 3:36
kosh205915-Nov-07 3:36 
QuestionCant save strings longer 255 in Excel (via ODBC) Pin
manolain15-Nov-07 1:47
manolain15-Nov-07 1:47 
AnswerRe: Cant save strings longer 255 in Excel (via ODBC) Pin
pmarfleet15-Nov-07 1:58
pmarfleet15-Nov-07 1:58 
Questioncopying a tuple field to another Pin
sindhutiwari14-Nov-07 23:11
sindhutiwari14-Nov-07 23:11 
AnswerRe: copying a tuple field to another Pin
pmarfleet15-Nov-07 0:54
pmarfleet15-Nov-07 0:54 
QuestionProblem while inserting into a database,whilst using BindingSource. Pin
siddy1714-Nov-07 23:04
siddy1714-Nov-07 23:04 
QuestionSQL Injection Pin
Shajeel14-Nov-07 18:26
Shajeel14-Nov-07 18:26 
AnswerRe: SQL Injection Pin
Expert Coming14-Nov-07 20:15
Expert Coming14-Nov-07 20:15 
GeneralRe: SQL Injection Pin
Shajeel14-Nov-07 21:19
Shajeel14-Nov-07 21:19 

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.