HI guys,
I don't know whether this question has been asked earlier or not.
But i want to encrypt the connectionstrings in my web.config. And my application will be deployed in web farm.
I tried reading some blogs about this, but got confused.
Can somebody tell me a link which they have really tried and got succeded.
...
Hi,
I have configured the web.config to allow 50 MB <httpRuntime maxRequestLength="51200" />
but when I try to add an Atachment of 40MB to a sharepoint list it fails.
But it works if I increase the maxRequestLength to 52 MB <httpRuntime maxRequestLength="53248" />.
What is happening?? does the web service call increse the size of the ...
I Need add custom values to AppSettings in a webservice
i have this code, but nothing happens.
procedure TWebService1.AddStrConn(KeyConn, ValueConn: String);
var
config : System.Configuration.Configuration;
begin
config:=ConfigurationManager.OpenExeConfiguration(System.Reflection.Assembly.GetExecutingAssembly().Location);
config.AppS...
Hello,
I am applying a new version of an assembly to a web project and have found that I am going to have to replace about 500 instances of the Register Assembly tag at the top of each web control. I considered registering it in the web.config but when I try this and remove the "Register" tag from the controls, i receive the "unrecognize...
I have a web application with a couple different sub-webs that use MVC. The problem I'm running into is that two of the sub webs use different MVC versions. One was recently upgraded to use the 1.0 version, and one is stuck on an earlier preview version.
After upgrading one of the sub-webs to 1.0, the other web that is using the previ...
Is it possible using virtual directories and/or virtual applications to set up two web sites that share the same application code (aspx pages etc.) but have different web.config files? The sites and code are residing on the same server running on the same IIS.
I am using IIS 6.
...
I've got the following set up in the web.config of my ASP.NET MVC application:
<authentication mode="Windows" />
<authorization>
<allow roles="MySecurityGroup"/>
<deny users="*"/>
</authorization>
<customErrors mode="On" defaultRedirect="Error.aspx">
<error statusCode="401" redirect="Help.aspx"/>
</customErrors>
Everything...
I get this error repeatedly when developing ASP.Net applications:
Cannot create/shadow copy 'XXXXX' when that file already exists
Where XXXXX is a random DLL. Typically the DLL is one of the DLLs from Microsoft's Enterprise Library, but it varies.
It's really random, and it's very frustrating. I will go hours without getting the e...
Hi,
I'm trying to get NLog to log to my database log table but to no avail. I'm sure my connection string is correct because it's the same used elsewhere in my web.config. Writing out to a file works fine, so I know it's not just NLog, but must be something I'm doing wrong. Below is my NLog configuration:
<!-- NLOG CONFIGURATION -->...
I have a sub folder that has an aspx page and a web.config file that overrides a connection string in the web.config in the root directory. The problem is if the aspx page contains any user controls the user controls still get the connection string from the web.config in the root directory. Is there anyway to force them to use the web....
Hi,
I added:
<pages validateRequest="false">
to my web.config but I am still getting the error:
A potentially dangerous Request.Form value was detected from the
I added it to the view page also and still getting the error.
How can this be?
...
I'm sure everyone has to deal with these situations, we check in our solution to source control and each dev machine will have its own resources for debugging, building and testing..
The most common being:
Web server (IIS)
Database (SQL)
The web server is easy to handle, each dev machine will have its own proj.user file to specify d...
Hello,
1) By default configuration elements have their connectionStringName attribute set to LocalSqlServer, and as far as I know, this attribute refers to connection defined in the element in machine.config file.
a) I assume this connection string refers to database aspnetdb.mdf?!
b) I understand aspnetdb.mdf is used in cases w...
I'm trying to get a custom web.config section to get inherited by an application's web.config in a website subfolder.
The custom section works fine in the main website, but it appears the custom section isn't inherited.
Other elements in the web.config are getting inherited - it's just this custom section which isn't.
Is this by des...
I would like to have the session state in a separate process for my app, but I would also like to have some code run whenever a user's session is over. (changing a status string that indicates whether they are online or not and decrementing the online users count.)
If my session state is InProc in the web config, I can use the Session_...
I am developing WCF service hosted by IIS. I need to add KnownType attribute to my base class. One way of adding KnownType attribute is to add a section into the Web.config file like this:
<system.runtime.serialization>
<dataContractSerializer>
<declaredTypes>
<add type="MyBase, MyBaseDll">
<knownType type="MyDerived, MyDeri...
Can IIS/ASP.net ignore the browserCaps section in a web.config?
I have an app that on testing servers and dev environment IE8 is reported correctly - but in deployment IE8 is not recognised and content is rendedered "downlevel".....
do settings in web.config conflict with browsers.ini?
...
I'd like to have more than 1 setting for maxRequestLength - file size upload limitation (e.g. one for File/New, other for Picture/New). All of my Actions take additional parameters (e.g. /File/New?folderId=234).
Single setting works as expected:
<httpRuntime executionTimeout="60" maxRequestLength="1024" />
I tried to have 2 settings ...
Hi,
In my code behind page, how do I access the connection string which is stored in my web.config file?
C# .net Visual Studio 2008.
Thanks, R.
...
I have a module that uses multithreading. I want to store the number of threads to be created by the module in the web.config file.
What tag should I use?
...