+ Reply to Thread
Results 1 to 2 of 2

Thread: Help with ASP.NET

  1. #1
    nyakerz is offline x10Hosting Member nyakerz is an unknown quantity at this point
    Join Date
    Apr 2009
    Posts
    5

    Help with ASP.NET

    Okay, I have a problem running my asp.net web site. The first time I tried it, it works. But then the other day when I tried it again, it throws an error.

    Here's the Default.aspx I'm trying to run: http://nyakerz.x10hosting.com/a/Default.aspx

    It is saved in a folder named "a" for testing purposes.
    I tried to search the net and this forum and found some relevant topics
    concerning my problem though the solution is not that clear or doesn't make any difference at all since most of the topics I've found is because of virtual drives and something. To explain the error I got when I typed http://nyakerz.x10hosting.com/a/Default.aspx:

    Server Error in '/' Application

    The section <authentication> can't be defined in this configuration file (the allowed definition context is 'MachineToApplication'). (/home/nyakerz/public_html/a/web.config line 4

    Description: HTTP 500. Error processing request.
    Stack Trace:
    System.Configuration.ConfigurationErrorsException: The section <authentication> can't be defined in this configuration file (the allowed definition context is 'MachineToApplication'). (/home/nyakerz/public_html/a/web.config line 4
    at System.Configuration.SectionInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x00000]
    at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000]
    at System.Configuration.SectionGroupInfo.ReadData (System.Configuration.Configuration config, System.Xml.XmlReader reader, Boolean overrideAllowed) [0x00000]
    at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) [0x00000]
    at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) [0x00000]
    at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x00000]
    at System.Configuration.Configuration.Load () [0x00000]
    at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00000]
    at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000]
    at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000]
    at System.Configuration.InternalConfigurationFactory. Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000]
    at System.Web.Configuration.WebConfigurationManager.O penWebConfiguration (System.String path, System.String site, System.String locationSubPath, System.String server, System.String userName, System.String password) [0x00000] Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433


    I've been searching the net for days so I decided to post my own topic. If any of you knows the direct answer for this, any help would be greatly appreciated.
    Would you mind if I post the web.config? I didn't edit it, I just added the SQL connection strings and configuration for email.

    Thanks in advance.

    -nyakerz

  2. #2
    Submariner is offline x10Hosting Member Submariner is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    TN, USA
    Posts
    44

    Re: Help with ASP.NET

    Personally, I think that if you want to develop with a Microsoft solution you should run it on a Microsoft OS. It saves a lot of this hassle.

    But then again, opinions are like...

+ Reply to Thread

Similar Threads

  1. ASP.Net and FTP on Free Account?
    By the7ven in forum Free Hosting
    Replies: 1
    Last Post: 03-06-2009, 11:05 AM
  2. ASP.NET not linking to code behind??
    By angrywasp in forum Programming Help
    Replies: 9
    Last Post: 06-30-2008, 02:47 PM
  3. ASP.NET: Error 500
    By Elements in forum Free Hosting
    Replies: 12
    Last Post: 04-05-2008, 04:01 PM
  4. ASP.NET Database questions.
    By bigmanbfa2 in forum Free Hosting
    Replies: 4
    Last Post: 11-26-2007, 10:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers