Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2007, 02:50 AM
Authorized User
 
Join Date: Jan 2007
Location: , , .
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default excel file cant be located

i am truying to generate an excel report from my asp.net page.It is working fine till a friend of mine in the office asks to try and load the project from the network..supposidly it should be working but it didnt..The file cant be found..i am using this
Dim oBooks As Excel.Workbooks
oBooks.Open(Server.MapPath(Request.ApplicationPath ) & "\ReportTemplate.xls") 'Load template

?Server.MapPath(Request.ApplicationPath) & "\ReportTemplate.xls"
"c:\inetpub\wwwroot\Altadis\ReportTemplate.xls "
..from the path generated i can download the file and my life is happy again...
if i am truying to access the file from the server i am not getting any error but what happens is the the page reloads and nothing occurs.
Should i use another way to access the file,other than Server.MapPath(Request.ApplicationPath)? if yes can u please show me how..
thanks in advance

 
Old February 19th, 2007, 08:05 AM
Authorized User
 
Join Date: Jan 2007
Location: , , .
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

its all about the <identity impersonate="true"/>..
whats happening is that when i run the site on the server it gives me "access denied" supposidly on the excel file i am truying to download..it gave me the same thing when i removed <identity impersonate="true"/> from web.config in my localhost and it gave me the same error..with impersonate on it worked fine...i read lots of articles about anthentication and impersonate and got to no point..help me out guys...10x in advance






Similar Threads
Thread Thread Starter Forum Replies Last Post
Has anyone located all of the source code yet? gary167 BOOK: Access 2003 VBA Programmer's Reference 0 November 10th, 2006 08:21 PM
What object is streamwriter located under? kenn_rosie ASP.NET 1.0 and 1.1 Basics 0 February 21st, 2006 08:10 PM
Distributed vs Co-located DB performance wsalamonsen BOOK: Expert One-on-One J2EE Design and Development 2 October 22nd, 2003 05:20 AM
Database is located on a network drive Elton Classic ASP Databases 1 August 27th, 2003 08:32 AM
Distributed vs Co-located DB performance wsalamonsen J2EE 1 July 23rd, 2003 05:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.