Crystal Report Credentials Prompt After Deployment

Jan 26, 2011

I am Publishing crystal reports on remote server using the following code. when i try to run the crystal report page Crystal report viewer prompt me for database info. As the published crystal report were created using development server. In my crystal report i was using OLEDB ADO Connection

MyRepository _MyRepository = new MyRepository();
System.Data.SqlClient.SqlConnection myConnection = new System.Data.SqlClient.SqlConnection();
myConnection.ConnectionString = ConfigurationManager.ConnectionStrings["MyConnStr"].ConnectionString;
System.Data.SqlClient.SqlCommand MyCommand = new System.Data.SqlClient.SqlCommand("dbo.spMySP");
MyCommand.Connection = myConnection;
MyCommand.Parameters.Add("@PositionID", SqlDbType.Int).Value = (cmbPositions.SelectedValue == "" ? 0 : Convert.ToInt32(cmbPositions.SelectedValue));
MyCommand.CommandType = System.Data.CommandType.StoredProcedure;
System.Data.SqlClient.SqlDataAdapter MyDA = new System.Data.SqlClient.SqlDataAdapter();
MyDA.SelectCommand = MyCommand;
ASale _DS = new ASale();
MyDA.Fill(_DS, "dbo.spMySP");
rptSale oRpt = new rptSale();
oRpt.SetDatabaseLogon("sa", "mypass");
oRpt.SetDataSource(_DS);
oRpt.SetParameterValue(0, "param1");
oRpt.SetParameterValue(1, "param2");
oRpt.SetParameterValue(2, "param3" );
oRpt.SetParameterValue(3, (cmbPositions.SelectedValue == "" ? 0 : Convert.ToInt32(cmbPositions.SelectedValue)));
CrystalReportViewer1.ReportSource = oRpt;

View 1 Replies


Similar Messages:

Crystal Report Print Functionality Doesn't Work After Deployment

Jun 6, 2010

I'm using crystal reports to build reports, everything is ok while development. But after deployment of website, print functionality doesn't work.

I use _rptDocument.PrintToPrinter(1, false, 0, 0); to print report.

I've tried two methods to deploy website

Normal Publish option. Web Deployment Project.

But I got the same output, print functionality doesn't work. Also, I tried to set default printer, this also doesn't work.

View 1 Replies

Security :: How To Make An IIS Page Prompt For AD Credentials

Apr 1, 2010

