These days, in order to demonstrate our project to the customer, we found that the original degree is not the same in the development environment and deployment environment, and the original degree of operation is good in the development environment, after deployment, installing it on the server may cause many errors. Therefore, you can record the problems you have encountered to facilitate future queries and also hope that you can solve the problems as soon as possible or avoid such problems, baidu then draws some conclusions:
1. If you use a crystal report, you need to deploy the environment or assembly required for the server. Otherwise, the following errors will occur in the program after deployment:
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: cocould not load file or assembly 'crystaldecisions. Web, version = 10.2.3600.0, culture = neutral, publickeytoken = either 'or one of its Dependencies. the specified file cannot be found.
Source error:
Line 85: </pages>
Line 86:
Line 87: <add verb = "get" Path = "crystalimagehandler. aspx "type =" crystaldecisions. web. crystalimagehandler, crystaldecisions. web, version = 10.2.3600.0, culture = neutral, publickeytoken = 692fbea5521e1304 "/>
Line 88:
Line 89: <sessionstate timeout = "360"> </sessionstate>
Source File: C: "inetpub" wwwroot "yuexiusf" Web. config line: 87
Assembly load trace: The following information can be helpful to determine why the Assembly 'crystaldecisions. Web, version = 10.2.3600.0, culture = neutral, publickeytoken = comment 'could not be loaded.
WRN: Assembly Binding logging is turned off.
To enable Assembly bind failure logging, set the registry value [HKLM "software" Microsoft "Fusion! Enablelog] (DWORD) to 1.
Note: There is some performance penalty associated with Assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM "software" Microsoft "Fusion! Enablelog].
--------------------------------------------------------------------------------
Version Information: Microsoft. NET Framework Version: 2.0.50727.42; ASP. NET version: 2.0.50727.42
Solution:
1. Find "SDK" V2.0 "bootstrapper" packages "crystalreports under the installation directory of Visual Studio in your development environment, copy the Installation File crredist2005_x86.msi to the server and install it.
2. If the program cannot run, copy the five DLL files of the Crystal Report to the bin directory on your website. The names of the five DLL files are as follows:
Crystaldecisions. crystalreports. Engine. dll
Crystaldecisions. reportsource. dll
Crystaldecisions. Shared. dll
Crystaldecisions. Web. dll
Crystaldecisions. Windows. Forms. dll
So where are they? A: "in your development environment, C:" Program Files "common files" Business Objects "2.7" managed "directory"
2. If Excel or word is used for programming in your project, the following error may occur: cocould not load file or assembly 'Microsoft. Office. InterOP. word'
Parser error message: cocould not load file or assembly 'Microsoft. office. interOP. word, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c 'or one of its dependencies. the system cannot find the file specified.
Source error:
Line 27: <compilation DEBUG = "false">
Line 28: <assemblies>
Line 29: <add Assembly = "Microsoft. Office. InterOP. Word, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c"/>
Line 30: <add Assembly = "office, version = 11.0.0.0, culture = neutral, publickeytoken = 71e9bce111e9429c"/>
Line 31:
Solution:
1. Online said in http://www.microsoft.com/downloads/details.aspx? Familyid = 3c9a983a-ac14-4125-8ba0-d36d67e0f4ad & displaylang = EN, download o2003pia. just install the EXE file, but I still can't try it. Maybe I didn't pay attention to the solution, so I 'd like to say something.
2. I simply installed office2003 on the service, and the problem was solved (although this is not a good practice)
Iii. About the login page name, if you have a page named login. aspx, the following error may occur after the website is deployed: Server Error in '/xx' application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler error message: cs0030: cannot convert type 'asp. login_aspx 'to 'System. Web. UI. webcontrols. login'
Source error:
Line 112: Public login_aspx (){
Line 113: String [] dependencies;
Line 114: (LOGIN) (this). apprelativevirtualpath = "~ /Login. aspx ";
Line 115: If (Global: Asp. login_aspx. initialized = false )){
Line 116: dependencies = new string [1];
Source File: C: "Windows" Microsoft. NET "Framework" v2.0.50727 "temporary ASP. NET Files" XX "d1_12e3" 4462d393 "app_web_login.aspx.cdcab7d2.ip6y7oyd.0.cs line: 114
Cause:
This is because. net2.0 has a login control, so that. netframework does not know which one should she choose, and forcibly converts your page into her built-in control, which leads to an error.
Solution:
1. Do not use a Page name such as login
2. If you do not want to change the Page name, add the namespace to its CS file or change its class name to "user_login ", finally, do not forget to modify its reference in the ASPX page, for example, <% @ page Language = "C #" autoeventwireup = "true" codefile = "login. aspx. CS "inherits =" user_login "%>
If you still cannot solve the problem through the above method, we suggest opening C: "Windows" assembly
Check whether the version of the corresponding assembly is correct.