473,587 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=t rue 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 2432
I'm wondering if the old box' s machine.config was using

<processModel userName="machi ne" password="AutoG enerate" />

whereas the new one still has

<processModel userName="SYSTE M" password="AutoG enerate" />

http://support.microsoft.com/default...product=aspnet
"Boxman" <bob@> wrote in message
news:uo******** ******@TK2MSFTN GP11.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=t rue 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:

[ApplicationExce ption: Access is denied.
]
System.Security .Principal.Wind owsIdentity._Re solveIdentity(I ntPtr
userToken) +0
System.Security .Principal.Wind owsIdentity.get _Name() +71
System.Web.Conf iguration.Autho rizationConfigR ule.IsUserAllow ed(IPrincipal
user, String verb) +100
System.Web.Conf iguration.Autho rizationConfig. IsUserAllowed(I Principal
user, String verb) +81
System.Web.Secu rity.UrlAuthori zationModule.On Enter(Object source,
EventArgs eventArgs) +156
System.Web.Sync EventExecutionS tep.Execute() +60
System.Web.Http Application.Exe cuteStep(IExecu tionStep step, Boolean&
completedSynchr onously) +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="tr ue" userName="mylog ondomain\myuser name"
password="mypas sword" />

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\wwwr oot\myapplicati on
- The new deployment is at F:\Sites\myappl ication

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="tr ue" /> 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
3780
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 project this returns a Access Denied as well. My user account is a domain admin as well as local admin on the live server. Is there something else...
6
22500
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 ProcessArguments ) { string ErrorStream = ""; Process DOSProcess = new Process();
6
2167
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 same configuration (it should have it atleast) it works perfectly. After been testing a while I found out that everything worked if I first put the...
4
1572
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 gracefully have new connections use the new code, while the old code is cached for current connections. Anyone?
2
1744
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 xcopy. After doing some simple development via vs.net I found that xcopy'ing my app from a development workstation to the production server didn't...
1
1578
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 faster since I only want to copy certain files. I tried <sourcedirectory:>xcopy j: /s /z /u I then asks if I want to overwrite one of the files, I...
1
1954
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 (exception below). From past problems we know the exception typically means that the export destination does not have the proper security permissions....
1
2391
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 able to do exactly what we want them to do - or at least not easily. So now i am looking into the possibly of using an xcopy deployment. However - i...
3
2065
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 deployment if you have Crystal Reports dependencies? Is there an available Crystal redistribution package I can run before doing my XCOPY...
0
7920
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7849
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8347
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7973
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3844
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2358
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 we have to send another system
0
1189
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.