Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • bgever 1 post 20 karma points
    Aug 01, 2009 @ 16:54
    bgever
    0

    Database configuration fails, cannot write to Web.config

    I'm trying out Umbraco for the first time and installing it to my shared hosting. This is a .NET 3.5 enabled Windows hosting and has Plesk as control panel.

    I'm running into the same issues as reported by this user before.

    However, my problem seems to be different although it seems related. My error message is as follows:

    Could not save the web.config file. Please modify the connection string manually. An error occurred loading a configuration file: Access to the path 'D:\www\vhosts\domain.com\httpdocs\dxyi_zzq.tmp' is denied. (D:\www\vhosts\domain.com\httpdocs\web.config)

    As you can see from the error message, there is a temporary file mentioned. It can be the case that this file cannot get access, because due to limitations by Plesk, I cannot have Modify access rights on the root folder. The Web.config file has Modify access rights. But why is there need of an temporary file?

    Actually, I followed the error message by setting the Web.config file manually. This however seems to be only a "preloader" for the wizard. Even though I have the following connection string: [Datalayer=MySQL; Database=xxx; Server=localhost; User ID=xxx; Password=xxx;], the wizard still asks me to select the database type, even though it's clear. Moreover, it can connect successfully.

    Therefore, to avoid the issue in the first place, the wizard needs to check first if a connection can be made successfully. If so, it only needs to mention the connection string and ask to proceed (without saving to Web.config). Otherwise, it can ask for the details. As I checked in the source code, now it always saves the connection string. I guess the temporary file is done by the .NET platform itself in it's ConfigurationManager implementation.

    I hope you can improve this wizard step soon, as I'm eager to try out Umbraco. ;-)

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Aug 01, 2009 @ 17:16
    Peter Dijksterhuis
    1

    Hi,

    you need write permission on the web.config. See here for a detailed installation-instruction:

    http://umbraco.org/documentation/books/installing-v400-on-a-plesk-shared-host

     

    HTH,

    Peter

Please Sign in or register to post replies

Write your reply to:

Draft