ผมว่า error น่าจะเกิดจาก file web.config เลยเอา source code มาให้ช่วยแก้ไขครับ
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
<sectionGroup name="ajaxNet">
<section name="ajaxSettings" type="Ajax.AjaxSettingsSectionHandler, Ajax"/>
<section name="ajaxConverters" type="Ajax.AjaxConverterSectionHandler, Ajax"/>
</sectionGroup>
</configSections>
<!-- Portal Config -->
<appSettings>
<add key="PortalUrl" value="http://localhost/Portal/"/>
<add key="PortalTitle" value="Voipswitch Portal"/>
<add key="Style" value="Orange"/>
<add key="Currency" value="THB"/>
<!-- Database configuration -->
<add key="DataBase" value="MYSQL"/>
<add key="Server" value="192.168.1.XXX"/>
<add key="Catalog" value="Voipswitch"/>
<add key="Username" value="raweeharee"/>
<add key="Password" value="XXXXXXX"/>
<!-- Language configuration -->
<add key="DefaultLanguage" value="EN"/>
<add key="LanguageDir" value="C:\\inetpub\\wwwroot\\Portal\\Languages"/>
<!-- Online shop configuration -->
<!-- Catalog -->
<add key="Referrer" value="http://localhost/OnlineShop/"/>
<add key="serveraddress" value="192.168.1.147" />
</appSettings>
<connectionStrings/>
<ajaxNet>
<ajaxSettings>
<commonAjax enabled="false" path="portal.js" language="javascript"/>
<temporaryFiles path="~/styles" deleteAfter="1"/>
<urlNamespaceMappings>
<add namespace="Portal.AjaxMethods,Portal" path="MyDemoMethods"/>
</urlNamespaceMappings>
</ajaxSettings>
</ajaxNet>
<system.web>
<httpHandlers>
<add verb="POST,GET" path="virtfolderforhttphandler/*.ashx" type="Ajax.PageHandlerFactory, Ajax"/>
</httpHandlers>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation defaultLanguage="c#" debug="true">
<compilers>
<compiler language="c#" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" extension=".cs" compilerOptions="/d:DEBUG;TRACE"/>
</compilers>
<assemblies>
<add assembly="Microsoft.Data.Odbc, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<pages enableSessionState="true" autoEventWireup="true"/>
<sessionState mode="InProc" cookieless="false" timeout="20"/>
<httpModules>
</httpModules>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly"/>
-->
<customErrors mode="RemoteOnly" defaultRedirect="error500.html">
<error statusCode="403" redirect="error403.html" />
<error statusCode="404" redirect="error404.html" />
<error statusCode="500" redirect="error500.html" />
</customErrors>
</system.web>
</configuration>
รบกวนด้วยนะครับขอบคุณมากครับเพิ่มเติมอีกนิดครับ error ข้างบนผมเข้า url นี้ครับ
http://localhost/portal/main.aspx