Why my wcf app cannot be hosted in windows server 2008 r2? - c#

I have created a wcf application and actually I have not done anything. I have attached the automatically generated code to the server under the sites.
However, when i host the app it gives me the HTTP Error 500.19 - Internal Server Error. Moreover, it says cannot read config gile due to insufficient permission but permission is given to the every one I believe.
Therefore, what do you think I should do..? Thanks in advance

Check for following links
1. How do I resolve "HTTP Error 500.19 - Internal Server Error" on IIS7.0
https://support.microsoft.com/en-us/kb/942055

Related

HTTP 503 error when behind ZScaler corporate proxy and trying to access web app

A couple of days ago our web app started showing a 503 error when trying to access our web app. It works fine when ZScaler is off. This is an old app running .NET MVC 5 on a Windows Server 2012 machine. No changes were made from our side when the issue started happening, so I was suspecting that the networking team had done something. However, they cannot seem to locate the issue.
When trying to access the page through Chrome, I get a HTTP 503 error, but on Firefox it shows a blank page and says that the connection is not secure. I can access the web app through the server hostname URL fine. However, when trying to use the registered domain name, it is displaying this error. I have checked the logs on the server, but it isn't showing anything specific to this error.
Does anyone know what this could be? Is there anything in IIS that I should look at specifically?
I have checked the logs on the server, but it isn't showing anything specific to this error.
An HTTP 503 error usually indicates that the server is currently not able to handle the request due to maintenance or capacity issues. It could be caused due to many factors, like a server outage, an issue with the network, or a problem with the application itself.
Here are a few things you can try to troubleshoot the issue:
Check the IIS logs, IIS logs are located in the
C:\inetpub\logs\LogFiles folder by default.
Check the event logs, event logs can be accessed through the
Event Viewer (eventvwr.msc).
Try accessing the web app using the server's IP address instead of
the registered domain name. This can help determine if the issue is
related to the domain name or the server itself.
Make sure that the application pool for the web app is running and
that the application pool identity has the necessary permissions to
access the web app's files and resources.
Check the network configuration and make sure that the server is
properly connected to the network and that there are no issues with
the network connection.
Check the web.config to make sure that it is properly
set up and that there are no issues with the web.config file.
Check the ZScaler configuration to make sure that it is not
blocking access to the web app. You may need to work with the
networking team to determine if there are any issues with the
ZScaler configuration.

Error 500 Internal Server Error Whenever I Deploy BlogEngine.NET To Remote Server

Each time I deploy BlogEngine on a remote server on IIS, I get Error 500 - Internal Server Error, anytime I try creating a new post. I have followed procedures on deploying BlogEngine on IIS (here), i have created the NETWORK SERVICE property and given it permissions in the App_Data folder. I even gave permissions to the IIS_USR property on the remote server.
I try making a post on BlogEngine, I get an Error making post toastr message. Whereas this same project works without any hindrance on my local computer.
I narrowed the post action to postEditController.js, to the $scope.save() function but I'm not getting any stack trace whatsoever in Inspect Element.
Error 500 - Internal Server Error usually pops up when you are using incorrect version of .net framework. Check the application pool is 4.0 or 4.5 and app pool is running.

The remote server returned an error: (425) Can't open data connection

I implemented ftp servers on Azure platform - Window Server 2012 following http://www.intstrings.com/ramivemula/articles/enable-ftp-access-on-windows-azure-vm/ link. In summary, I created ports (2500-2504) and used them for FTP services. In same time, I created dataport (1000-1005) and registered them through azure port as endpoints.
I created App Service under Azure Platform. While I debug (FtpWebRequest command - Download, Upload & ListDirectoryDetails) this app service in my workstation, it works fine. But this app service program is sometimes throwing error when it's in Azure platform. It returns "The remote server returned an error: (425) Can't open data connection." error.
Any idea? Thanks you in advance.
If one is not using: using(){} statement on IDisposable objects, then it is possible to get ftp error code 425 if one makes separate enough requests
Reason is: that traffic between azure hosted ftp server and azure site is Fast, way too fast for imperfect code to work properly, while locally debugging(very slow) or locally against remote ftp is slow as well and therefore works

The remote server returned an error: (404) Not Found.

Currently migrating a number of .NET 2.0/4.0 apps to Windows server 2008 r2, IIS7.5
One of the apps uses a web service (.asmx) but for some reason the server returns a 404 Not found and within the exception
There was no endpoint listening at [http://servername/service.asmx] that could accept the message. This is often caused by an incorrect address or SOAP action
I can navigate to the service url in the browser and see the list of web methods. So I know the service is running and accessible.
The weird thing is we have a dev environment with exactly the same setup and is working fine. I can also reference the service running on the production from the dev code and the app works as expected.
I have tried a load of the things mentioned on these sites but nothing seems to have resolved it.
Thanks in advance.

WCF service - migrating from https to http

I have a web service in production that is running over https using a certificate. I would like to deploy this to a staging server without a certificate.
So I believe my best approach is to migrate this to a http service on the staging server. I have modified the web.config and changed the security mode to none and can see the running in IE.
When I use a WebClient to access the service I get a 'The remote server returned an error: (403) Forbidden.' error message.
Can anyone give me some advice on this please?
Thanks
Al
I think it is a permission issue. Check all the permissions. If you had any more problems, you will get extensive error saying multiple things.
Check if you can connect using the WCF Test Client (you can find it inside Visual Studio's Common7 folder, or just search for wcftestclient.exe). If it can connect to the service, you can make it show you the .config files it uses (and you'll be able to cross-check them against yours).

Categories