Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 August 2nd, 2004, 12:01 PM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASPSmartUpload doesn't save files

Hi all,

I'm having some troubles with the aspsmartupload component.

I upload a file to the server, I can see the ContentString of the file correctly but the SaveAs method is not creating the file on disk without showing any error.

I know it seems a permission problem... but the destiny folder has Full control privileges for Everyone.

The scope of the project is the following:

The web is an ASP page that after having the file in form of an aspsmartupload component, calls a COM+ object. This COM+ object receives the aspsmartupload as parameter and then it should write it to disk¡K. There is no error and no file ƒ¼

The COM+ is inside a Server Application, running with a certain user. Let¡¦s call it $WEBUSER.

$WEBUSER is local to the machine and belongs to the Users group. I even added $WEBUSER with full control privileges to the directory as an act of despair.

Nothing seems to work and no error is being raised. Using FileMon (sysinternal) the log shows an OPEN access to the folder with ¡§FILE NOT FOUND¡¨.

I¡¦m a little lost here. Can anybody please help me????

The same application runs fine on a development environment.

Thanks in advance.
 
Old August 2nd, 2004, 07:55 PM
Authorized User
 
Join Date: Jun 2003
Posts: 90
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to tdaustin Send a message via Yahoo to tdaustin
Default

Can you post your upload code?



TDA
 
Old August 3rd, 2004, 05:47 AM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is the upload code in the ASP.

    Set oUpload = Server.CreateObject("aspSmartUpload.SmartUpload")

    Set foo = Server.CreateObject("MyObject.MyInterface")

    oUpload.Upload

    ' Get parameter
    sGUIDPath = oUpload.Form("GUIDPath")

    If sGUIDPath="" Then
        Response.Write "ERRO: GUIDPath was not received"
        Response.End
    End If

    For each oFile In oUpload.Files
        If not oFile.IsMissing Then
            sClientFileName = oFile.FilePathName
            'Save image
            foo.LoadXMLFicha oFile, Cstr(sGUIDPath)
            Exit For
        End If
    Next


And this is the code in the called “MyObject.MyInterface”.
(VB6 with COM+)


Public Sub MyInterface (v_oSmartFile As Variant, ByVal sGUIDPath As String)

Dim l_oSmartFile As Variant ' aspSmartUpload.File Object

Set l_oSmartFile = v_oSmartFile

l_oSmartFile.SaveAs "c:\temp\" & sGUIDPath & ".xml"
If Err.Number <> 0 Then
     Err.Raise ERROR_EXECUTE, DBG_CLASS & ":" & DBG_METHOD, "Errorsaving " & sGUIDPath & ".xml"
     Exit Sub
End If

End Sub

I do some trace but it’s not important for the case and would only confuse the code.

C:\TEMP has full privileges for Everyone

 
Old August 6th, 2004, 03:24 AM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can anyone help me with my case?

Has anyone ever had the same problem?

Please, reply

Thank you

 
Old August 23rd, 2004, 04:20 AM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

tdaustin, did you reach any conclusion with the code?

I'm really in a tight spot with this. I appreciate any help you guys can give

:(






Similar Threads
Thread Thread Starter Forum Replies Last Post
Where Reporting Services save files Dream_Rachid BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 November 29th, 2008 02:00 AM
How to save files on client machine. Udi ASP.NET 1.0 and 1.1 Professional 3 January 22nd, 2007 11:26 AM
save files into a folder jessiang General .NET 3 January 16th, 2006 09:48 AM
How to save DataSet into Excel files yaya1899 ADO.NET 0 January 3rd, 2005 03:10 PM
Parse text files and save in sub directories malesd VB How-To 2 March 1st, 2004 09:32 AM





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