'Initializeculture 'is not a member of 'xxxx', isnotamemberof
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 a source code file and 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.