After the website is published, the following two problems occur when it is uploaded to the space (ASP. NET 2.0 + SQL 2000)
1Compilation Error
Note: An error occurs during compilation of resources required to provide services to this request. Check the following error details and modify the source code as appropriate.
Compiler error message: cs0030: The type "ASP. tgview_aspx" cannot be converted to "system. Web. UI. webcontrols. View"
Solution: After searching, it is found that the CS file name corresponding to tgview_aspx is view, which is in conflict with system. Web. UI. webcontrols. View. Just change the CS name to tgview.
2Analyzer Error
Note: An error occurred while analyzing the resources required to provide services to this request. Check the following detailed analysis error information and modify the source file as appropriate.
Analyzer error message: failed to load assembly "app_web_tyn6zjmq ". Make sure that this Assembly has been compiled before accessing this page.
Source error:
Row 1: <% @ page Language = "C #" autoeventwireup = "true" inherits = "_ default, app_web_tyn6zjmq" %>
Row 2:
Row 3: <! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Solution:My website directory is TG "Web. At first I set the TG directory to a virtual directory, so this error occurs. Then I changed the web directory to a virtual directory.