473,387 Members | 1,760 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,387 software developers and data experts.

Xcopy Deployment - Access Denied Error

Hi

I have been asked to migrate a long-standing and stable asp.net application
from a W2k server on one NT domain on our intranet to another W2k server on
another NT domain also on our intranet. The application was written in
C#.NET using Visual Studio 2002 and v1.0 of the .NET Framework.

As we don't use Frontpage extensions on the servers (both run IIS5) I have
used Xcopy to copy the files from the original server across the WAN to the
new server. I have configured a virtual directory in IIS for the
application. The anonymous account is disabled and the application uses NTLM
(Windows) authentication throughout (including to access the SQL Server 2000
database).

When I try and access the application on the new server I get "Access is
Denied" - so I guess a permissions issue :)

The web.config file is set for impersonation=true and nothing else is
different in the application except for the database connection strings
which are pointed at the new server (the web app and SQL Server are on the
physical box).

Any thoughts or is this a bug in the impersonation function?

thanks

Bob
Nov 18 '05 #1
3 2420
I'm wondering if the old box' s machine.config was using

<processModel userName="machine" password="AutoGenerate" />

whereas the new one still has

<processModel userName="SYSTEM" password="AutoGenerate" />

http://support.microsoft.com/default...product=aspnet
"Boxman" <bob@> wrote in message
news:uo**************@TK2MSFTNGP11.phx.gbl...
Hi

I have been asked to migrate a long-standing and stable asp.net
application
from a W2k server on one NT domain on our intranet to another W2k server
on
another NT domain also on our intranet. The application was written in
C#.NET using Visual Studio 2002 and v1.0 of the .NET Framework.

As we don't use Frontpage extensions on the servers (both run IIS5) I have
used Xcopy to copy the files from the original server across the WAN to
the
new server. I have configured a virtual directory in IIS for the
application. The anonymous account is disabled and the application uses
NTLM
(Windows) authentication throughout (including to access the SQL Server
2000
database).

When I try and access the application on the new server I get "Access is
Denied" - so I guess a permissions issue :)

The web.config file is set for impersonation=true and nothing else is
different in the application except for the database connection strings
which are pointed at the new server (the web app and SQL Server are on the
physical box).

Any thoughts or is this a bug in the impersonation function?

thanks

Bob


Nov 18 '05 #2
I'm using Windows NTLM Authentication so I don't think it's the password is
the issue.

The actual error is:

[ApplicationException: Access is denied.
]
System.Security.Principal.WindowsIdentity._Resolve Identity(IntPtr
userToken) +0
System.Security.Principal.WindowsIdentity.get_Name () +71
System.Web.Configuration.AuthorizationConfigRule.I sUserAllowed(IPrincipal
user, String verb) +100
System.Web.Configuration.AuthorizationConfig.IsUse rAllowed(IPrincipal
user, String verb) +81
System.Web.Security.UrlAuthorizationModule.OnEnter (Object source,
EventArgs eventArgs) +156
System.Web.SyncEventExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +87

Any thoughts?

Bob
Nov 18 '05 #3
Ken

Thanks for your thoughts.

I've been working on this all day now and have discovered that the migrated
applications work fine on the new (deployment) server IF I use the following
in web.config:

<identity impersonate="true" userName="mylogondomain\myusername"
password="mypassword" />

Of course I need all users to be able to access the application (and SQL
backend) using their own NT account credentials - per the original server.

I would like to narrow down the work that I need to do to isolate this
problem but as far as I can see the only difference between the original
application architecture and the new deployment is:

- The new server is on a different (trusted) NT domain
- The original deployment was at c:\inetpub\wwwroot\myapplication
- The new deployment is at F:\Sites\myapplication

This is very frustrating but I keep telling myself it is good experience!

I guess the issue is with the ASPNET local account permissions either
somewhere within the .NET Framework (v1.0 SP2) or the application folder but
I have checked again and all permissions for .NET seem to be correct
(default) and the application folder also has sufficient permissions for the
ASPNET account.

Just to remind you my original web.config entry is <identity
impersonate="true" /> and nothing else.

Any help much appreciated!

thanks

Bob
Nov 18 '05 #4

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

Similar topics

3
by: Mike Morse | last post by:
When I run XCOPY to copy from developement to live server I keep getting Access denied Unable to create directory - <mydirectoryname> 0 File(s) copied Also in vs.net if I go to project > copy...
6
by: Zeya | last post by:
I am developing a ASP.Net(Web) based deployment tool, which requires XCOPY functionality. Here is the code for the method: public static int ExecuteProcess ( string ProcessName, string...
6
by: Cristian Suazo | last post by:
Hi, I deployed my application but got a strange error when doing the deployment using the xcopy method. A strange thing is that when I try to do the same steps on another machine that has the...
4
by: Matt Anderson | last post by:
When I use Xcopy to deploy my changes to IIS, it seems to drop the user connections; i.e., empties out their Session variables, etc. I thought ASP.NET was supposed to use shadow deployment and...
2
by: Bruce Schechter | last post by:
Whereas Microsoft highlights the concept of "xcopy deployment" for .NET applications, I gather that it is not necessarily possible to move an ASP.NET application from one computer to another via...
1
by: Dave | last post by:
Hi, I'm trying to use xcopy to deploy my application to a mapped drive. I can access the drive ("J:") through Windows Explorer and drag/drop the files but I wanted to use XCOPY to make it...
1
by: Marc Castrechini | last post by:
We have recently setup a new server: Windows 2003 (Version 5.2) IIS 6.0 ASP.NET 2.0 Using existing code that previously worked we can't seem to export PDFs from our Crystal reports anymore...
1
by: lizii | last post by:
At the moment my company have asked me to look into installations. We use pure .NET applications and although i have looked into installer programs (installshield...wise..etc) none of them are...
3
by: Liz | last post by:
I was intending to use an XCOPY install for a VS2005 C# WinForms app but when I copied the files and ran the app on a clean machine it failed when it needed Crystal Reports. Can you not use XCOPY...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.