As all you know, Sharepoint 2003 has simple access rights privilages. You can only grant rights (Reader, Contributor, Administrator) but unfortunatelly you can not deny access. So, if someone is not welcome in SharePoint portal there is no simple way to restrict access for him.
I found nice articles how to secure access to certain page...
I'm writing a WPF application to help non-XML-savvy customers set up configuration files on a web server. web.config is one of these files. I have custom sections defined, but I've commented them out until I get the basics working.
In web.config, I have this:
<appSettings>
<add key="buffer" value="65536"/>
<add key="updateI...
In visual studio 2008 when you add a web service reference, and set the Url behavior to dynamic it will create a My.Settings.Namespace.Webservice setting in a special My.Settings section in the web.config i do not like this style, i want to keep using the appSettings>value for this. how can i tell visual studio to use appSettings instead...
I have an asp.net web application that is using a MembershipProvider and RolesProvider that I wrote to use our eDirectory ldap servers.
Here are my providers now:
<membership defaultProvider="EDirectoryMembershipProvider">
<providers>
<clear/>
<add name="EDirectoryMembershipProvider" type="EDirectoryMembershipProvider"
...
I think i am missing something in https...
Currently i am using this to redirect the desired page from http to https
If Not Request.IsSecureConnection Then
Dim serverName As String = HttpUtility.UrlEncode(Request.ServerVariables("SERVER_NAME"))
Dim filePath As String = Request.FilePath
Response.Redirect(("https://" & serverName...
I have an asp.net intranet application using windows authentication. I created the application years ago with VS 2005, and the windows authentication bit was working perfectly. My web.config has the following (inside configuration -> system.web element):
<authentication mode="Windows" />
<authorization>
<deny users="?"/>
...
I am using Windows authentication and don't have a custom membership. However I do have a custom role provider and turned it on. However, what about the < authorization /> element in the web.config? Do I need to do something with that as well?
At the moment I can't get use Roles.GetRolesForUser("") method (returns nothing) but have to d...
When looking over the statistics for my site, I realized that the vast majority of traffic is coming via third party links to classic ASP pages which haven't existing for a few years now.
I decided that adding a bunch of urlMappings to the web.config wasn't a great idea, so I added Intelligencia UrlRewrite and tried to add a rule, as fo...
In ASP.NET I often see (and have copied the following) but never really understood the difference between the * and ? symbols.
for example
<system.web>
<authorization>
<deny users="*" />
<deny users="?" />
</authorization>
</system.web>
Just wondering if anyone can tell me the difference?
Cheers.
...
I am using Vista, but most of the other developers working on the same projects as me are still using XP. Some of our projects have wildcard script mappings for handling vanity URLs, so each time I work on those sites, my IIS 7 adds a system.webServer/handlers section to the web.config file and when one of the other developers do an upda...
I have a team of three developers, two of whom use a standard local test database, one of whom uses his own database and there is also a server environment with a production database and a testing database.
This amounts to multiple connection strings required.
The web.config file periodically gets updated and keeps having to be changed...
I am getting following error when running an ASP.NET application:
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 your configuration file appropriately.
Parser ...
Recently I came across the error "Collection was modified after the enumerator was instantiated" and I have no idea why. The error specifies the web.config. What causes this error?
I haven't been able to reproduce it. The error pops up very seldom and random. My program takes in a file and processes it. When I receive this error I ...
Hi.
I have been having some problems with this for a few days now...
I have designed a WCF Class Library - WebAPILibrary. It is under my
solution which also contains my web project.
I now am attempting to enable a AJAX/JSON response to a search query.
In the client code examples, I see something to the effect:
function btnsrch_o...
I am trying to take the code in an .ASMX web service and change it into a class library project. The web service project has a web.config file with:
<applicationSettings>
<myService.Properties.Settings>
<setting name="DownloadChunkSize" serializeAs="String">
<value>100000</value>
</setting>
..and the co...
I'm wondering if there is an event that can be handled or a method that can be overridden that takes place before the Web.config file is parsed and monitored by the asp.net 3.5 application / AppDomain lifecycle.
The practical reason for this is that I'd like to be able to write the Web.config file from a copy in the database while the...
I am having trouble trying to secure ELMAH. I have followed Phil Haacked's tutorial, with the only difference being the demo project is a web application and my project is a website.
<add verb="POST,GET,HEAD" path="/admin/elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
<location path="admin">
<system.web>
...
I'm considering using FormsAuthentication in my web app. Just how secure is it to specify the users in the web.config that are allowed to use the application?
Here is an example of what I am talking about:
<authentication mode="Forms">
<forms loginUrl="TestLogin.aspx" slidingExpiration="true" timeout="30">
<credentials>
...
hello,
I am using membership class for my user management, and it created a database called ASPNETDB.MDF.. I decided to use the same database to handle my other data, and so I added some of my own tables in there...
When I try to access it:
<connectionStrings>
<add name="connString" connectionString="Initial Catalog=MyProject...
Hi --
This has worked fine locally for months and just broke on deployment to the server (discountasp). I'm developing with .net 3.5 and asp.net mvc. I've previously successfully hosted asp.net mvc applications on this same account (but without the config section).
I have a custom config section set up in my web.config file that's caus...