'Initializeculture 'is not a member of 'xxxx'. solution-ASP. NET
Source: Internet
Author: User
Today, a strange problem occurs when deploying ASP. NET web pages. It is normal to access the webpage during development and debugging. However, when deployed to IIS, the following error message is displayed:
'Initializeculture 'is not a member of 'xxxx '.
Solution:
1. In publish, set the first option allows this precompiled site to be updated option unchecked.
2. the real cause of this problem is that two aspx pages share one Source code File to find the Shared Source Code File. Rename it.
For example:
A. aspx
<% @ Page Language = "VB" autoeventwireup = "false" inherits =" SPC. Main "Codefile =" Spc_main.aspx.vb "%>
B. aspx
<% @ Page Language = "VB" autoeventwireup = "false" inherits =" SPC. Main "Codefile =" Spc_main.aspx.vb "%>
Update B. aspx:
<% @ Page Language = "VB" autoeventwireup = "false" inherits =" SPC. B "Codefile =" Spc_ B .aspx.vb "%>
You can.
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.