Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 4th, 2007, 12:27 PM
Registered User
 
Join Date: Jan 2007
Location: , , .
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
  #2 (permalink)  
Old January 4th, 2007, 05:12 PM
Registered User
 
Join Date: Jan 2007
Location: , , .
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
  #3 (permalink)  
Old January 4th, 2007, 06:31 PM
Registered User
 
Join Date: Jan 2007
Location: , , .
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!

  #4 (permalink)  
Old January 8th, 2007, 03:15 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: , , .
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 ?

  #5 (permalink)  
Old January 9th, 2007, 12:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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.

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:44 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.