We have an IIS/ASP web page from a vendor that we have just dropped onto a webserver within our company. The ASP pages do not come with any sort of authentication built in, so I am trying to configure the site to prompt for credentials before being accessible. I would like the site to prompt for the credentials in all cases (ie. I don't want Internet Explorer to pass through the credentials of the logged in user). I want authorization to this site to be allowed only to members of a certain security group with Active Directory.

Is there a way to do this? I'm not really an IIS guy, nor an ASP developer, so I'm kind of feeling my way through the dark here.

Based on some searching, I have tried adding the following to the web.config file:

[Code]....

I have also installed the IIS URL authorization role service, and have tried playing around with the authentication settings within IIS, to no avail.

I am using IIS7 on Server 2008.

View 4 Replies

Security :: Get The System To Actually Prompt The User To Login With Credentials?

Feb 5, 2010

I am the web developer at a medical clinic. I have 2 scenarios going on:

First, I have a physicians only component of our employee portal to allow access to only physician shareholders or physician non-shareholders. My structure is built like:

Physicians Only
Administration
Affiliations
Calendars
Compensation
Minutes

The Affiliations folder is only going to be accessible by the physician shareholders. Therefore, I have security roles set for Physicians Only and Affiliations. When I test, the security is set correctly on the folders. However, when I try to login as different people, all with different roles, I have to login with user name and password, twice, before the system allows me in.

Secondly, I have secured areas within the employee portal also. However, when I navigate to them, the system doens't usually prompts me to login. If it does prompt me to login, it too, is on the second try. So how does it know who I am? And more importantly, how do I get the system to actually prompt the user to login with their credentials?

View 15 Replies

Security :: Credentials Prompt When Using Domain Account In AppPool Identity In IIS 6.0?

Mar 4, 2011

I have an asp.net application which was working fine with the AppPool Identity set to Netwrok Service or Local System or Local Service. But If I change the app pool identity to a domain account (I am using my account itself) I am unable to access the application from any other machine except the web server.I am using Windows Integrated Authentication.I tried resetting IIS, Restart W3SVC, aspnet_regiis -ga . But no luck.

View 5 Replies

Credentials Prompt For An Aspx Page Configured For Anonymous Authentication?

Oct 11, 2010

From Flex we call a Upload.aspx page which is configured for anonymous authentication. Most of the time, it works like a charm, but once in a while, the browser does prompt a enter credentials popup...The whole site is configured for Windows Authentication, but some pages and folders are set to use anonymous authentication. This is done using the location tag in web.config.What could be the reason for this?

View 3 Replies

Security :: How To Restrict Windows Credentials Prompt Window For The Application

Oct 24, 2010

We have created an Intranet Web Application with Windows Authentication.

That asking a prompt to get Username and Password each time when we access the application.

How can we restrict that prompt other than IE --> Security --> Custom Level --> User Authentication.

(Because, with this option we need to set these settings in each and every user's system)

View 3 Replies

SQL Reporting :: How To Display Parameter Prompt Area In Web Report Viewer

Feb 6, 2010

I tired to create a parameterized report in Report Builder 2.0 with parameters having multiple values fetched from the database. I really liked that feature, which allows me to select the desired records from the dropdown. I uploaded the report in SSRS 2008 and I could view the reports with parameters from the Report Manager of Report server. But when the report is called through the Report Viewer, I didn't get any of the parameters displayed inside the report viewer. The only way I could found is to manually give the dropdowns in the web page and sent that values to report by setting its parameter. But at here I cannot multi-select the values. So I would like to get the exact functionality given through the report manager in the report viewer.

get the report parameters in the Report Viewer of ASP.NET?

View 2 Replies

Crystal Reports :: Database Login Prompt On Shared Hosting Server?

Feb 21, 2011

I am trying to deploy crystal reports 2008 on shared server. Before publishing on the remote server i published it on the localhost while connecting it to remote sql server 2008 database. The report is shown perfactly but when i publish it on shared server it prompt me for login credentials. My hosting provider is arvixe and it support crystal report. In my popup database field is empty and locked use name field show the correct user name and password field is empty. I read somewhere it may be due to version conflict between my version and version on server.

View 9 Replies

Crystal Reports :: Error In Crystal Report When Using Windows Server 2008 R2 And IIS7?

May 29, 2010

Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL. ----------------------------------- This error will be display when I am try to show the Crystal Report. Can anybody tell me what Property I have to ser in Windows Server 2008 R2 or in IIS7???

View 1 Replies

Fill Crystal Report Data Through Custom Query & Not Crystal Reports Wizard?

Mar 17, 2010

a myth has been passed to me by a senior who told me to 'always' design a crystal report using Add command and not through the table view (like selecting tables and linking them manually).I have been having a hard time writing the queries for master detail reports and making sub report links manually. It gets pretty confusing sometimes.I find it easy to design reports by just selecting two tables and dragging and dropping the link in crystal report designer.

View 1 Replies

Crystal Reports :: How Crystal Report Read Connection String From Web.config Using Entity To Sql

Feb 9, 2011

<connectionStrings>
<add name="SchoolEntities" connectionString="metadata=res://*/SchoolModel.csdl|res://*/SchoolModel.ssdl|res://*/SchoolModel.msl;provider=System.Data.SqlClient;provider connection string="Data Source=.;Initial Catalog=school;User
ID=sa;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient"/>
</connectionStrings>

how report read this connection string

View 2 Replies

Crystal Reports :: Bind Dataset Fields To Text Object In A Crystal Report?

Nov 10, 2010

using vs.net 2005, sql server 2005, creating windows form appI have a dataset that I bound to a crystal report as follows:

[Code]....

and in the Crystal Report in design view I added a Text Object called "myTxtObj".I am assuming that I can do something like this

[Code]....

However I'm not seeing the "myTextObj" with intellisense in the code behind in the form.so my question is: after binding a dataset to a report how to you bind column values to text objects on your crystal report?and actually one mor thing:I just ran the project and found out when I try to do the databind that i'm getting an error:"The report has no tables"how to solve this too?

View 1 Replies

How To Declare And Assign Report Crystal Report Viewer Manually In Visual Studio .net

Jul 23, 2010

I got a code from internet for creating Crystal reports in Visual studio 2008 .net. It shows on how to pass parameters from web form to Crystal reports. Everything is ok, except the report crystal report viewer. How can I declare and assign report crystal report viewer manually in Visual studio .net?.

[Code]....

View 9 Replies

Crystal Reports :: Display Multiple Report In Single Report Viewer Control

Feb 24, 2014

Is it possible to show 3 "Crystal Report" in single "Report Viewer Control" page??My current code for 1 Crystal Report and 1 Report Viewer control Page is below:Below code Page name is "JpsCrystalReport.aspx"

using CrystalDecisions.CrystalReports.Engine; //for crystal report
using CrystalDecisions.ReportSource;
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["SQLConnectionString"].ConnectionString);

[code]...

I want that when i click on button it redirects to "JpsCrystalReport.aspx" page as per condition given. Then on "JpsCrystalReport.aspx" page it should execute the 3 crystal reports as per conditions given on button click.Or I had to create 3 different "JpsCrystalReport.aspx" pages (that contains Report Viewer control) to show 3  Different Crystal Reports as per condition on button click?

View 1 Replies

Crystal Reports :: Crystal Report View On Single Button Click

Nov 22, 2010

I have a Registration form with two Buttons "Save" & "Report". When I click on "Save" the data will store in the Database. Now I want when click on the "Report" button the report of that particular will be produce in the Crystal report. How can I do that??

View 2 Replies

Crystal Reports :: How To Pass Values From Page Or GridView To A Crystal Report

Mar 30, 2010

I am developing we application using Csharp on Visual studio 2008.How can I pass values from Page or GridView to a Crystal Report? For example I want some details on a Default.aspx want to appear on the Crystal report when I click on it. How do I pass theses values from Page to crystal report at Runtime?

View 3 Replies

Crystal Reports :: Error In Crystal Report For Load File Or Assembly?

Mar 19, 2011

i upload my site on server but there is error in crystal report web.comfig there is error as belowParser Error Message:Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

[Code]....

View 2 Replies

Crystal Reports :: Error Displayed When Printing Crystal Report Using ActiveX

Aug 9, 2010

ent system (Windows 7 x64) and live system (Server 2008 x64), and both with IIS7 I receive the following error message, after clicking the "Print" button in the printer selection popup."An error occurred on the server. Printing will be stopped. Would you like to view the error information?"If I click "y

View 1 Replies

Crystal Reports :: Crystal Report Showing No Data If One Of The Datatables Has No Rows?

Mar 26, 2010

I used push method with my crystal report. I used a dataset which on page load loads 2 seperate datatables and are added to it. Everything works fine. But if the Milestones Datatable is empty, the crystal report shows none of the data related to the Projects Datatable, as if the table is empty. The Select Method of the business logic layer objects uses querystrings of the name ProjectNo. Below is a sample code.

[Code]....

View 1 Replies

Crystal Reports :: Print Crystal Report From The Server With A Button On The Web Application?

Nov 9, 2010

to print a crystal report from the server's printer with a button on the web application.Assume that I have a ASP .NET Web Application, When i press the "print" button on the web application, the server which holds the web application prints the specific crystal report with specific data set. Is this possible? How I am going to make this happened?I am sorry to say that I'm very new to all these web programming,

View 3 Replies

Crystal Reports :: Cross Page Technique To Display Crystal Report?

Nov 19, 2010

I am working with Parametrized Crystal Reports. There are only two page called Source.aspx and Target.aspx.

[code]...

Only One text box data shows Not 2nd One.Can any one help me with this by checking my code?

View 2 Replies

Crystal Reports ::install On The Server Show The Crystal Report In The Form?

Jun 22, 2010

I installed Visual Web develperTrying to get a crystal report to show in the form but therte are no Crystal obhject to select Installed Visual Studio 2008 I can add an Item for Crystal now in form show the form and I see it has menu bar for crystal viewer and I see the report Now if I move the webpage to our server which has IIS 7.0, ASP.net 3.5 what else do I need to install on the server so it wil show the crystal report in the form?

View 5 Replies

Crystal Report Viewer Control Isn't Loading The Images Inside The Report

Feb 12, 2010

I have an ASP.Net (.Net 2.0) application that creates Crystal Reports (version 11.5) and shows them with CrystalReportViewer control. For some reason the control isn't showing the logo image in the header of the report. It renders the following html

<img width="320" height="76" alt="Imagem" src="CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_e47fba99-96fc-471b-ab11-06fd2212bbdd.png" border="0"/>

I already included the aspnet_client folder in my Virtual Directory in IIS.

View 1 Replies

Crystal Reports :: Visual Studio 2008 Crystal Report 10.5 Merge Modules Download?

Dec 15, 2010

I'm struggling with this problem about 2 weeks and still cannot find the resolution.I was developed a .Net application with visual studio 2008 and using crystal report to generate report.It is working fine in my local machine. However, after I deployed the application to web server with microsoft server 2003 64bits server. The report cannot open and I get this error The type initialize or 'crystaldecisions.crystalreports.engine.reportdocument' threw an exception. I try to install the redistribution package from C:Program FilesMicrosoft SDKsWindowsv6.0ABootstrapperPackagesCrystalReports10_5 but it doesn't work.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved