473,407 Members | 2,359 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,407 software developers and data experts.

Conflicing My.MySettings sections in web.config files

I have an asp.net application at the root, and other applications
suchs as /WebApp1, /WebApp2.

By design, these web applications inherit the root application's
web.config file.

But, when you create a Web Reference, to a webservice, it creates a
section in your web.config file "My.MySettings" to hold the URL of the
webservice.

If your root application uses a webservice, and if one of your other
applications uses one, then asp.net has problems because both
web.config files try to define a My.MySettings section in the
web.config files.

This is not limited to webservices, this section is created if you try
to make use of the settings tab of the project.

Does anyone know of of anything that can be done about this?

If I am unclear I can post examples or more details.

Jul 17 '07 #1
2 4249
re:
!But, when you create a Web Reference, to a webservice, it creates a
!section in your web.config file "My.MySettings" to hold the URL of the webservice.

Sounds like a bug.

My exposes only those objects required by a particular project type.

For example, the My.Forms object is available in a Windows Forms
application but not available in a console application.

My.Settings does not apply to web sites.

See a table with all the "My" objects exposed in project types :

http://msdn2.microsoft.com/en-us/lib...98(VS.80).aspx


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"cmay" <cm**@walshgroup.comwrote in message news:11**********************@i38g2000prf.googlegr oups.com...
>I have an asp.net application at the root, and other applications
suchs as /WebApp1, /WebApp2.

By design, these web applications inherit the root application's
web.config file.

But, when you create a Web Reference, to a webservice, it creates a
section in your web.config file "My.MySettings" to hold the URL of the
webservice.

If your root application uses a webservice, and if one of your other
applications uses one, then asp.net has problems because both
web.config files try to define a My.MySettings section in the
web.config files.

This is not limited to webservices, this section is created if you try
to make use of the settings tab of the project.

Does anyone know of of anything that can be done about this?

If I am unclear I can post examples or more details.

Jul 18 '07 #2
"My.Settings does not apply to web sites. "

For web applications, you can add settings at the project level.

They are stored in the web.config and accessible from My.Settings.

Aug 7 '07 #3

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

Similar topics

0
by: yatharth | last post by:
Hi Well i tell you the situation , i am having the configsection settings like below. what i need to do is to display the sections automatically when i add new section name. after this...
3
by: Richard Bysouth | last post by:
Hi I'm trying to create a series of config files for my Windows app (some of which may reside in arbitary locations unrelated to the exe file) and have been reading various examples using the...
3
by: Toty Santana | last post by:
how to replace the system.web section using MSBUILD? I managed to change the appSettings and connectionStrings sections but when i tried to replace system.web i got an error message reporting...
3
by: DarthContinent | last post by:
I have multiple websites running under Windows 2003 using IIS and ASP ..NET. I'd like to be able to take multiple Web.config files and parse sections of them out for display in a datagrid or to...
0
by: Andrea Anastasescu | last post by:
Hi everybody, Inside the web.config of my application I have some custom sections. I have my own handlers for these sections, and their content is in external files. My problem is that...
3
by: =?Utf-8?B?RHVrZSAoQU4yNDcp?= | last post by:
I've added a web deployment project and want to use the config section replacement but I'm obviously not understanding something. I have set up an alternate appSettings file,...
1
by: Monty | last post by:
Hello, I have a class that exposes several values like so: Public Shared ConnString As String The class, originally enough, is named "Settings". If I interrogate a value of this object in the...
0
by: tshad | last post by:
I have a filewatcher program that is working syncronously (which is how I want it to work). But my program will handle whatever files are in the folder at the time it runs. So when I drop 15...
2
by: =?Utf-8?B?QnJpYW4=?= | last post by:
I have an application that is responsible for retrieving data from a variety of remote sites using all sorts of different protocols. e.g. email, web service, ftp, screen scraping etc. I want to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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 project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.