Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 4th, 2008, 07:28 PM
Registered User
 
Join Date: Jan 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default TypeInitializationException

Hi there, i am getting an error when i try to run the website on my local computer.. The error i am getting is "TypeInitializationException was unhandled by a user code" and then it points to a code in the BasePage.cs file.

The type initializer for 'MB.Ferrari308.Globals' threw an exception.

The code it points to is:

string id = Globals.ThemesSelectorID;


DOES ANYONE KNOW WHAT I AM DOING WRONG?


Faraz Shafiq
 
Old February 5th, 2008, 10:10 AM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Do you have a ThemeSelectorID field defined in Globals.cs?

public static string ThemeSelectorID = "";






Similar Threads
Thread Thread Starter Forum Replies Last Post
Deployment issue - TypeInitializationException eelisMX Pro VB.NET 2002/2003 0 March 31st, 2005 04:54 AM
System.TypeInitializationException w connection fig000 ADO.NET 2 February 9th, 2004 06:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.