Problem instaling asp.net app in server 2003

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Camacho

    Problem instaling asp.net app in server 2003

    Hi Everyone,

    I'm trying to install one new app in server 2003, It was made in C#
    ASP.NET, and it Uploads files to um subfolder of my webapp.

    But it doesn't execute in Server 2003 only in my development machine
    XP.

    It's doesn't send any message to Event Log, and any other error
    message, just one error in the javascript function that calls the C#
    function.

    I already gave full permissions to internetguest and aspnet, and the
    folders are open to read and write any user.

    So there is something that I have to do more???? PLease HELP...

    Que code is very simple:

    public string oSaveXML(string pXmlStructure)
    {

    string lvError = "";

    try
    {

    lvError = "deleteTempFile s('Trees')";
    deleteTempFiles ("Trees");

    lvError = "deleteTempFile s('Uploads')";
    deleteTempFiles ("Uploads");


    string pTempFileName =
    DateTime.Now.To String("yyyyMMd dhhmmss") + ".sav";

    lvError = "Request.Physic alApplicationPa th + Trees\\ +
    pTempFileName";
    string pFileName = Request.Physica lApplicationPat h +
    "Trees\\" + pTempFileName;
    //System.Environm ent.Exit(0);
    using (StreamWriter sw = new StreamWriter(pF ileName))
    {
    sw.Write(pXmlSt ructure);
    sw.Close();
    return pTempFileName;
    }



    }
    catch(System.IO .FileNotFoundEx ception e)
    {
    lvError = lvError + "//" +e.Message + "//" +
    e.InnerExceptio n.Message;

    WriteLog(lvErro r);

    }

    return "ERROR";
    }
  • Juan T. Llibre

    #2
    Re: Problem instaling asp.net app in server 2003

    re:
    !I already gave full permissions to internetguest and aspnet,
    !and the folders are open to read and write any user.
    !So there is something that I have to do more?

    The account which needs permission, in Windows Server 2003, is :

    NT Authority\Netwo rk Service





    Juan T. Llibre, asp.net MVP
    asp.net faq : http://asp.net.do/faq/
    foros de asp.net, en espaƱol : http://asp.net.do/foros/
    =============== =============== ========
    "Camacho" <pmcamacho@gmai l.comwrote in message
    news:b1e4ea01-f882-49a0-ae7a-f7afbb66ceaf@p4 3g2000hsc.googl egroups.com...
    Hi Everyone,
    >
    I'm trying to install one new app in server 2003, It was made in C#
    ASP.NET, and it Uploads files to um subfolder of my webapp.
    >
    But it doesn't execute in Server 2003 only in my development machine
    XP.
    >
    It's doesn't send any message to Event Log, and any other error
    message, just one error in the javascript function that calls the C#
    function.
    >
    I already gave full permissions to internetguest and aspnet, and the
    folders are open to read and write any user.
    >
    So there is something that I have to do more???? PLease HELP...
    >
    Que code is very simple:
    >
    public string oSaveXML(string pXmlStructure)
    {
    >
    string lvError = "";
    >
    try
    {
    >
    lvError = "deleteTempFile s('Trees')";
    deleteTempFiles ("Trees");
    >
    lvError = "deleteTempFile s('Uploads')";
    deleteTempFiles ("Uploads");
    >
    >
    string pTempFileName =
    DateTime.Now.To String("yyyyMMd dhhmmss") + ".sav";
    >
    lvError = "Request.Physic alApplicationPa th + Trees\\ +
    pTempFileName";
    string pFileName = Request.Physica lApplicationPat h +
    "Trees\\" + pTempFileName;
    //System.Environm ent.Exit(0);
    using (StreamWriter sw = new StreamWriter(pF ileName))
    {
    sw.Write(pXmlSt ructure);
    sw.Close();
    return pTempFileName;
    }
    >
    >
    >
    }
    catch(System.IO .FileNotFoundEx ception e)
    {
    lvError = lvError + "//" +e.Message + "//" +
    e.InnerExceptio n.Message;
    >
    WriteLog(lvErro r);
    >
    }
    >
    return "ERROR";
    }

    Comment

    Working...