Re: ASP.Net Security Problem

From: Andrea D'Onofrio [MSFT] (andreado_at_online.microsoft.com)
Date: 02/20/04

  • Next message: TG: "80004005 error"
    Date: Fri, 20 Feb 2004 17:22:58 +0100
    
    

    Have you checked if the NTFS permissions on the folder are the same as the
    folder for the Default Web Site?

    HtH,

    -- 
    This posting is provided "AS IS" with no warranties, and confers no rights.
    "Sanjay Malhotra @yahoo.com>" <manjos<nospam> wrote in message
    news:8914E829-2F94-4CC0-96C1-DF390F7FEB14@microsoft.com...
    > Hi,
    >
    > I have a problem with permissions with an ASP.Net Application and IIS and
    SharePoint on Windows 2000 SP4 with .Net Framework 1.1.4322. The SharePoint
    2001 SP 2a Portal Server is setup for Internet Access(Extranet Solution).
    >
    > I have a very simple piece of code that uploads a documents to a SPS 2001
    SP2a server( see code below ). The code works fine on the  server when the
    Virtual Directory I create is under the default web.
    >
    > The application code is located on the c drive at c:\VBDocUpload and the
    code is snippet below
    > --------------------------------------------------------------------------
    -----------------------------------------------------------------
    > oDoc = New PKMCDO.KnowledgeDocument
    > oStream = oDoc.OpenStream
    > oStream.Type = ADODB.StreamTypeEnum.adTypeBinary
    > oStream.SetEOS()
    > oStream.LoadFromFile("c:\test.doc")
    > oStream.Flush()
    > oStream.Close()
    > Response.Write(iStep.ToString + "<BR>")
    > oDoc.ContentClass = "urn:content-classes:FAQ"
    > oDoc.Title = "Hello Everyone"
    > oDoc.Description = "This is a description"
    >
    oDoc.DataSource.SaveTo("http://www.ourcompany.com/Workspace/documents/test.d
    oc, , , , , "username", "password")
    > --------------------------------------------------------------------------
    -----------------------------------------------------------------
    >
    > When the virtual directory is under default web
    http://localhost/DocUploadVB/webform1.aspx this code uploads the documents
    to the SPS 2001 server and everything is fine. Virtual Directory points to
    c:\VBDocUpload, IIS permission are the same.
    >
    > When we installed SPS 2001 we ran the extranet setup and it created a new
    web in IIS this web is called www.ourcompany.com. When I create a virtual
    directory under this new website and point the virtual directory to
    c:\VBDocUpload the same code fails with
    >
    >
    ===========================================================================
    > System.Exception
    > System.Exception System.Runtime.InteropServices.COMException (0x8007010B):
    The directory name is invalid. at PKMCDO.IDataSource.SaveTo(String
    SourceURL, Object ActiveConnection, ConnectModeEnum Mode,
    RecordCreateOptionsEnum CreateOptions, RecordOpenOptionsEnum Options, String
    UserName, String Password) at DocUploadVB.WebForm1.btnUpload_Click(Object
    sender, EventArgs e)
    > Error Message: The directory name is invalid.
    > ex.Source:CDO.KnowledgeDocument.1
    > ex.StackTrace: at PKMCDO.IDataSource.SaveTo(String SourceURL, Object
    ActiveConnection, ConnectModeEnum Mode, RecordCreateOptionsEnum
    CreateOptions, RecordOpenOptionsEnum Options, String UserName, String
    Password) at DocUploadVB.WebForm1.btnUpload_Click(Object sender, EventArgs
    e)
    > ex.TargetSite.Name:SaveTo
    >
    ===========================================================================
    >
    > Any help would be appreicated as we have hit a wall on this issue. My
    assumption is that it has to with .Net Permissions(Code Groups, Permission
    Sets). THe .Net configuration has not been changed since installation.
    >
    > Thanks in advance
    > Sanjay Malhotra
    > manjos<nospam>@yahoo.com
    

  • Next message: TG: "80004005 error"

    Relevant Pages

    • RE: Windows 2003 Server - Everyone Group
      ... this folder only accessable by the users in the "special" group. ... Configure User and Group Access on an Intranet in Windows Server ... NTFS files system permissions control ... group that you want to set permissions for, click Check Names to verify the ...
      (microsoft.public.win2000.networking)
    • Re: Office Docs wont Open? and BU Drive not Recognized?
      ... Create a new Folder: ... On the server share... ... SHARING tab | Permissions | Share Permissions | Group or User Names ... If I copy the document to the local Client, the document opens ...
      (microsoft.public.windows.server.sbs)
    • Re: An NT Security Gotcha that looks like a Jet Security issue
      ... >people remotely via Windows Terminal Server. ... >code when it was run by a user that didn't have full permissions on ... There's a top-level DATA folder, ... >ApplicantsDB and Quickbooks. ...
      (comp.databases.ms-access)
    • Re: Exchange Move Issues?
      ... I'm a bit confused on what permissions to assign for SBS, ... When you finish moving the databases, ... You can move the log files and database files to any folder that you want to ... Note Only assign permissions to the Server Operators group if the Exchange ...
      (microsoft.public.windows.server.sbs)
    • loading html pages in frames
      ... another virtual directory. ... In WebServices extensions I have allowed Active Server ... Now I've also just tried putting an html file in the temp folder and trying ... to load it but I get the same behaviour as trying to load from the ...
      (microsoft.public.inetserver.iis)

    Loading