January 6, 2020

HTTP Error 404.17 - Not Found - 0x80070032

Introduction:
In this article we will explore, How to fix HTTP Error 404.17- 0x80070032  for SVC application hosted

PROBLEM:



HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.
Detailed Error Information
Module  StaticFileModule
Notification    ExecuteRequestHandler
Handler StaticFile
Error Code  0x80070032
Requested URL   http://serverip:80/Service.svc
Physical Path   C:\inetpub\wwwroot\WebServices\Service.svc
Logon Method    Anonymous
Logon User  Anonymous
Most likely causes:

    The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.

Things you can try:
    If you want to serve this content as a static file, add an explicit MIME map.
SOLUTION:

To solve this issue,  Enable the HTTP Activation under WCF Services.




Now the issue fixed, restart the IIS server.


Hope this article helps !!


Thanks for reading this article ! ! please leave your comments and suggestion about this article.

January 3, 2020

How to configure two apache tomcat instances in the same machine both Windows and Linux ?

Introduction:

In this article, we will explore How to configure two apache tomcat instances in the same machine  both Windows and Linux? 

Configuring Tomcat port


By default tomcat binding ports are 8005, 8080 and 8009.

If you have another tomcat instance running on same server or other application like JBoss Application Server, these ports are likely already used. In this case you should change the default ports.

Change tomcat ports



The port change must be done with the tomcat application stopped.
Edit $TOMCAT_Home/config/server.xml and check all Tomcat port properties.

Shut-down Port

8005
8105
Change
<Server port="8005" shutdown="SHUTDOWN">
to
<Server port="8105" shutdown="SHUTDOWN">

Tomcat Connector Port

8080
8180
Change
<Connector address="0.0.0.0" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
to
<Connector address="0.0.0.0" connectionTimeout="20000" port="8180" protocol="HTTP/1.1" redirectPort="8443"/>

AJP Connector Port

8009
8109
Change
<Connector address="127.0.0.1" port="8009" protocol="AJP/1.3" redirectPort="8443"/>
to
<Connector address="127.0.0.1" port="8109" protocol="AJP/1.3" redirectPort="8443"/>

To shut-down the different instances execute the shutdown.sh script from each $TOMCAT_HOME/bin.

Hope this article helps !!


Thanks for reading this article ! ! please leave your comments and suggestion about this article.

HTTP Error 404.0 - 0x80070002

Introduction:
In this article we will explore, How to fix HTTP Error 404.0 - 0x80070002  for REST API application hosted in IIS7

PROBLEM:
HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Detailed Error InformationModule IIS Web CoreNotification MapRequestHandler ;Handler StaticFile; Error Code 0x80070002 




WORKAROUND:

This issue occur since systeb.web.Routing was of version 3.5  while web.config requested 4.0 version.

SOLUTION:

To solve this issue, execute the below command  


%WINDIR%\Framework\v4.0.30319\aspnet_regiis -i



Now the issue fixed, restart the IIS server.

Hope this article helps !!


Thanks for reading this article ! ! please leave your comments and suggestion about this article.