I created and hosted an ASP.NEt website now I get errors, help

FrEaKo

Active Member
Joined
Feb 21, 2006
Messages
62
Reaction score
1
Hey guys, I created a ASP.NET website in VS 2008, it has some crystal reports inside.

I am trying to host it on Afrihost Windows Gold Home package

I get the following error:

[HIGHLIGHT] Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

Source Error:


Line 51: <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
Line 52: <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
Line 53: <add assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
Line 54: <add assembly="CrystalDecisions.Shared, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
Line 55: <add assembly="CrystalDecisions.ReportSource, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />[/HIGHLIGHT]

error on line 53

After doing some googling I think that it is because crystal reports is not installed on the hosting server which is an ISP. How can I fix this?
 
They Crystal dlls probably get installed to your GAC on local machine with Crystal installation and don't exist on the server. Unless it is your own VM I don't think your ISP would install those for you.
There are multiple ways to reference assemblies. You could try add the crystal dlls to your app bin directory and add reference to that instead and deploy those dlls with your app to the server.
 
They Crystal dlls probably get installed to your GAC on local machine with Crystal installation and don't exist on the server. Unless it is your own VM I don't think your ISP would install those for you.
There are multiple ways to reference assemblies. You could try add the crystal dlls to your app bin directory and add reference to that instead and deploy those dlls with your app to the server.

Thanks, That sounds like a plan, ill attempt to find and add all the dlls later today and test, I just pulled an all nighter so i need some sleep! But keep the replies coming if someone perhaps have a definite solution/alternative or whatever :) Later!
 
Twicode is correct, I recall having to either install Crystal or at least the server re-distributables when I worked with it a long time ago but putting the dll's into the bin should be fine as the site will check that location. To fix, should be as simple as right clicking the reference dll in your project and setting the Copy Local property to True.
 
Surely all the assemblies should be included if you se the VS Publish functionality?
 
Surely all the assemblies should be included if you se the VS Publish functionality?

Depends. If referencing a crystal reports control and it finds it in the dev machines GAC, it does not do a local copy to the bin directory. Dll's like System core etc are not published ( due to them being framework and the expectation that the framework is depoloyed on the websites machine ) , to override that you set that copy local flag. Do a comparison between the bin and your list of references.
 
Depends. If referencing a crystal reports control and it finds it in the dev machines GAC, it does not do a local copy to the bin directory. Dll's like System core etc are not published, to override that you set that copy local flag. Do a comparison between the bin and your list of references.

Hmmmm, you are correct. And moving on...
 
Top
Sign up to the MyBroadband newsletter
X