473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Deploying ASP.NET app with IIS and ACL settings

Hi,

I would like to deploy a ASP.NET web application using the Web Setup Project
in Visual Studio 2003. The Web application uses Windows Authentication and
also Windows Authorization to provide certain functionality only to selected
group of users (setting ACLs on app subdirectories).

The Web Setup works fine except I do not know how to automatically include:
a) applying ACL to selected application subdirectories.
b) applying IIS settings (to allow only Windows Integrated and Digest
Authentication)

I can imagine this can be done using Custom Actions of Web Setup project.
But what to use to perform the setting itself? With ACL I can imagine using
command line commands (CACLS command) but I am not sure if this is a
standard or easist way. With ISS settings I do not know at all (maybe some
scripting).

Any ideas or references?

I have tried searching MSDN and a few other web resources but could not find
any guide/example.

Martin
Nov 19 '05 #1
2 3163
Hay ur question is not clear to me but any how what i understud is that
u want to configure ur ACL when u deploy ur site is that true.

If it is true then this is my suggesion.

All u need is to look for DirectoryServices Class of .Net and then
followup with its DirectorySearcher Class and this class will accept a
parameter which shall be ur Domain Name and this Name should not be
Hardcoded in the code insted it shall be read from the Webconfig <Xml
File> since the Domain where u are working will be diffrent from the
Domain where u will deploy the Site .
Hope this could help u
Good Luck

Nov 19 '05 #2
Hi Martin,

I think Jameel's suggestion on DirectoryService is reasonable since the
System.DirectoryServcie namespace covers most ASDI api and ADSI is a good
way to do the ACL or IIS config management.
And here are some reference on managing ACL and IIS via scripting:

#How To Use ADSI to Set Automatic Inheritance of File/Folder Permissions
http://support.microsoft.com/default...b;en-us;266461

#IIS Script center
http://www.microsoft.com/technet/scr...s/default.mspx

Hope also helps.

Thanks & Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ann Marinas | last post by:
Hi All! I am kinda confused with deploying a dotnetfx & MDAC together with my .NET applications. I was reading the "Redistributing the .NET Framework" on MSDN...
1
by: Tanu | last post by:
Hi, I am using visual studio .net for developing and deploying the web application. My application is running perfectly on my system. I uploaded the msi, setup.ini and setup.exe files on the...
10
by: Gerben van Loon | last post by:
Hi there, hope someone can help me on this: I'm planning to deploy several ASP.NET projects to a production server. Normally I used the "Project / Copy project" option in VS.NET, but to this...
2
by: Kevin | last post by:
Hi, Hope someone can help us with this problem. This is our first endeavour into .NET 2.0 :-) BACKGROUD INFO: ---------------------- We've built a website using .NET 2.0 and deployed onto...
5
by: sloan | last post by:
Are there any "gotchas" on deploying the default Membership Provider (aspnetdb) to a hosting provider? I'm about to do it. And how does one get to the "auto configurer" .. that allows you to...
2
by: queanbeyan | last post by:
Hi I have found that many of my potential users of my application are not able to write to their program files directory on C:\program files, however they have access to 'My documents'. i...
3
by: pooba53 | last post by:
I have a VB .NET 2003 application that communicates with an Access db. I am deploying the application using the Wizard that creates an install package and it IS properly grabbing the Access db and...
7
by: harry | last post by:
I've set my database connection as an Application.Setting using the designer. Since Application.Settings are read only, how do I change the connection properties when deploying to another...
1
by: David Jackson | last post by:
Hello, I'm looking for some best practice advice on deploying a 32-bit WinForms app on 32-bit Vista as regards file locations. The app will be written in Visual Studio.NET 2005 and will be...
0
by: lgeastwood | last post by:
I (finally) upgraded to A2007 from A 97 and downloaded the runtime & developer extensions. My first impression is tentatively positive. There are several new features (that Albert Kallal lists in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.