& #39; InitializeCulture & #39; is not a member of & #39; XXXX & #39;, isnotamemberof

Source: Internet
Author: User

'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.

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.