rajdevsohail 0 Newbie Poster

Hello There !
I Am Getting An Internal Server Application Error 500.19 In My Web Application (web.config file) :( . Error Is On Line 22,23,24 .

Here Is My web.config File :

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <directoryBrowse enabled="false" />
        <defaultDocument>
            <files>
                <clear />
                <add value="index.php" />
                <add value="index.html" />
                <add value="Default.aspx" />
                <add value="Default.htm" />
                <add value="Default.asp" />
                <add value="index.asp" />
                <add value="index.aspx" />
                <add value="home.aspx" />
                <add value="index.htm" />
            </files>
        </defaultDocument>
<rewrite>
  <rules>
    <rule name="Imported Rule 1">
      <match url="^action/([A-Za-z0-9_/-]+)$" ignoreCase="false" />
      <action type="Rewrite" url="engine/handlers/action_handler.php?action={R:1}&{QUERY_STRING}" appendQueryString="false" />
    </rule>
    <rule name="Imported Rule 2">
      <match url="^services/api/([A-Za-z0-9_-]+)/(.*)$" ignoreCase="false" />
      <action type="Rewrite" url="engine/handlers/service_handler.php?handler={R:1}&request={R:2}&{QUERY_STRING}" appendQueryString="false" />
    </rule>
    <rule name="Imported Rule 3">
      <match url="^export/([A-Za-z]+)/([0-9]+)$" ignoreCase="false" />
      <action type="Rewrite" url="services/export/handler.php?view={R:1}&guid={R:2}" appendQueryString="false" />
    </rule>
    <rule name="Imported Rule 4">
      <match url="^export/([A-Za-z]+)/([0-9]+)/$" ignoreCase="false" />
      <action type="Rewrite" url="services/export/handler.php?view={R:1}&guid={R:2}" appendQueryString="false" />
    </rule>
    <rule name="Imported Rule 5">
      <match url="^export/([A-Za-z]+)/([0-9]+)/([A-Za-z]+)/([A-Za-z0-9_]+)/$" ignoreCase="false" />
      <action type="Rewrite" url="services/export/handler.php?view={R:1}&guid={R:2}&type={R:3}&idname={R:4}" appendQueryString="false" />
    </rule>
    <rule name="Imported Rule 6">
      <match url="^_css/css.css$" ignoreCase="false" />
      <action type="Rewrite" url="_css/css.php" />
    </rule>
    <rule name="Imported Rule 7">
      <match url="^pg/([A-Za-z0-9_-]+)/(.*)$" ignoreCase="false" />
      <action type="Rewrite" url="engine/handlers/pagehandler.php?handler={R:1}&page={R:2}&{QUERY_STRING}" appendQueryString="false" />
    </rule>
    <rule name="Imported Rule 8">
      <match url="^pg/([A-Za-z0-9_-]+)$" ignoreCase="false" />
      <action type="Rewrite" url="engine/handlers/pagehandler.php?handler={R:1}&{QUERY_STRING}" appendQueryString="false" />
    </rule>
    <rule name="Imported Rule 9">
      <match url="xml-rpc.php" ignoreCase="false" />
      <action type="Rewrite" url="engine/handlers/xml-rpc_handler.php" />
    </rule>
    <rule name="Imported Rule 10">
      <match url="mt/mt-xmlrpc.cgi" ignoreCase="false" />
      <action type="Rewrite" url="engine/handlers/xml-rpc_handler.php" />
    </rule>
    <rule name="Imported Rule 11">
      <match url="^tag/(.+)/?$" ignoreCase="false" />
      <action type="Rewrite" url="engine/handlers/pagehandler.php?handler=search&page={R:1}" appendQueryString="false" />
    </rule>
  </rules>
</rewrite>
    </system.webServer>
</configuration>

It Says "The requested page cannot be accessed because the related configuration data for the page is invalid.";

[B]Config Source[/B]

   22:       <match url="^action/([A-Za-z0-9_-]+)$" ignoreCase="false" />
   23:       <action type="Rewrite" url="engine/handlers/action_handler.php?action={R:1}&{QUERY_STRING}" appendQueryString="false" />
   24:     </rule>


[B][I][U]Detailed Error Information :[/U][/I][/B]
Module	IIS Web Core
Notification	Unknown
Handler	Not yet determined
Error Code	0x8007000d
Config Error	Configuration file is not well-formed XML
Config File	\\?\X:\XXXXXXX\XXXXXXX\XXXXXX\wwwroot\web.config
Requested URL	http://XXXXXXXX.com:80/XXXX.php
Physical Path	
Logon Method	Not yet determined
Logon User	Not yet determined

Your Help Would Be Appreciated .. Waiting For Replies ..
Thanks In Advance,
Sohail :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.