Where are settings saved for WCF Service Applications?
Default Settings for a WCF Service Application are stored in the web.config file and are Read Only because only Application settings are allowed i.e. you cannot change the Scope from "Application" to "User" in the settings designer like
with other components. So, in order to save changes to settings the WCF Service Application will need to create a setting property at runtime like this:
System.Configuration.SettingsProperty newProperty;
newProperty = new System.Configuration.SettingsProperty("NewSetting");
newProperty.IsReadOnly = false;
newProperty.DefaultValue = "New Setting";
Properties.Settings.Default.Properties.Add(newProperty);
Properties.Settings.Default.Save();
OK...this works, but I've looked everywhere and I can't find where the new setting property is being saved. I have already looked in the C:\Users\[username]\AppData\[Local or Roaming]\[Company Name]\[AppName...etc.]\[version]\user.config and although
a user.config file was created it does not contain the new property. Anyone have a clue?
Actually, this doesn't work...the settings are not saved to the file system. I located some other posts and modified my code as follows, but the settings are still not saved to the file system.
System.Configuration.SettingsProperty newProperty;
newProperty = new System.Configuration.SettingsProperty("NewSetting");
newProperty.Provider = Properties.Settings.Default.Providers["LocalFileSettingsProvider"];
newProperty.Attributes.Add(typeof(System.Configuration.UserScopedSettingAttribute), new System.Configuration.UserScopedSettingAttribute());
newProperty.PropertyType = typeof(string);
newProperty.IsReadOnly = false;
newProperty.DefaultValue = "New Setting";
try
Properties.Settings.Default.Properties.Add(newProperty);
catch
//Just ignore it for now.
Properties.Settings.Default.Save();
The new setting appears to be saved only in memory. If I close Visual Studio then the setting is lost. Also, I deleted the C:\Users\[username]\AppData\[Local or Roaming]\[Company Name]\[AppName...etc.]\[version]\user.config files and the file
is no longer being created.
Looks like I will need to explicitly load/save a text file or use the registry to persist changes to settings.
Hello Steven,
>>The new setting appears to be saved only in memory.
It seems that the Save() method only saves these runtime added in memory, I suggest you could check the Save method source code since now the .NET is source opened:http://referencesource.microsoft.com/#System/sys/system/configuration/ApplicationSettingsBase.cs,9664b0111a35af52
>>Looks like I will need to explicitly load/save a text file or use the registry to persist changes to settings.
Someone provides an implementation about this approach, you could check it:
http://stackoverflow.com/a/1075318
Or you could set it in a register entry:
http://stackoverflow.com/a/26518724
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
LSO Personalize search using settings - where are settings saved?
Hi,
One of our users have lost his settings link that you can see after having done a course search in LSO. I think he lost it because he ticked "Include Settings in Search" in the settings / personalization dialog.
I now need to find the backend table where theese settings are stored for the individual user but I'm having some trouble locating it. Can anyone help?
Br JanI found the table myself - it is called lsotptadds_c
Unfortunately it has no maintenance view -
WCF service application hosted in IIS for reading Windows server service bus topic/subscription
We have a WCF service application(not web application) which is deployed in IIS 8 pointing to the windows server service bus topic/subscription. We have configured the WCF service with applicationInitialization feature of IIS 8 to warm up.
But the WCF service is not reading any message from the topic/subscription.
configured in web.config file as below
<system.webServer>
<applicationInitialization>
<add initializationPage="/MyService.svc" />
</applicationInitialization>
</system.webServer>
When we run the same from visual studio its reading messages from topic/subscription.
any configuration/settings which we are missing?You probably didn't initialize correctly the auto-start. Btw. I would recommend you to use AppFabric for this feature. It is more transparent in development and production.
Please take a look on following posts:
http://social.technet.microsoft.com/wiki/contents/articles/1284.host-wcf-services-with-service-bus-endpoints-in-iis-and-windows-server-appfabric.aspx
http://developers.de/blogs/damir_dobric/archive/2009/10/11/iis-7-5-and-always-running-web-applications.aspx
http://developers.de/blogs/damir_dobric/archive/2010/06/11/appfabric-issue-with-aoutostart.aspx
Damir Dobric
developers.de
daenet.de
daenet.eu
daenet.com -
PDF Optimizer Settings: Where Are They Saved?
PDF Optimizer Settings: Where Are They Saved?
That is, the ones that you create and then Save.
Also the default one which came along Acrobat Pro (i.e. Standard etc)
ThanksThey are stored in the Acrobat User Preferences Area. The same location is used for Pro, Standard, and Reader. But the exact location is OS dependant.
Open up the JavaScript Console window and run this line of code. (instructions at the links below)
app.getPath("user","preferences");
Thom Parker
The source for PDF Scripting Info
pdfscripting.com
The Acrobat JavaScript Reference, Use it Early and Often
Then most important JavaScript Development tool in Acrobat
The Console Window (Video tutorial)
The Console Window(article) -
Where are contacts saved?
Hi there,
This started off as a loss of all contacts from the address book, which has now turned into a curiosity of where exactly do the contacts get saved?
I have removed the folder ~/Library/Applications Support/Address Book/
I have actually deleted this folder, logged out, logged back in again and found the address book restored with all contacts. From doing searches on the net everything points to this folder being the place where contacts are saved but obviously it is not. I have no sync service operating nor changed any defaults as this has all been done with a clean account.
So, where are contacts saved to?It is probably being restored from the copy kept in SyncServices (in your Library/Application Support folder). Look in Local folder, and in the various folders there look at ClientName.txt. You will likely find that one of them is com.apple.AddressBook. Beyond that, I do not know the organisation of the various files within the Local folder, except that there is enough data there to restore a missing set of contacts.
AK -
High Availibity solution for Sharepoint Service Applications
I have a scenario with the three nodes SP1 , SP2 and DR-SP with server 2012 standard, each running SharePoint 2013 enterprise, All of three nodes are members of single SharePoint farm that spans two data centers.Primary Data Center have two nodes SP1 , SP2
and DR data center have one node DR-SP of share point 2013.
For MS SQL i have three nodes DB1, DB2 and DR-DB3 with server 2012 standard, each running an instance of SQL Server 2012 enterprise, participate in a
single Windows Server Fail-over Cluster (WSFC) that spans two data centers.Primary Data Center have two nodes DB1 ,DB2 and DR data center have one node DR-DB of SQL Server 2012 enterprise.
Currently i have configured these service applications on primary data center nodes SP1 .How i can enable high availability for different service Applications of SharePoint 2013 like Profile service application, search service application,
managed meta data application in case of primary data center outage.stretched farms are not supported unless the WAN provides sub-millisecond ping times.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs -
Item translations are not saved for copied page
Hello,
item translations are not saved for copied page. Is it expected?Hello,
>> item translations are not saved for copied page. Is it expected?
I’m not sure what you mean by not saved, but if you expect to copy a current translated page into a new page, and inherent the translation in the new page, the answer is NO, it’s not saved.
Adding a new page to your application, even by copying an existing page, is a major change in your primary language application, which create multiple new independent elements in your application (after the page has been copied, there isn’t any link between it and the original page). You need to re-seed the primary application, export a new XLIFF file, and translate the new <trans-unit> that were added to it.
Regards,
Arie.
♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
♦ Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More -
Where are renditions saved?
Hi!
Where are renditions saved?
Do we create completely new folios (and all the articles in each folio) or are the different renditions of a folio and all the articles in them saved in the save folder?
Thanks!
CJBut only for the DPS Professional or Enterprise level customers, according to Andrew.
Is that correct?
If this is the case, then, the rest of us will have to know ahead of time what device a client is using and share (via the Folio Producer: Organizer or via the Folio Panel in InDesign) the specific "rendition" with the client.
Even, if a client wants to access the same folio on various devices, they will need, then, to make sure and download the right rendition invitation on the right device.
This is complicated. Hope it doesn't last too long…
Thanks!
CJ -
i have no messages in my phone but my storage is 90% full and in my usage it says i have 12MG in messages (saved) but i dont have any messages in my phone - where are they saved ? how can i delete them? please help
pamalushka54,
We want to make sure that we get your phone up and running. Can you look to see where you have the most stuff stored at. Settings>General>Usage>Storage.
This will tell you what exactly is using everything. Then you can delete things from there.
RobinD_VZWSupport
Follow us on twitter @VZWSupport -
Where are the drivers for HP LaserJet 5P for Windows 8.1 (64bit)?
Had been using HP LaserJet 5p printer with HP LaserJet 5p printer driver, but had printer disconnect for a few months due to not have black toner. Now I want to use the printer and my control panel does not show HP Laser 5p printer for my tablet but shows it for my laptop. I can not find the driver on the HP support list and the support list does not recognize HP LaserJet 5p.
Where are the drivers for HP LaserJet 5p for windows 8.1 (64bit)??????Hi,
Basic print drivers are available for the HP Laerjet 5P via Windows Update.
Follow these steps to install the printer drivers on Windows 8.1:
http://h20564.www2.hp.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-c03470332#N100AA
Shlomi
Say thanks by clicking the Kudos thumb up in the post.
If my post resolve your problem please mark it as an Accepted Solution -
Issue with creating a proxy assembly for WCF services
Hi
I am in the process of creating a proxy assembly for WCF services (Project Server 2010) and followed instructions as per below URL
http://msdn.microsoft.com/en-us/library/ff621594.aspx#pj14_CreateProxyAssembly_UsingWebConfig
Getting an error when i ran GenWCFProxyAssembly.cmd in Visual studio command prompt as well as DOS command prompt
Please make a note, i have unzipped Source.zip under Documentation\Intellisense\WCF (path )
Did i missed out any thing
Kindly help me with this, trying to do this for the past 5 days
Regards
SantoshIssue has been resolved after adding environment variable for sn.exe
Regards
Santosh -
Where are the bullets for adobe. im creating a document and they are not in the toolbar
where are the bullets for adobe. im creating a document and they are not in the toolbar
ADOBE PRO I JUST GOT IT A FEW MONTHS AGO
-
Where are the files for the Backups that show up in About This Mac - Storage?
Where are the files for the Backups that show up in About This Mac - Storage?
My new Macbook Pro 13 retina has 1TB flash drive. But despite my TimeMachine being in a TimeCapsule my Macintosh HD shows 277 Gb of space has Backups. What is this for? How can I delete it?OS X Lion and newer Mac OS X versions create local snapshots in portable Macs if Time Machine is enabled. See > http://pondini.org/TM/30.html
You don't have to worry about. They are stored in a kind of volume named "MobileBackups", but they appear as stored in your hard drive. To delete them, open System Preferences > Time Machine, and turn off Time Machine. Then, turn it on. However, you don't need to delete them, as they will be deleted when your hard drive gets full -
Where are auto saved excel filed stored on a MacBook Pro?
Where are auto saved excel filed stored on a MacBook Pro?
Go to http://support.apple.com/kb/HT4946
and check:
Where iTunes backups are stored on your computer -
Where are the tutorials for Raw files from my Nikon?
Where are the tutorials for Raw files from my Nikon?
These tutorials should how to work in camera raw so you can edit NEFs.
How to make non-destructive edits in Camera Raw | Adobe Photoshop CC tutorials
Maybe you are looking for
-
Dualboot with Windows from secondary MBR drive using e.g. grub/refind
Hi! I'm trying to get my secondary drive with Windows 8, installed in MBR-mode to boot using either grub2, refind or any other suitable bootloader. "bootinfoscript" return: Boot Info Script 0.61 [1 April 2012] ============================= Boot Info
-
How to specify a unique integer for each local variable defined in TestStand?
I have a .net application that reads all TestStand local variables, but for the .net application each local variable should have a unique integer number. Iterating through the locals and storing the index is not a good solution, because if a local va
-
HT2020 How can I use ichat or face time for video conference to window computer?
How can I use Ichat or factime to video conference remote famiy members who have windows computers?
-
Date of "Completion Time" after incremental merge
I have a scenario which confuses me, but that might just be me. First I take a level 0 backup with the tag of WEEKLY. Then on the following weekdays I take level 1 backups "FOR RECOVER OF COPY WITH TAG WEEKLY" and then recover the weekly copy. Howeve
-
Hi Experts, This is regarding the PO Release strategy. I have implemented user exit u2018EXIT_SAPLEBND_002u2019 for filling User defined field i_cekko-usrc1 based on PO line item net values for PO release strategy. Our function consultant defined cha