I have a nant script calling msbuild on my Team City server. I have Team City check out source from TFS into a directory called C:\Source In my solution I have one website that is dependent on the two class library projects in the same solution.
The idea is that the msbuild will be done in that source directory and then msdeploy will c...
Our application requires Active Directory for users to access it. Our goal is to split the business logic and the security.
Here is what I try to do but did not succeed yet :
1) Connect to Active Directory via web.config.
2) Specify groups needed for each .aspx page in the web.config file. (e.g.: index.aspx = admin, users)
3) Redire...
Hello, I am new to the windows web server and have not the knowledge of syntax for web.config file.
We have under Windows IIS7 an Wordpress installation and for that wordpres generated few lines for a web.config file. Here is the content of the web.config file:
1.with this content our /stats directory and Webstats is no more accessible...
Ultimate goal is to provide protection against programming mistakes. I want to make sure that every page in a portion of my web application has a role specified like below. Ideally I would like to programatically check all requests coming in ( think IHttpModule ) and make sure that the page being requested has a role specified.
I can'...
Whenever I publish my MVC web application in VS 2010 via the One-click publish feature (I'm not doing any web.config transforms or anything fancy - yet!). The next time I come to build the app I get the following error:
It is an error to use a section registered as allowDefinition='MachineToApplication'
beyond application level. This e...
I am writing a website which uses Telerik MVC Extensions, and am getting an error on my test server when I get no such error on my development PC.
The error is ...
Web.config(101): error CS0246: The type
or namespace name 'Telerik' could not
be found (are you missing a using
directive or an assembly reference?)
Here is the r...
Hi Guys,
So we've upgraded our site from 3.5 SP1 -> .NET 4.
When we ran the site, we got an Internal Server Error (500), stating the following configuration group could not be read:
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="true" enableCaching="true" />
<webServices>...
Hi
I am developing an asp.net mvc 2 web application. My clients will most likely want a copy of my application to be hosted on their servers instead of me hosting it on my server for all clients.
However I see a problem with this because I was planning to use the .net 2.0 encryptor to encrypt my web.config to make it safer. I got to t...
I read an article here to find the solution to my problem. But I found that it is not working for me. Whenever I tries to use any function I have to add same namespace on every page. by doing using System.Web.UI . Can I also use it for namespace that is being created along with an application. i.e. Library is an another namespace that li...
I want to create a generic web.config file for different web servers in VB.NET. So, depending on the server configuration requirements, applications can retrieve all values from that generic configuration file.
Is this possible? How would I do this?
...
I currently have my access permissions in web.config:
<location path="Account">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
...
I don't like this for two reasons:
1) web.config becomes a mess as my website builds up
2) I'm not sure it's good security to ke...
Hi
i want to include multiple location tag in my web.config for which i want to include an external file which contain these location tags and then refer this external file in my web.config please help as i know file attribute is avail for appsetting and configsource for some other tags but how to go for location tags like the below ment...
Our solution file contains many different projects including an ASP.NET MVC web app, a windows service, and several desktop applications. One project handles logging and has an app.config file containing a list of recipients to inform when something fatal has been logged.
Concerning the deployment of our webapp, I was wondering if it...
Hi.
Sorry for cross-posting, but I didn't get lucky posting at the IIS forum.
We're using msdeploy (or web deploy if you wish) to package and deploy web apps. By declaring parameters package time we can provide values at deploy time (to replace connection strings among other things).
The problem we currently face is replacing values i...
My web app calls an external dll. Within the dll I want to access the specifiedPickupDirectory pickupDirectoryLocation value within the system.net/mailSettings/smtp section. How can I grab it from within the dll code?
Something like
System.Configuration.ConfigurationSettings.GetConfig("configuration/system.net/mailSettings/smtp/speci...
Okay, I've been banging my head against this for almost five hours now, so I figure it's time to ask.
I'm working on a Web App (.NET 4.0, C#, ASP.NET, AJAX, jQuery) in Visual Studio 2010 (Professional) that has several parts. Let's call them Mo, Larry, and Curly, with each residing in a subfolder of the project. Currently, each has seve...
I had this same problem last week, which resolved itself after I enabled impersonation. Now, I've moved this box to a different location and am now receiving it again. However, this time it is much less descriptive. The only error I'm receiving is:
An error occurred loading a configuration file: Failed to start monitoring changes to '\\...
Hi,
My Web Application goes down after running for some time. The reason is because it cannot detect certain configuration settings in the Web.Config file. To restore it to working conditions, all I need to do is to add a space in the Web.Config and save it. This triggers the application to be reloaded.. and with all the database set...
I've written a command line tool that deploys HTTP Handlers to an applications Web.Config file using a combination of System.Configuration, System.Web.Configuration and Microsoft.Web.Administration since it needs to register the handlers for both Classic and Integrated Modes as I don't know what mode end users will be using for their IIS...
Hi,
I'm slightly puzzled with what should log out a user.
At the moment I have a session timeout set to 20 minutes and I thought that once the session expires the user should be logged out.
I can add a code that will do that on a session_end.
I came across a form authentication timeout in a web.config. Currently it's set to 48 hours...