web-config,settings,dotnetnuke,manifest,uninstall , DNN module uninstall how to remove settings from web.config

DNN module uninstall how to remove settings from web.config


Tag: web-config,settings,dotnetnuke,manifest,uninstall

I have a DNN manifest file with this:

<node path="/configuration/appSettings" action="update" key="key"    collision="overwrite">
<add key="LocalCurrencyCode" value="ARS"/>

and for uninstall I have this:

<node path="/configuration/appsettings/add[@name='LocalCurrencyCode']" action="remove" />

However, when I uninstall the module the setting is not removed from web.config. Can anyone see what I am doing wrong?


Fixed it:

              <node path="/configuration/appSettings/add[@key='InvoiceEmailSubject']" action="remove" />

Turns out that I needed "appSettings" because xml nodes are case sensitive. I also needed to use @key= as provided by Dexterity above.


Webconfig error ASPX and ASHX

I have been put in charge of maintaining an old legacy website(hasn't been touched in maybe 4-5 years) using ASPX and ASHX. The website was working decently on server 2003, but the web host forced us to move to 2008. Upon moving to 2008 we received this error Config Error...

jQuery settings for form validation

I'm building a basic jQuery form validator. The code below is just to validate the name. I have several functions to validate mail, password, credit card, date etc. I want the user to be able to easily edit the error messages and classes. Let's say the user want to change...

How does ASP.NET compile config files, such as web.config or machine.config?

In reading this question, I asked in one of the answers the following: This answer implies that ASP.NET reads web.config and other config files from the top, ie: top-down. I thought config files were read as a "single instance" meaning that the compiler first parses the config file for accuracy...

How to specify Oracle SID to connectionStrings in web.config?

I have an ASP.NET application whose connection to the database seems to fail to open because of the Oracle SID not being specified. I can't find any doc on how to specify it in the connection string. Did anyone have the same problem?

Expanding Link Abbreviatons, Dreamweaver Setting

I think this is a pretty basic question, but I just haven't been able to find a solution for this through google. In Dreamweaver, in the code view, Dreamweaver will oftentimes abbreviate links and src's in order to make the experience more aesthetic and the code more easily browseable. However,...

How to read custom section data in web.config with minimum code

here is my custom section in web.config. now i want read data by c# <configuration> <MailList> <MailID id="[email protected]" Value="UK" /> <MailID id="[email protected]" Value="US" /> <MailID id="[email protected]" Value="CA" /> </databases> </configuration> suppose i want technique by which i can only read data based on value. if i supply UK as value...

MVC web.config compilation debug=true - a manual change needed?

When one creates a MVC project using the the built-in templates (File -> new Project etc) the web.config reads <compilation debug="true" targetFramework="4.5" /> Inside the Web.Release.config I see this transform <compilation xdt:Transform="RemoveAttributes(debug)" /> so I was assuming that when I build in Release mode the debug="true" would disappear. However I...

URL Rewrite causing redirect loop

An issue has been frustrating me today in setting up a URL Rewrite in an old .Net Webforms website (EDIT: It is a Web Site project, not a Web Application project, if that is making a difference). The site I'm working on is linked to a lot, all linking to...

Gtk vim remove mapping of

I used classic vim, but recently i moved to gtk-vim on ubuntu, but emmet plugin don't working, it is because when I press <C-Y> it copies above char to cursor position, i failed to disable it. When i set unmap or iunmap <C-Y> it writes that there is no maping,...

Android Settings : How to use SharedPreferences in a SettingsFragment?

I am using my own SharedPreferences in a normal Activity with a custom layout with two checkboxes and seekbars. Now I want to make a proper SettingsActivity/SettingsFragment with these settings. Is there a way to use my custom SharedPreference instead of the PreferenceManager and the default preference file? My own...

Is it practical to load user settings/preferences from an embedded database? [closed]

The program that I am currently developing will have user preferences and I would like to ask if it would be practical to load these settings from an embedded database? Like for example if the user wants a different color scheme, the value of that certain color will be stored...

ASP.NET Webforms project is reading from a web.config in a completely different solution on my PC when debugging

My web app is reading from a web.config from a completely different project with the same name in another solution. How can I check/change what web..config my project is referencing. I want to ensure it is the web.config in the current project.

Display Image in Kendo Grid : Error during serialization or deserialization using the JSON JavaScriptSerializer

In order to display an image saved as binary in dabatase i do the following: .Columns(columns => { columns.Bound(c => c.Title).Width(420).ClientTemplate(string.Format("{0}...", "#= formatter(Title) #")); columns.Bound(c => c.Text).Width(900).ClientTemplate(string.Format("{0}...", "#= formatter(Text) #")); columns.ForeignKey(p => p.languageId, (System.Collections.IEnumerable)ViewData["lang"], "Id", "Name").Title("Language").Width(140).EditorTemplateName("LangDropDown"); columns.Bound(p =>...

Application keep Alive in Shared Hosting , No Access to IIS Manager [closed]

I am using GoDaddy's shared hosting. My website usually takes time to load everytime when i open it after sometime. I came to know that Asp.net websites starts again after some time-out. Then i came to know that we can Keep Alive our websites via IIS Manager. But i do...

Save dictionary in application settings and load it on start

I've got Dictionary<string, double> which I would like to save and restore it when I restart the application. From what I have heard you cannot store dictionary in c#, so trying to make a workaround. Currently I have made string variable in setting called DB, and trying to use something...

IIS and Yii2 pretty URL

What is the .htaccess equivalent for IIS to enable pretty URLs in Yii2 on IIS. Indeed, I don't know what could I do with web.conf to allow those URLs.

Controlling Auto Rotation with toggle?

I want to create a toggle button through which I can enable/disable auto rotation. I've tried this: public void arclick(View view) { if (arclick.isChecked()) android.provider.Settings.System.putInt(getContentResolver(), android.provider.Settings.System.USER_ROTATION, 90); else android.provider.Settings.System.putInt(getContentResolver(), android.provider.Settings.System.USER_ROTATION, 0); } But it's not working actually. Any ideas? Thanks in advance!!! P.S: The selected orientation should be applied to...

How to run ASP.NET MVC project inside another ASP.NET MVC project

Let's say I have a MVC project where there is root folder MVC2 and. Now, I want another MVC project to that MVC2 folder and serve it. Below url should serve MVC2 project which is just a folder inside the root project. Root project is also MVC. currentSite.com -> current...

Media files end up in in a pycharm subdirectory when uploading

I am building a Django application on a Windows system where the user should be able to upload images. But somehow my uploades files end up in my Program Files directory at: C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.5.1\jre\jre\bin\WebApp\media\TestData\static\images I just can't understand why I get this result. I would like...

ASP.NET strange behaviour: Adding Debug=true in web.config changes css

Just as the question states: When I add debug=true to my web.config (no other changes anywhere in the code) my page is rendered with no background colour. Any explanation why this should occur?...

Django settings

In my project (based on Django) I need a custom option in order to switch on/off some functionality in my view. if (FLAG): ..... else: ..... As I know, if I set this variable in settings.py I wouldn't have imported it from settings.py, because settings.py is not a module and...


I am setting up a redirect to WWW for one of our sites in the web.config and ran into a small issue. The code I have in the web.config for the rewrite is as follows : <rewrite> <rules> <rule name="Redirect to www" patternSyntax="Wildcard" stopProcessing="true"> <match url="*" /> <conditions> <add input="{HTTP_HOST}"...

Custom config section error on file download in MVC

I'm using a custom configuration section in my web.config in an ASP.NET MVC 5 project. It works perfectly fine, until I try to download a file via a link: <a href="@Url.Action("Download", new { id = Model.Id })">... Here's how I'm handling the download in the controller: return new FileStreamResult(myStream, "application/octet-stream")...

Domain Rewrite for both HTTP and HTTPS in IIS 7

I want to do a number of 301 redirects in one request and I found this article to be helpful. However, I have a problem where http://example.com redirects to https://www.example.com BUT https://example.com DOES NOT redirect to https://www.example.com So here are my examples: SEO - remove default.aspx (works fine but no...

Form Data Not Posting While Using URL Rewrite

OK. Where to start.... I have a website. It is running on an IIS server using classic asp. I have forms on that website. The forms were working fine until I decided to add some url rewrite rules to my web.config file to redirect nice looking urls. After doing that,...

How to configure WCF Service with wsHttpBinding hosted on IIS and consumable over Web?

I'm not experienced with WCF Service in general (this is my 1'st attempt to create, configure and consume WCF Service). I've created my WCF Service, tested it through WCF Test Client (on Development PC "in" Visual Studio) and everything was working. I've hosted it in IIS on our Server (not...

How to enforce action bar settings icon at old android APIs

The new android smartphones have no menu settings button. Instead, the settings icon is in the ActionBar. If I run my app on an old smartphone, there is no settings icon in the actionbar. You have to click at the menu settings button of the smartphone. How can I enforce...

My action bar with settings menu in the Homepage doesn't show. It only shows on the bottom if I click the settings button

@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.menu_main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up...

how to store cookie permanently

I don´t want to show mail id in my application code. I want to give text box and what ever email id I will give it should be stored in web.config file for ever until I change it. string store= "[email protected]"; ConfigurationManager.AppSettings["MailId"] = store; string message1 = ConfigurationManager.AppSettings["MailId"]; <appSettings> <add...

How can I prevent requests from certain domain in web.config?

I want to restrict one domain for my application in web.config. How can I do it? I just found solution for IIS settings, like <add ipAddress="some_ip_address" /> but I want to restrict a domain, not IP address...

cordova IOS permanent storage if app is deleted

we're developing a cordova based ios app which is being limited to a select number of login credentials (id pins). Im looking to create an internal lookup to do this. Basically if the user enters the correct pin id (that is saved inside app json file) then they gain access....

requiresQuestionAndAnswer set to false in web.config but RequiresQuestionAndAnswer is true at runtime

In an ASP.net web application I have defined the following Membership provider in the web.config: <membership> <providers> <add connectionStringName="MyServer" name="MyServer" type="System.Web.Security.SqlMembershipProvider" enablePasswordReset="true" requiresQuestionAndAnswer="false" enablePasswordRetrieval="false" /> </providers> </membership> When I run the application in the debugger, the property Membership.Provider.RequiresQuestionAndAnswer is true. Why? And how can I fix this? Update: Ar tuntime,...

How do you declare or use variables in web.config

Because our web application is using both Entityframework and System.Data.SqlClient, we need to have 2 . This is very error prone, as you need to make you update both with the same data. So i wonder if its posible to add variables to the web.config xml? <connectionStrings> <add name="Server" value="sql2014"...

Reading settings from applicationSettings is very slow?

I have a C# WinForms application that stores 4 settings in my App.config file (specifically in the applicationSettings section). These settings were created via the Project -> Properties -> Settings UI in Visual Studio. My App.config file looks like this: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System,...

Heroku deployment - RoR - “Detected manifest file, assuming assets were compiled locally”

RoR rookie here with a small issue regarding Heroku deployment. Asset pipeline is not getting compiled when I deploy to Heroku. I tried a lot of suggestions available online but with no success. In my build, I see "Detected manifest file, assuming assets were compiled locally" message and my page...

IIS and Windows authentication not allowing error pages

I have been trying this from last two days. I am not getting whats the problem. I searched the web but didn't find any solution. i tried all the settings of IIS like "Moving negotiate down, disable other authentication" but doesn't work. SO here is my problem: I have a...

Writes to database seem to have no effect

I am working with an ASP.NET web application written in C# deployed to IIS/Windows Server 2008 R2. The application uses NHibernate to interact with an Oracle database running on a networked unix server. It seems that writes being made by the application to the database have no effect. If I...

DNN module uninstall how to remove settings from web.config

I have a DNN manifest file with this: <configuration> <nodes> <node path="/configuration/appSettings" action="update" key="key" collision="overwrite"> <add key="LocalCurrencyCode" value="ARS"/> </node> and for uninstall I have this: <uninstall> <configuration> <nodes> <node path="/configuration/appsettings/add[@name='LocalCurrencyCode']" action="remove" /> However, when I uninstall the module the setting is not removed from web.config. Can anyone see what I...

Nop Commerce automatically redirecting to different URL

I am having a very peculiar issue. For some specific url nop website redirects to another url. For example - This is the url that is supposed to go - when clicked or even pasted in address bar, I debugged the code and in the application_beginrequest method notice the url...

Matlab 2015 font size in Help browser

I have Matlab R2015a. The font size in the Help browser is too small and there are no options to increase it. They say use ctrl and +, but as soon as you navigate, the font is back to its miniature size. Is there a way to increase the font...

Error in Web Config in ASP.NET

ASP.NET WebForms and i am making authentication for users , but i get this error in web.config file: Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify...

System.TypeInitializationException' occurred

I am making application in ASP.NET MVC 5 C#. I am getting exception while trying to access connection string element from web.config file. An exception of type 'System.TypeInitializationException' occurred in WebPortalClient.dll but was not handled in user code Web.Config: <?xml version="1.0" encoding="utf-8"?> <!-- For more information on how to configure...

Issue with Similar Rewrite Rules in Web.config

I have a rule in my web.config that works. <rule name="Guestbook Rewrite" stopProcessing="true"> <match url="(.*?)-guestbook" /> <action type="Rewrite" url="guestbook.asp?gb={R:1}" /> </rule> When someone goes to MyDomain.com/view-guestbook or MyDomain.com/sign-guestbook they go to the appropriate pages. What I am having difficulty with is that I have several pages of guestbook entries, so...

Writing to .config files

I am having an issue somewhat similar to this question: C#: Config file error BACKGROUND My situation is this: I am using NLog and I have setup a Database target. My app shows an installation page on first run from which I build a connection string for other purposes but...

C# - Settings.Default.Save() is very slow

I want to save some UI changes when the program closes. I've read that one of the simplest ways to do that is with settings. I figured I'd save those changes to the settings whenever the program closes, instead of saving it everytime the user changes those settings. So, I...

IIS Url Rewrite rule HTTP to HTTPS AND add WWW

I have a website that I want to be only used with the WWW sub-domain and via HTTPS. I had an URL rewrite working for adding WWW. But now I also want to force a HTTP to HTTPS redirect. Just forcing HTTPS works as well, but when I can't really...

how to have existing data in coredata ENTITY before the app launches

In my iOS app - I have something called settings where I set the priority for X , Y ,Z ; eg: X = 30, Y = 60 , Z = 80. which have some default value (X=50,Y=50 and Z =50) for the first time and untill user changes it...

IIS rewrite rule to redirect https to http not working

There's lots of questions here about redirecting http to https so I figured it would be easy to reverse the process. However, everything I've tried hasn't worked. I'm trying to combine the rule with my canonical host name rule (it's the first rule, at the top of the rewrite rules):...

Disable custom app settings

I have an app where I'd like to open the Settings.app so the user can enable Wi-Fi or mobile data, but when I use UIApplication.sharedApplication().openURL(NSURL(string: UIApplicationOpenSettingsURLString)!) I get redirected to my custom settings, where I have an option for Notifications and one for Use Mobile Data. Is there a way...