Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. web.config problem

web.config problem

Scheduled Pinned Locked Moved ASP.NET
wcfcsharpsysadminxmlhelp
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    I have a subdomain mobile.JassimRahma.com and that's referring of course to a folder on my root called mobile. I just created a simple, very simple Default.aspx file and placed in the mobile folder but I am getting thie error:

    I have a subdomain mobile.JassimRahma.com and that's referring of course to a folder on my root called mobile.

    I just created a simple, very simple Default.aspx file and placed in the mobile folder but I am getting thie error:

    and this is my SIMPLE Default.aspx:

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Jassim.mobile.Default" %>
    <%@ OutputCache Duration="120" VaryByParam="None" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head id="Head1" runat="server">
    <meta name="robots" content="noindex, nofollow" />
    <meta name="description" content="A distinguished service-level information technology Manager with experience in program management, project management and team leadership." />
    <meta name="keywords" content="asp.net,c#,.net,cure,cureGP,cureSurgical,cureDental,cureHospital,general practice,dental,surgical,cure online,microsoft,html,css,xml,javascript,cisco,network,netwoking,jassim rahma,jobs,vacancy,resume,career,bahrain,bahraini,cio,c.i.o.,information technology,director,head of IT,head of I.T.,IT manager,I.T. manager ,development,programming,free software,windows server,LAN,WAN,web services,web services,soap,retail,insurance,banking,finance,telecom,batelco,stc,viva,zain,free download,integration,implementation,support manager,wsdl,blackberry,internet cafe software,internet cafe system,health management system,electronic health record,electronic medical record,hms,clinic management system,EPR,EMR,EHR, human resources,ERP,CMS,GCC,G.C.C.,hsbc,nomura,jawad,costa coffee,medgulf,2connect,bahrain 2030,TCP/IP,router,routing,http,ftp,DNS,DHCP,switch,netBIOS,internetwork,RJ45,osi,WINS,database,snmp,smtp,smpp,pop3,exchange server,cyber cafe, the restart manager, surgical, dermaone, surgicare, dental," />
    <meta name="author" content="Jassim Rahma" />
    <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
    <title>Jassim Rahma</title>

    <script type="text/javascript">
    
      var \_gaq = \_gaq || \[\];
      \_gaq.push(\['\_setAccount', 'UA-3409064-5'\]);
      \_gaq.push(\['\_trackP
    
    N 1 Reply Last reply
    0
    • J Jassim Rahma

      I have a subdomain mobile.JassimRahma.com and that's referring of course to a folder on my root called mobile. I just created a simple, very simple Default.aspx file and placed in the mobile folder but I am getting thie error:

      I have a subdomain mobile.JassimRahma.com and that's referring of course to a folder on my root called mobile.

      I just created a simple, very simple Default.aspx file and placed in the mobile folder but I am getting thie error:

      and this is my SIMPLE Default.aspx:

      <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Jassim.mobile.Default" %>
      <%@ OutputCache Duration="120" VaryByParam="None" %>

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml" >
      <head id="Head1" runat="server">
      <meta name="robots" content="noindex, nofollow" />
      <meta name="description" content="A distinguished service-level information technology Manager with experience in program management, project management and team leadership." />
      <meta name="keywords" content="asp.net,c#,.net,cure,cureGP,cureSurgical,cureDental,cureHospital,general practice,dental,surgical,cure online,microsoft,html,css,xml,javascript,cisco,network,netwoking,jassim rahma,jobs,vacancy,resume,career,bahrain,bahraini,cio,c.i.o.,information technology,director,head of IT,head of I.T.,IT manager,I.T. manager ,development,programming,free software,windows server,LAN,WAN,web services,web services,soap,retail,insurance,banking,finance,telecom,batelco,stc,viva,zain,free download,integration,implementation,support manager,wsdl,blackberry,internet cafe software,internet cafe system,health management system,electronic health record,electronic medical record,hms,clinic management system,EPR,EMR,EHR, human resources,ERP,CMS,GCC,G.C.C.,hsbc,nomura,jawad,costa coffee,medgulf,2connect,bahrain 2030,TCP/IP,router,routing,http,ftp,DNS,DHCP,switch,netBIOS,internetwork,RJ45,osi,WINS,database,snmp,smtp,smpp,pop3,exchange server,cyber cafe, the restart manager, surgical, dermaone, surgicare, dental," />
      <meta name="author" content="Jassim Rahma" />
      <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
      <title>Jassim Rahma</title>

      <script type="text/javascript">
      
        var \_gaq = \_gaq || \[\];
        \_gaq.push(\['\_setAccount', 'UA-3409064-5'\]);
        \_gaq.push(\['\_trackP
      
      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Edit your post, you have not included the referenced error message.


      I know the language. I've read a book. - _Madmatt

      J 1 Reply Last reply
      0
      • N Not Active

        Edit your post, you have not included the referenced error message.


        I know the language. I've read a book. - _Madmatt

        J Offline
        J Offline
        Jassim Rahma
        wrote on last edited by
        #3

        Here you can see the error http://cure.jassimrahma.com

        N 1 Reply Last reply
        0
        • J Jassim Rahma

          Here you can see the error http://cure.jassimrahma.com

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          I, nor anyone else here, is going to visit an unknown website just to see your error. If you want help, then post it here.


          I know the language. I've read a book. - _Madmatt

          G 1 Reply Last reply
          0
          • N Not Active

            I, nor anyone else here, is going to visit an unknown website just to see your error. If you want help, then post it here.


            I know the language. I've read a book. - _Madmatt

            G Offline
            G Offline
            Gamzun
            wrote on last edited by
            #5

            He has not even set CustomErrors section's mode to off.

            Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

            J 1 Reply Last reply
            0
            • G Gamzun

              He has not even set CustomErrors section's mode to off.

              Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

              J Offline
              J Offline
              Jassim Rahma
              wrote on last edited by
              #6

              it is OFF...

              <customErrors mode="Off">
              </customErrors>

              and this is the error on the page:

              Server Error in '/' Application.
              Runtime Error
              Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

              Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

              <!-- Web.Config Configuration File -->

              <configuration>
              <system.web>
              <customErrors mode="Off"/>
              </system.web>
              </configuration>

              Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

              <!-- Web.Config Configuration File -->

              <configuration>
              <system.web>
              <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
              </system.web>
              </configuration>

              G 1 Reply Last reply
              0
              • J Jassim Rahma

                it is OFF...

                <customErrors mode="Off">
                </customErrors>

                and this is the error on the page:

                Server Error in '/' Application.
                Runtime Error
                Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

                Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".

                <!-- Web.Config Configuration File -->

                <configuration>
                <system.web>
                <customErrors mode="Off"/>
                </system.web>
                </configuration>

                Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

                <!-- Web.Config Configuration File -->

                <configuration>
                <system.web>
                <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
                </system.web>
                </configuration>

                G Offline
                G Offline
                Gamzun
                wrote on last edited by
                #7

                Are you still having problem? Sorry I was able to reply back earlier.

                Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups