Storing Umbraco Settings On The File System And Packaging Changes For Deployment
Jul 7, 2010
Does anybody know of an easy way to store Umbraco settings (Document Types, Media Types etc) on the file system in order to manage that data within source control?
Note: changes to settings made on the file system need to be easily integrated back into the CMS database.
Also, does anybody know of a way to package up settings from a development environment for rolling out to staging and live environments?
Well basically I can't find anything regarding storing an image within a folder on the server, as appose to the SQL database. I have already written code to store the image within my database, but I also need to store the image as a physical entity for CSS purposes, here's a part of my code which can probably be used.
There are a bunch of hardcoded strings in a ASP.NET application.
eg. string constSetting = "XYZ";
There are a LOT of them. Is there a tool/plugin for Visual Studio 2008 to refactor it in such a way that the constant string goes into web.config and the above line gets replaced by the retrieved string from web.config app settings?
What it best location to store various configuration settings of a web site modules. Creating class (that inherit ConfigurationSection) that map the settings in web.config file?Or creating some DAL and BLL clases that work with database?
Im trying to build a deployment package out of VS2010 against a web project and want to include all IIS settings as configured in IIS Manager. However when i enable this i get the following error message
Object of type 'manifest' and path
[code]...
Now this error makes very little sense as the specified application does exist in Default Web Site. I've checked the spelling. I've tried having ISV as a virtual directory and as an Application and tried with and without the ISV folder.
On the Web page i hae the Project URL set to [URL] On the Package/Publish tab IIS web site name is set to "Default Web Site/ISV/Web.Crm.Framework/"
Bing/Google search turn up very little on this and the documentation is not really detailed enough.
I have a File Uploader in my ASP.NET application Using C#, we can upload any type like images, documents, pdf etc.
I m storing it in the Filesystem and having only the Name of the File in DB.My doubt is can we store the entire file, images in DB. State me Which is good practice and why we need to use it.
I have a Win7 Pro laptop that I do my development on and it is in Domain1.I have a Win2003 server that has a shared folder on it and it is in Domain2. I have an impersonation routine in my code that allows IO to occur between my laptop and the server, it works.When I move the code to my Win2003 hosted servers the impersonation does not authenticate to the shared folder.Is there some kind of domain policy, IIS or Windows 2003 setting that prevents impersonation from occurring (there no impersonation in my web.config, only in code)? I saw in the security faq something about running the -ga command in order to grant the permissions. What is this referring to exactly?
I am trying to connect forex trade server from my asp.net application. I am using MT4 Api for connecting. Its installed successfully and added to .net code library. But when i trying to create object of MetaTrader Class i got exception
The current configuration system does not support user-scoped settings.
There is no compile time error in code. I am getting run time exception.
There are the urls where i got some hope for solution but could not able to implement.
On attempting to deploy a .net 3.5 website on the default app pool in IIS7 having the framework section set to 4.0, I get the following error.There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined.Commenting off the offending lines didnt help either.
I'm designing a simple framework for small websites to be used in an intranet. The websites will all be similar, but there will be a few pages, or controls on pages, that are different. I would like to be able to version and maintain the common framework part of the websites as if they were a regular library - if I need to update CSS then I only have to do it in one place. Can I package-up ASPX files, images and CSS and distribute them like this? What am I missing?
My goal is to allow the developers of the few core content pages to get up and running with the websites quickly, with standard styles and images.
I've managed (after much difficulty) to get to the second step of the installation of Umbraco CMS onto my local machine. I'm getting this error when I try to move onto the next step: "Could not save the web.config file. modify the connection string manually. Access to the path 'c:inetpubwwwrootUmbracoumbraco1web.config' is denied."
I've tried setting Read and Write permissions on the web.config file, the umbraco1 folder AND the Umbraco folder, but nothing, same error. Restarted IIS, rebooted, still no change. I've manually changed the web.config app key which it's trying to update, but there's no way to proceed on to the next step. There's obviously some random permission thing that I'm not doing properly, but I can't find it. On a slight tangent, when I try to open the Permissions wizard, nothing happens - I want to scream. I'm running IIS 6
I am designing a web application for Leave Application of our faculties. There is a form in my website which represent the existing paper-back leave application form. Users(faculties) have to fill-up this web form and after validation an email will be send to the email address of our principal/hod. I hope that email address(s) will be provided to our group members. Now I want to know that what will be the required configuration of the web.config file? I found this blog ScottGu's Blog. Here the given configuration is:
[Code]....
But I think this is not acceptable for my project as the smtp from="test@foo.com", userName, password are unknown to me. So what should I do. Am I able to understand my requirement to you?
Can I create an incremental deployment package using either Visual Studio 2010 Web Deployment Projects or Web Deploy (Web Deployment Tool) .
I need to automatically select changed files from a source and destination or a change set on TFS and build a deployment package only with the changed files.
I have an asp contact form that gets settings from an xml file. My problem is that the mail server I use needs basic authentication but the xml/asp doesnt seem to have authentication built in.
However, xmlFilePath shows up as Nothing after that line of code is run. What's the correct code to get a setting out of the web.config file in an ASP.NET application?
NOTE: Although you can add keys individually to the <appsettings> tag, I'm trying to figure out how to use it with the "Settings" tab in the project's properties.
My asp.net app has is using a web.config for common configuration. I also have a section that maps some data objects to connection strings, and that section is going to be couple thousand of lines. I want to move that section to another config file "dataMappings.config", so I don't bulk up web.config - is there a standard mechanism of accessing that config file?
I've been thinking about this for a couple days but still would like some feedback on the best way to go about this:
I have multiple sites (domains) that will be running the same code. However, there are a couple settings I have in the appsettings web.config file which are relative to each site. (ie: defaultSiteTitle, emailFromAddress, etc).
I would like to deploy this application in only one location (folder) and point the domains in IIS to that one directory.
To do this, I believe I cannot use the web.config file to hold these settings...
So, I decided to make a SiteSettings.xml file and load the site settings in there:
<sites> <oSite domain="abc.com" defaultSiteTitle="This is Site ABC" emailFromAddress="info@abc.com" /> <oSite domain="xyz.com" defaultSiteTitle="This is Site XYZ" emailFromAddress="info@xyz.com" /> </sites>
So when I need to access the site settings I just call a function in my datalayer that reads this xml file and via the httpRequest I pass it it determines which site settings to use.
Okay, that works when I call it from a page where I have the httpRequest...
Howver, now when I'm into some business layer functions say sendEmail and I need to find the emailFromAddress from the SiteSettings.xml file, I don't have the httpRequest. I know I could probably hack something together and pass it someway...
But I'm trying to figure out the best way to do this...
I don't really want to store it into session.
Is it possible to tell IIS what web.config file to look at, if I had multiple web.config files? (I don't think this is possible).
I've deployed a test project onto one of our web servers, and it doesn't appear that the CSS file is taking correctly. The page loads fine, but the styles aren't there. It looked fine in dev, but not now. Any thoughts on what's going on? I'm sure there is an easy solution, but I'm very new to the ASP.NET world.
Actually i am trying to storing the uploaded file into database but when i run this codes:
[Code]....
I got this error: " Incorrect syntax near the keyword 'File'.Incorrect syntax near the keyword 'File'. " can anybody tell me why this error came out?I tried toi change my connection string in web config,but it still showing the same error each time i run it in my local.