Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Web Config settings help.

  1. #1
    Join Date
    Nov 2009
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Web Config settings help.

    Hi,
    I have uploaded my website but when I try to run it I get the following :

    Configuration error:

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.


    Line 36: ASP.NET to identify an incoming user.
    Line 37: -->
    Line 38: <authentication mode="windows"/>
    Line 39: <customErrors mode="Off"/>
    Line 40: <!--

    I have tried setting line 38 to Forms and also to none but get the same message.

    Any ideas would be much appriciated. - Thanks

  2. #2
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    This error is happening because you're running a full .NET application in a sub folder, the sub folder needs to be setup as a virtual directory.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  3. #3
    Join Date
    Nov 2009
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Can you explain which folder I need to set up. I have published the site to a folder inside my wwwroot folder. (eg wwwroot/mysite)

    I have then made the folder a virtual folder (eg mysite)

    The "mysite" folder then contains other folders such as app.data, bin, thumbs etc as well as all the aspx pages

    Do I need to make another folder virtual ?

    I have set up a standard html site using the same format and it works ok.

  4. #4
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    mysite is the folder you should make a virtual directory, it is possible you didn't setup the virtual directory properly - here is what should be set on the "create virtual directory" page:

    Path To Virtual Directory: \
    Virtual Directory Name: mysite
    Physical Folder: \mysite
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  5. #5
    Join Date
    Nov 2009
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the advice, Now got access to the system however I now get the following:
    A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

    Would you be able to help with this ?

    I used Visual Studio 2008 to create and upload the website - Everything works ok from file on my PC and everything seems to have uploaded correctly.

    Thanks again.

  6. #6
    Join Date
    Feb 2004
    Posts
    4,877
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    You will need to upload the database to one of our database servers and then change the connection string of the application accordingly - you can create the database in the control panel and you will be given a link to a utility you can use to upload the database backup.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  7. #7
    Join Date
    Nov 2009
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I have a bit more info & I am a bit more confused????

    I get the above error 26 code now when I try to access home.aspx inside the "mysite" folder.

    This folder will not allow me to view it's contents when I go to just my .co.uk domain but all other folder do ?

    If a create a new folder and copy all the files across, then create a virtual directory for the new folder I get the original error message back again?

  8. #8
    Join Date
    Nov 2009
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Only just read your reply re- the database, I will try this tomorrow I let you know the outcome.

    Many thanks.

  9. #9
    Join Date
    Nov 2009
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok,
    I failed miserably !!!! - - This bit is all new to me so a may need a little help.

    I have installed m/s sql publishing wizard via the link but I can't get it to connect.

    I have tried setting the server to the same as shown in the external host name and then setting user and passwords the same as I created in the d/b managment.

    I have also tried setting a connection string using the same info as given in myLittleAdmin connection info.

    Either way is can't get the publisher to connect - Any ideas as to where I'm going wrong ?

  10. #10
    Join Date
    May 2007
    Location
    Eauze, France
    Posts
    175
    Thanks
    10
    Thanked 17 Times in 15 Posts

    Default

    SQL server expects the server name to be (e,g, for caesium)
    mssql2005.caesium.lon.periodicnetwork.com,65230

    Notice how the port is specified.
    It you have SQL Server management studo try connecting with that.
    [using SQL server authentification]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Encrypting web.config files
    By simonkane in forum Development Support
    Replies: 2
    Last Post: 16th October 2008, 06:38 PM
  2. web.config question
    By theonlinecleaningshop in forum Technical Support
    Replies: 4
    Last Post: 15th March 2006, 11:09 AM
  3. Remember to edit Web.Config when using VS2005
    By jaimalchohan in forum Technical Support
    Replies: 3
    Last Post: 9th November 2005, 01:16 PM
  4. web.config and aythentication error
    By jaimalchohan in forum ASP.NET
    Replies: 3
    Last Post: 24th October 2005, 04:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •