About error to load report field?

G

Guest

Hi, I have a ASP .Net, and in this I load a report or Crystal, with this
instruction:

crReportDocument.Load(Server.MapPath("") & "reporte.rpt");

It's good, but when I try to load a remote report file by example:

crReportDocument.Load(\\Servidor\rpts$\reporte.rpt);

I have problems and send me an error:
Load report failed,
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException:
Error of beginning of session: name of unknown user or incorrect password.

Somebody can help me? what can I do to load remote reports? I read than I
need to give permisions or to add a valid user in IIS, but I don't know how
do that?
Help me please!!
Thanks a lot
REGARDS!
 
V

Vaibhav

Hi

I am using
Dim crReportDocument As New ReportDocument()

crReportDocument.Load(Server.MapPath("myReport.rpt"),
OpenReportMethod.OpenReportByTempCopy)

and it works fine. Try loading with the addl. parameter. Also i provide the
database connection info in the

Page_Init

'sets up connection information for the report

With crConnectionInfo

..ServerName = ConfigurationSettings.AppSettings("ServerName")

..DatabaseName = "DB"

..UserID = "XX"

..Password = "YYY"

End With



HTH
 
G

Guest

Hi, thanks for your answer, well i tried it but I have the same error,
do you have your report.rpt un other computer ?
Because my rpt is in other computer into the intranet, and I need to have
access to othe computer using net validation.

My error : Error of beginning of session: name of unknown user or incorrect
password.

I have the other computer user and password, and IP, but i don´t know an
instruction to how can I access it computer?
Do you have an idea??
Thanks a lot!!
Regards!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top