Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'InitializeCulture' is not a member of

Tags:

asp.net

I'm trying to set up some .NET hosting on a server as a favour for someone but i'm not too familiar with .NET and when the site is uploaded an error is occuring that isn't occuring on their current hosting. The site is compiled so its mostly just DLL files and aspx files, the error message is below. Any ideas what needs done to get this working?

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30456: 'InitializeCulture' is not a member of 'ASP.index_aspx'.

Source Error:

Line 1:  <%@ page language="VB" masterpagefile="~/mst_mathsBuddy.master" autoeventwireup="false" inherits="index, App_Web_nl--pcdh" %>
Line 2:  
Line 3:  <%@ Register Src="Controls/Competition.ascx" TagName="Competition" TagPrefix="uc3" %>

EDIT:

The app is running on IIS6 and ASP.NET version 2.0.5727 which is identical to the currnet hosting.

like image 591
3urdoch Avatar asked Dec 16 '10 11:12

3urdoch


1 Answers

Page.InitializeCulture() is only supported in ASP.NET 2.0 and higher.

It looks like your hosting provider still uses the .NET 1.1 runtime to serve its websites, or that you didn't configure the proper runtime version for your web application in IIS.

EDIT: Apparently someone there encountered the same problem, and solved it by disabling the Allow this precompiled site to be updatable feature in the publishing options of their website.

like image 171
Frédéric Hamidi Avatar answered Oct 01 '22 01:10

Frédéric Hamidi