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 January 4th, 2007, 12:27 PM
Registered User
 
Join Date: Jan 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default ConfigSection Error - CS0029: Cannot implicitly co

hi

please help. i modified the beerhouse code for my needs.
i created a new configsection for my app, and set it up properly.

when i try to get the pagesize, i get 2 errors:
Code:
 
An exception of type 'System.TypeInitializationException' occurred in AppName.DLL but was not handled in user code

Additional information: The type initializer for 'Company.AppName.Globals' threw an exception.
and
Code:
 
?(AppNameSection)WebConfigurationManager.GetSection("AppName")
The type 'Company.AppName.AppNameSection' exists in both '{0C19F197-84A9-43A5-88A4-xxxx}' and '{8F36BC73-23D9-45C6-8754-xxxx}'
thanks
c
 
Old January 4th, 2007, 05:12 PM
Registered User
 
Join Date: Jan 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i moved my configsection out of my app_code dir and put it in another dir, and now get thiis error:
Code:
Compilation Error 
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: CS0029: Cannot implicitly convert type 'xxx.xxx.ForecastsElement [c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\xxxx\169372b9\90e373f5\assembly\dl3\08135dc6\1a0a1352_4430c701\xxx.DLL]' to 'xxx.xxx.ForecastsElement [d:\Development_Sites\Development_xxx\xxx\App_Code\ConfigSection.cs(36)]'

Source Error:

 

Line 38:        protected static ForecastsElement Settings
Line 39:        {
Line 40:            get { return Globals.Settings.Forecasts; }
Line 41:        }
Line 42: 
 

Source File: d:\Development_Sites\Development_Server_xx\App_Code\BLL\Forecasts\BaseForecast.cs    Line: 40
 
Old January 4th, 2007, 06:31 PM
Registered User
 
Join Date: Jan 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

who knows how to fix this:
exists in both bug? my app code classes are compiled twice!

 
Old January 8th, 2007, 03:15 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via MSN to vantoko
Default

have you tried deleting the temporary files and then rebuild the application ?

 
Old January 9th, 2007, 12:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'd guess that the app_code folder has a new subfolder with a copy of the code. Remember that every folder under app_code will also be compiled.






Similar Threads
Thread Thread Starter Forum Replies Last Post
ConfigSection Muhammad Zeeshan BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 January 21st, 2008 02:29 PM
Cannot implicitly convert type ... lcarpay ASP.NET 2.0 Basics 3 June 22nd, 2007 11:20 PM
in web.config or ConfigSection.cs? jini BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 February 3rd, 2007 04:39 AM
configSection.cs and other bafflements MM BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 November 16th, 2006 06:45 PM





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