Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Webservice that create Crystal Reports (COM Component) generates SoapException?

Reply
Thread Tools

Webservice that create Crystal Reports (COM Component) generates SoapException?

 
 
Robert Pettersson
Guest
Posts: n/a
 
      01-12-2005
Hi,

I have written a websevice that calls a class in the same solution that
generates Crystal Reports, runs them and exports them to pdf.

If I test the class from a WinApp everything works fine. But if I call the
webservice instead, that in turn calls the class that generates the reports,
I get the error:

--------------
An unhandled exception of type 'System.Web.Services.Protocols.SoapException'
occurred in system.web.services.dll

Additional information: Server was unable to process request. --> Load
report failed.
--------------

And if I call it from a webpage I get the error:

--------------
An unhandled exception of type
'System.Runtime.Serialization.SerializationExcepti on' occurred in Unknown
Module.

Additional information: The type System.Web.Services.Protocols.SoapException
in Assembly System.Web.Services,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a is not
marked as serializable.
--------------

So the class works fine, but not if I run it through calling the webservice.
I can call the webservice that creates the class that creates crystal report
objects, but when I call the load method of the report I get the error.

In the error the webpage get, it complains abouit serialization, but I canīt
make that object serializable, since I havenīt written it.

Is it beacuse it is an old COM component that is called from a .Net
webservice?

If anyone have any suggestions on how to solve this problem I would be very
greatful!

/Robert


 
Reply With Quote
 
 
 
 
Robert Pettersson
Guest
Posts: n/a
 
      01-12-2005
Update:

Could it be a problem when Iīm trying to access the local filesystem and
load my report through the webservice?
Since I get the error when I call the load("C:\cat\report.rpt") and not when
I create the object.

I have put this code in my Web.config:

<authentication mode="Windows" />
<identity impersonate="true" userName="administrator" password="password" />

With the username and password of an administrator on the mashine. I thought
that would give me access to the filesystem?

/Robert




 
Reply With Quote
 
 
 
 
Dilip Krishnan
Guest
Posts: n/a
 
      01-12-2005
Hello Robert,
Try giving the ASPNET user permissions to access c:\cat directory. Its
possible you dont have permissions. Or in your proxy you could set the credentials
of the client

WSProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

> Update:
>
> Could it be a problem when Iīm trying to access the local filesystem
> and
> load my report through the webservice?
> Since I get the error when I call the load("C:\cat\report.rpt") and
> not when
> I create the object.
> I have put this code in my Web.config:
>
> <authentication mode="Windows" />
> <identity impersonate="true" userName="administrator"
> password="password" />
> With the username and password of an administrator on the mashine. I
> thought that would give me access to the filesystem?
>
> /Robert
>



 
Reply With Quote
 
Robert Pettersson
Guest
Posts: n/a
 
      01-12-2005

Thanks for your post Dilip!

That works, but canīt I impersonate a user when running a webservice?
So that I donīt have to give the ASP.Net user rights to my catalogs?

Again, thanks for your help!

/Robert

"Dilip Krishnan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ...
> Hello Robert,
> Try giving the ASPNET user permissions to access c:\cat directory. Its
> possible you dont have permissions. Or in your proxy you could set the
> credentials of the client
>
> WSProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
>
> HTH
> Regards,
> Dilip Krishnan
> MCAD, MCSD.net
> dkrishnan at geniant dot com
> http://www.geniant.com
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
Problems using ASP and Crystal Reports 8.5 to create dynamic PDF reports PughDR@gmail.com ASP General 0 10-23-2006 02:50 PM
How to launch reports (done with Crystal Reports) from a Java application? minjie@excite.com Java 2 03-15-2006 08:40 PM
First time crystal report user - How do i create a crystal reports from asp.net web form? Learner ASP .Net 1 01-11-2006 08:20 PM
Calling Crystal Reports in ASP.NET using the rptserver.asp given by Crystal Reports Peri ASP .Net 1 07-21-2005 12:56 PM



Advertisments