Results 1 to 10 of 10

Thread: Runtime error

  1. #1

    Thread Starter
    Hyperactive Member aks_1610's Avatar
    Join Date
    Sep 2002
    Location
    Pune, India
    Posts
    280

    Runtime error

    hi all,

    we have created some pages in ASP.NET and uploaded to the webserver. These pages as working fine in Local System and Network. But when we try to access them over net, some sort of configuration error occurs. We have changed web.config file. but still same prob. is comming.

    Please have a look at this site:

    http://www.chemengunh.com/Chemengg/subject.aspx
    A man with nothing to live for has everything to fight for...

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Try following the instructions on the web page. There is no way we can help you unless you do.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Hyperactive Member aks_1610's Avatar
    Join Date
    Sep 2002
    Location
    Pune, India
    Posts
    280
    thanks for the reply,

    we followed the same instructions. Even deleted the web.config file form the web server, then executed the aspx file, same error was comming.

    ny idea
    A man with nothing to live for has everything to fight for...

  4. #4
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    have you built the project, created a bin directory on ur webserver and uploaded the .dll? I sometimes forget that!
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  5. #5
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    I meant this one where you put the follwoing line in the web.config

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

    Have you done that?
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    BTW, just noticed my first reply came off a little rude. Sorry about that. Hadnt had my coffee yet.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  7. #7

    Thread Starter
    Hyperactive Member aks_1610's Avatar
    Join Date
    Sep 2002
    Location
    Pune, India
    Posts
    280
    hi nswan,

    bin dir. and .dll file is uploaded correctley.

    Cander,

    this is our web.config file
    VB Code:
    1. <?xml version="1.0" encoding="utf-8" ?>
    2. <configuration>
    3.    
    4.   <system.web>
    5.  
    6.    
    7.     <!--  DYNAMIC DEBUG COMPILATION
    8.           Set compilation debug="true" to insert debugging symbols (.pdb information)
    9.           into the compiled page. Because this creates a larger file that executes
    10.           more slowly, you should set this value to true only when debugging and to
    11.           false at all other times. For more information, refer to the documentation about
    12.           debugging ASP.NET files.
    13.     -->
    14.     <compilation defaultLanguage="vb" debug="true" />
    15.  
    16.     <!--  CUSTOM ERROR MESSAGES
    17.           Set customErrors mode="On" or "RemoteOnly" to enable custom error messages, "Off" to disable.
    18.           Add <error> tags for each of the errors you want to handle.
    19.     -->
    20.     <customErrors mode="Off" />
    21.  
    22.     <!--  AUTHENTICATION
    23.           This section sets the authentication policies of the application. Possible modes are "Windows",
    24.           "Forms", "Passport" and "None"
    25.     -->
    26.     <authentication mode="Windows" />
    27.  
    28.  
    29.     <!--  AUTHORIZATION
    30.           This section sets the authorization policies of the application. You can allow or deny access
    31.           to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous
    32.           (unauthenticated) users.
    33.     -->
    34.     <authorization>
    35.         <allow users="*" /> <!-- Allow all users -->
    36.  
    37.             <!--  <allow     users="[comma separated list of users]"
    38.                              roles="[comma separated list of roles]"/>
    39.                   <deny      users="[comma separated list of users]"
    40.                              roles="[comma separated list of roles]"/>
    41.             -->
    42.     </authorization>
    43.  
    44.     <!--  APPLICATION-LEVEL TRACE LOGGING
    45.           Application-level tracing enables trace log output for every page within an application.
    46.           Set trace enabled="true" to enable application trace logging.  If pageOutput="true", the
    47.           trace information will be displayed at the bottom of each page.  Otherwise, you can view the
    48.           application trace log by browsing the "trace.axd" page from your web application
    49.           root.
    50.     -->
    51.     <trace enabled="false" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
    52.  
    53.  
    54.     <!--  SESSION STATE SETTINGS
    55.           By default ASP.NET uses cookies to identify which requests belong to a particular session.
    56.           If cookies are not available, a session can be tracked by adding a session identifier to the URL.
    57.           To disable cookies, set sessionState cookieless="true".
    58.     -->
    59.     <sessionState
    60.             mode="InProc"
    61.             stateConnectionString="tcpip=127.0.0.1:42424"
    62.             sqlConnectionString="data source=127.0.0.1;user id=chem100;password=mohit"
    63.             cookieless="false"
    64.             timeout="20"
    65.     />
    66.  
    67.     <!--  GLOBALIZATION
    68.           This section sets the globalization settings of the application.
    69.     -->
    70.     <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
    71.    
    72.   </system.web>
    73.  
    74. </configuration>

    This proj. is working abs. fine in our local system and local network.
    A man with nothing to live for has everything to fight for...

  8. #8
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Who is hosting your web page?

    It looks like you do not have the site setup as an application, or it is not in a Virtual directory. That is what it lloks like to me.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  9. #9
    Fanatic Member
    Join Date
    Oct 2000
    Location
    Reading, UK
    Posts
    870
    try setting the authentication mode to none
    <authentication mode="None" />

    or i think you can delete that line all together.
    www.vb-tech.com
    .Net Freelance Development
    http://weblog.vb-tech.com/nick
    My blog

  10. #10

    Thread Starter
    Hyperactive Member aks_1610's Avatar
    Join Date
    Sep 2002
    Location
    Pune, India
    Posts
    280
    i'll check the same.

    thanks for the reply.
    A man with nothing to live for has everything to fight for...

Posting Permissions

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



Click Here to Expand Forum to Full Width