simple noob question

Discussion in 'Site Programming, Development and Design' started by Zilog80, Jan 11, 2011.

  1. I made a "Hello World" ASP.NET 3.5 web application, i uploaded the default.aspx, the web.config and the myapp.dll to \bin folder using publish method, but when i type my url in browser i get a lot of errors, in web.config file.

    i havent't IIS installed on my machine, only Visual Studio 2008 professional, and on my machine the app run fine.

    I missing something?

    Thx in advance.
     
  2. Ray

    Ray

    It would help if you can provide us a complete and exact copy of the error message. Do you have a URL we can pull up to see the error message?
     
  3. Thx for the reply Ray

    My "Hello World" ASP.NET 3.5 appz works fine in www.myWinhostDomain.com

    I created a subdomain in Control Panel. When i deploy / publish the "Hello World" appz on subdomain folder i get the error.

    When i type: subdomain.myWinhostDomain.com/subdomain/Default.aspx i receive the next error:

    Code:
    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.
    
    Source Error: 
    
    Line 68:             ASP.NET para identificar a un usuario entrante. 
    Line 69:         -->
    Line 70: 		<authentication mode="Forms"/>
    Line 71: 		<!--
    Line 72:             La sección <customErrors> habilita la configuración de 
    
    Source File: E:\web\transito\wol\web.config    Line: 70 
    ________________________________________
    Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4209
    
    
    The <authentication mode="Forms"/> line in Web.config on subdomain folder generate the error.

    It seems that i need to configure 'something' in IIS. The question is 'how'. As i said before, i haven't IIS installed on my developement machine, only Visual Studio 2008.

    Thx in advance.
     
    Last edited by a moderator: Oct 14, 2015
  4. rum

    rum Winhost Staff

    You need to convert the subdirectory to the application starting point before you can deploy your web application to it. You do not have to have IIS Manager installed on your local computer to do this. You can do this in your Winhost control panel. Please see this KB article for the instructions. The root of your site is already the application starting point, that's why you can run your application in the root.
     
    Last edited by a moderator: Oct 14, 2015
  5. ops!...i had not seen that KB.
    Now seems to work properly. 5 kudos for you :)
     
  6. Ray

    Ray

    Thanks for that post. I'm sure it will help a lot of people.
     

Share This Page