It also exists in "C: \ WINDOWS \ Microsoft. NET \ framework \ v2.0.50727 \ temporary ASP. NET files ...... "

Source: Internet
Author: User

 

Code

  1   <  System. Web  >  
2 < Compilation debug = " True " >
3 < Assemblies >
4 < Add assembly = " System. Core, version = 3.5.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " />
5 < Add assembly = " System. Web. Extensions, version = 3.5.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " />
6 < Add assembly = " System. Data. datasetextensions, version = 3.5.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " />
7 < Add assembly = " System. xml. LINQ, version = 3.5.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " />
8 < Add assembly = " System. Design, version = 2.0.0.0, culture = neutral, publickeytoken = b03f5f7f11d50a3a " />
9 < Add assembly = " System. Windows. Forms, version = 2.0.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " />
10 < Add assembly = " System. Data. oracleclient, version = 2.0.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " />
11 < Add assembly = " System. workflow. Activities, version = 3.0.0.0, culture = neutral, publickeytoken = 31bf3856ad364e35 " />

 

 

When I modified the project today, the version of the third-party control was upgraded, So I uninstalled the old version. After installing the new version, the new version cannot pass after being compiled again.

The error is as follows:

Compilation Error

Description:An error occurs during compilation of resources required to provide services to this request. Check the following error details and modify them as appropriate.Source code.

Compiler error message:Cs0433: Type "devexpress. web. aspxgridview. aspxgridview "also exists in" C: \ WINDOWS \ Microsoft. net \ framework \ v2.0.50727 \ temporary ASP. net files \ TWM \ e792b03c \ 9927da71 \ Assembly \ dl3 \ 3fad0197 \ 00259a 68_5eb 3c 901 \ devexpress. Web. aspxgridview. v8.2.dll "and" c: \ windows \ Assembly \ gac_msil \ devexpress. Web. aspxgridview. v9.3 \ 9.3.2 . 0 _ 8d332da86fe888ab \ devexpress. Web. aspxgridview. v9.3.dll"

Source Error:

 

Code

  Line  36  :  <  Tr  >  
Line 37 : < TD bgcolor = " # Ffffff " Colspan = " 3 " >
Line 38 : < Dxwgv: aspxgridview ID = " Aspxgridview_list " Runat = " Server " Autogeneratecolumns = " False "
Line 39 : Cssfilepath = " ~ /App_themes/Glass/{0}/styles.css " Csspostfix = " Glass " Performanceid = " Objectperformance_list "
Line 40 : Width = " 100% " Clientinstancename = " Aspxgridview_list " Keyfieldname = " F_guid " >

At the beginning, I was depressed for a long time. After troubleshooting, the old version of DLL was referenced in the original bin.

Solution:

 

Delete all DLL references under the bin folder, and then add the new DLL reference.

The aspx file header of the web project. All referenced DLL files also need to be updated,

 

Code

  1   <%  @ Page title  =  ""  Language  =  "  C #  "  Masterpagefile  =  "  ~ /Base/masterpage. Master  " Autoeventwireup  =  "  True  "  Codefile  =  "  Factory_index.aspx.cs  "  Inherits  =  "  Info_factory_index  "     %> 
2
3   <% @ Register assembly = " Devexpress. Web. aspxgridview. v9.3, version = 9.3.2.0, culture = neutral, publickeytoken = 8d332da86fe888ab "
4 Namespace = " Devexpress. Web. aspxgridview " Tagprefix = " Dxwgv " %>
5   <% @ Register assembly = " Devexpress. Web. aspxeditors. v9.3, version = 9.3.2.0, culture = neutral, publickeytoken = 8d332da86fe888ab "
6 Namespace = " Devexpress. Web. aspxeditors " Tagprefix = " Dxe " %>
7 .........
8 .........

The Web. config configuration file also needs to be updated.

It is really troublesome!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.