Re: ASP.NET using My.Settings



My.Settings doesn't apply to Web Applications.

See a chart which shows the applicable project types for each My object:
http://msdn2.microsoft.com/en-us/library/ms172698.aspx



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"JamminJimE" <jamminjime@xxxxxxxxx> wrote in message
news:1158719626.000271.223260@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I dunno if it's too late at night to be coding without the caffeine,
but I am sure trying.

I have a web app that I am working on and am trying to set some of the
custom My.Settings values. Each of my settings that I created show up
fine in intellisense, but when I execute the app, I get...

******************************
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: BC30456: 'Settings' is not a member of 'My'.

Source Error:



Line 568: Dim dbItem As DataRow = moDataset.Tables(0).Rows(0)
Line 569:
Line 570: My.Settings.Theme = dbItem.Item("Theme").ToString
Line 571: My.Settings.CustomerID =
CInt(dbItem.Item("CustomerID"))
Line 572: My.Settings.AccountingAccess
******************************

I am sure that I am forgetting something somewhere, but I just don't
have a clue where I missed it.

Any ideas?

JamminJimE
------------------------------
MMMMmmmmm....Code Red Mountain Dew....



.