WCF Consuming Error - c#

I have a problem with a Published on local network WCF project ,
My WCF project is running and was Published smoothly , but when trying to consume it on ASP.NET web forms project , this error shows up ,
The Error
Note : I have installed Microsoft Visual studio tools on the local server which holds the IIS which my WCF project is published on.
My Web.Config :
Web Config Service Model Part

This happens because of a faulty debugging setting in your VS. Take a look at this. http://social.technet.microsoft.com/wiki/contents/articles/17418.the-famous-system-servicemodel-faultexception1-was-unhandled-by-user-code.aspx

Related

How to fix the 500 internal server error when deploying a web application to an ASP.NET framework VM on google cloud?

I am trying to deploy a simple ASP.NET web application over the Internet, using the google cloud platform. I followed the tutorial on this page : https://cloud.google.com/dotnet/docs/getting-started/hello-world (I uploaded a slightly more complex app though). So basically everything went well from the creation of the ASP.NET framework virtual machine to the deployment from my computer to the VM since I've been able to reach for the web app home page through the VM IP address.
Starting Web deployment task from source: manifest(C:\Users...\obj\Release\netcoreapp2.2\PubTmp\myApp.SourceManifest.xml) to Destination: auto().
Updating file (Default Web Site\MyApp.deps.json).
Updating file (Default Web Site\MyApp.runtimeconfig.json).
Updating file (Default Web Site\web.config).
Successfully executed Web deployment task.
Problem is that the home page won't display as it did when I would deploy it locally (with IIS express) but rather throw an
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
I found some interesting subjects raising the same issue :
Deploying website: 500 - Internal server error : suggests to enable detailed errors and/or to change a few lines in the web.config file but I do not have a web.config file at my side of the process in my project (only a Startup.cs which does some of the work) and I cannot manipulate the one in the google virtual machine.
I noticed that before uploading the web app to the VM, the output displayed errors similar to these : https://github.com/dotnet/sdk/issues/1897 (message NETSDK1041) so I thought that the discrepancies between referenced/platform assemblies might be the origin of these errors but then, why wouldn't they impact the local deployment of the web-app too ?
I would like my web application to run on google cloud's VM (based on the generic Google Compute Engine ASP.NET framework), the web app is 'correctly' deployed to the host VM but raises a wild 500 - internal error. Anybody has any idea as to how I could at least identify the source of this error ? (Helping me find the web.config would also help greatly, I understand that everybody has this file somewhere, but I can't find it and don't have a clue on its whereabouts because I just used a random template MVC application on Visual Studio Community 2017 which did all the configuration work

Web-Service not working without reference update

I got a WPF project that is using ASMX web-service to connect to database. The problem is I can't connect to the web-service without updating web-service reference. Even if I've updated reference and then built the solution I can't connent to the web-service after closing visual-studio.
In this situation, it appears VS is hosting your web service via Cassini or IIS Express. That port number is a setting that can be changed in the project's configuration. When you close visual studio you are closing the web application host. If you are attempting to test your service locally, without VS hosting, then you will need to configure a new web application to run on a local instance of IIS pointing to the output directory of the service. You can still bind inside of your solution to the services' project reference, you just don't need VS running to access it locally.

WPF Desktop and web service in same solution

I am revising .NET and web services and attempting to test calling the web service I created with a WPF desktop application. The web service builds and runs fine and when I start without debugging in VS Community 2017 it works as expected and I can see the web service end points in the browser along with the WSDL. But when I attempt to add a WPF desktop application and start without debugging to the browser does NOT have the .asmx file in the URL anymore and states -
HTTP Error 403.14 Forbidden
the web server is configured to not list the contents of this directory
I have googled this error and tried several of the suggested fixes but none of them have resolved the issue. Can this be done at all or do I have to publish the web service to IIS Express on its own and have the WPF desktop application on its own? Its just that it would be very useful to have a desktop application within the same solution to code and test

Publish Web service using Visual Studio development server

I have a Web Service that I am trying to publish from VS.
This is the configuration in my project's properties:
When I try to run the code I get this message:
It works when I choose Use Local IIS Web Server, but why doesn't it work in the first case as well?

How to deploy WCF in Windows Azure

Here
and here it is written how to convert a standard WCF Service to Windows Azure. It is written, that after right-click you will have an option to "Add Windows Azure Deployment Project". But still I do not see it in Visual Studio in my project after right-click at the WCF Application project.
This is the screenshot:
What is wrong? How to deploy it in Windows Azure?
As I told you in the other post this should normally work. But since it does not I propose copying over your WCF interfaces, classes and configurations to a brand new WCF Service Role project. Then you will be able to publish it to Windows Azure directly without any problems.
Please check the following link Code Quick Start: Create and deploy a WCF service in Windows Azure

Categories

Resources