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

Web app deployment Server Error

I've just deployed an asp.net 1.1 web app to the remote server (Win
2000). All of the pages work fine with one exception.

Part of this app's purpose is to upload and download files to/from a
database. The upload works without any problems. The download however
gives me the following error:

=======================

Server Error in '/MyWebApp' Application.

The rest of the error is all about setting up the <customErrors
mode="Off" />, etc. (which I did with no effect on being able to
diagnos the problem).

=======================

I have to believe that I have some kind of an access error trying to
create the download file:

Dim fs As New FileStream(filename, FileMode.Create).

I have set the <identity impersonate="true"/> in the web.config file
and the IIS Directory Security is set to Integrated Windows
Authentication ONLY.

So...

Why can I upload but not download???

I'm running this app on our intranet and would really like to open up
the security to allow users to download files to any folder/directory
to which they normally have access. Since this will be widely used I
don't want to have to create "super users" or have the users specify
special permissions on directories (it's a good day when they can
logon sucessfully).

I'm on a very tight timeline so any help would be really great!!!

TIA
Glenn
Nov 18 '05 #1
3 1079
OK, well for those of you out there that also make dumb mistakes...

I had forgotten to convert the directory path (obtained from
SHBrowseForFolder/Javascript) to a fully qualified URL. Once that was
done the app proceeded.

Now for the next step/problem.

When I run the app from my remote client the app requests a logon
account/password for the web server. Why??? If it had asked me to
logon to my remote client I might have understood (I don't want the
user to have to log on... but I might have understood).

I'm think that I'm really close to getting this app fully deployed but
I definitely need some input around this security issue.

TIA
Glenn
Nov 18 '05 #2
Are your userID and workstation in the same domain as the Web server? If not,
the authentication that IE passes through won't be recognized. I think you've
set it to Wndows Integrated and using impersonation so it has to get the
authentication from someone before it can proceed.
"Glenn Owens" wrote:
OK, well for those of you out there that also make dumb mistakes...

I had forgotten to convert the directory path (obtained from
SHBrowseForFolder/Javascript) to a fully qualified URL. Once that was
done the app proceeded.

Now for the next step/problem.

When I run the app from my remote client the app requests a logon
account/password for the web server. Why??? If it had asked me to
logon to my remote client I might have understood (I don't want the
user to have to log on... but I might have understood).

I'm think that I'm really close to getting this app fully deployed but
I definitely need some input around this security issue.

TIA
Glenn

Nov 18 '05 #3
Ken, thanks for your reply.

The UserId and workstation and web Server are all in the same domain.
You'll have to forgive my lack of understanding around the security
(I've still learning from the bottom up).

As I mentioned, the uploading of the app works ok as does the ability to
browse through the image gallery portion of the app. My only problem
comes when I attemtp to download.

The following is a snippet of the download code:

Dim fs As New FileStream(filename, FileMode.Create)
Dim bw As New BinaryWriter(fs)
Dim ms As New MemoryStream
Dim bm As New Bitmap(img.Image, width, height)

bm.SetResolution(dpi, dpi)

bm.Save(ms, img.GetJPEGEncoderInfo(), _
img.GetEncoderParameters)

bw.Write(ms.ToArray)

Obviously I'm missing something. I suspect that, although the rest of
the app can access the web/client resources the attempt to create the
new file on the remote client is going through some extra
authentication??? But I still don't understand why I'm asked to log on
to the web server; and, further, why - when I attempt to provide a valid
account/password the logon is always rejected.

Any thoughts?

Glenn
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4

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

Similar topics

1
by: Dave Rettberg | last post by:
I am attempting to deploy my ASP.NET app to a web server. I had deployed it once, but realized I hadn't included the source files in the setup. I uninstalled it from the server, rebuilt my setup...
0
by: Benny Ng | last post by:
Hi,All, When i deploy Enterprise library with my application ,i used XCOPY to deploy it into my test server. But when application runs, shown some error related registry. (But actually I haven't...
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...
1
by: SKarnis | last post by:
I have created a simple ASP.NET Web Service with VB on Win XP Pro SP2, IIS 5.1, .NET 1.1. Service works in Visual Studio environment. Created an deployment package. Tried running the deployment...
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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: 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...

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.