473,410 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

ASP.NET using My.Settings

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....

Sep 20 '06 #1
1 3396
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 espaol : http://asp.net.do/foros/
===================================
"JamminJimE" <ja********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
>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....

Sep 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Veeneman | last post by:
How do I persist properties bound to application settings in the VS 2005 Designer? I am binding form and control properties to application settings using VS 2005, as explained in MSDN: ...
3
by: Testguy | last post by:
Hi, I have been reading various messages in this group, and could not find an answer regarding what I am trying to do. At least, I could not find an easy answer. I am trying to figure out how...
4
by: Sai | last post by:
Hi, I am using VSTO 2005 Beta for building an excel application. I added application configuration file to the project (app.config) and it has the following section in it. <configuration>...
13
by: Eric Renken | last post by:
I currently use statements like this in my 1.1 code. System.Configuration.ConfigurationSettings.AppSettings I use this in DLLs that are referenced by the application. The application has this...
4
by: Ron Gliane | last post by:
From the documentation I could find, it seems that reading “appSettings” from the app.config file is now done through ConfigurationManager.AppSettings for ..NET 2.0, instead of the obsolete...
2
by: rcp | last post by:
Hi all, I've read all posts from all existing threads and none of them worked to solve my problem, although its exactly the same. I'll try to explain my case and see if a kind soul could help me...
0
by: Phoe6 | last post by:
Hi All, I am able to use urlib2 through proxy. I give proxy credentials and use # Set the Proxy Address proxy_ip = "10.0.1.1:80" proxy_user = 'senthil_or' proxy_password_orig='password'
3
by: seb | last post by:
Hi, I am writing to a file some basic information using the logging module. It is working but in the log file some line are printed several time. I had put some print debugging messages in the...
6
by: TS | last post by:
I cannot get this to work. I added an app.config to a project i reference from my web application project (vs 05) but can see no way to access the settings within it. the other thing is that I...
3
by: Adhal | last post by:
Hello, I have an XML and XSD file. When I do validation in the XML file I only get the first error. Is it possible to list all errors? One other question. -------------Microsoft Sample Code...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.