473,473 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASPNET Deployment

Hello everybody:

I am having a problem deploying an ASP.NET application. I want to
build an installer that has to do the following:

1. Install the application:
2. In the CustomActions, I am calling "cacls.exe" to grant write
privileges to data\database.mdb to the ASPNET user account.

Everything is fine but, the problem arises when I try to test in one
of my servers. The server is Windows 2003 and I installed application
server. I haven't made any changes to it (no security settings,
etc...)

I have noticed that the folders under inetpub are created and the
privileges are granted for a user called IUSR_<MACHINE_NAME>. When i
give writing rights to this user, the application works fine.

How can I query for the user that asp.net will run on on the
installation?

Thanks in advance!

Arturo
Nov 18 '05 #1
2 888
IUSR_{MACHINE_NAME} is standard for anon HTTP access, so you can simply
query the machine name for this. The ASP.NET worker process account is set
in machine.config, but there may be an easier way to determine this account.

Depending on what you are actually trying to do, you may be better to have
the installer set up an account and set your thread to that account when you
perform write actions. This reduces the exposure from granting IUSR rights.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Arturo" <ar******@lycos.com> wrote in message
news:e1*************************@posting.google.co m...
Hello everybody:

I am having a problem deploying an ASP.NET application. I want to
build an installer that has to do the following:

1. Install the application:
2. In the CustomActions, I am calling "cacls.exe" to grant write
privileges to data\database.mdb to the ASPNET user account.

Everything is fine but, the problem arises when I try to test in one
of my servers. The server is Windows 2003 and I installed application
server. I haven't made any changes to it (no security settings,
etc...)

I have noticed that the folders under inetpub are created and the
privileges are granted for a user called IUSR_<MACHINE_NAME>. When i
give writing rights to this user, the application works fine.

How can I query for the user that asp.net will run on on the
installation?

Thanks in advance!

Arturo

Nov 18 '05 #2
Many thanks! That's good idea.

A.,
Nov 18 '05 #3

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

Similar topics

2
by: Felix | last post by:
Out of no where I'm starting to get these problems and my Deployment projects won't build anymore. Does anyone have any idea what's causing this? I've tried copying these files from another...
4
by: wobbles | last post by:
Hi Everyone, I'm really struggling to get no-touch deployment to work well (if at all, in some cases). Can anyone recommend a good book on this topic? There seem to be a lot of blogs about...
1
by: harry | last post by:
Hi all I am using VS.NET 2003 installer to deploy my ASP.NET application. I want to allow ASPNET write access to some files in subfolders of the inetpub/wwwroot/myApp/mySubfolder using VS.NET...
5
by: ad | last post by:
I have finished my web application which useing MSDE as database. I want to packet my web application and MSDE, dotFramework .. together as an installer program. How can I do that? Are there any...
10
by: abcd | last post by:
is there anyway I can call ASP page from ASPNET page. How should I call...whats the syntax...or code sample thanks
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
3
by: al | last post by:
Hi, Can someone please tell me what is exactly zero deployment in VB.NET. Is it that .NET doesn't need to deal with the registry? If that is the case, then why MS introduced class registry? ...
2
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
6
by: andrewbb | last post by:
I want to deploy a service with a windows app and the setup program must conform to the Vista certification requirements. Can that be done with the standard .net setup project? Assuming cost is...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.