Using the Web template in service fabric produces a non-managed ASP .NET5 project - azure-service-fabric

Working on a sample Service Fabric app. I created services and tested them. Now I wanted to add an API Gateway that acts as an entry point to my app...so in VS, I right-clicked on the services and chose the Web Template ASP.NET 5. It did create a regular ASP .NET 5...not managed by Service Fabric...there is no Package Root or Program.cs for example.
What am I doing wrong please? Of course, a regular ASP .NET 5 works ...but I wanted the whole app (including the gateway) to be managed by the Service Fabric.
Regards

When you right-click to add in a service it is a common mistake to select the solution root (like you would normally do) to add in another project. But, in order to add in a new fabric service (including ASP.NET 5), you have to right-click the main service fabric project (the one with the ApplicationManifest.xml) and then select Add => New Fabric Service. You will then get the dialog box where you can select ASP.NET 5 Web Api.
Right-click here first:
Then select Add => New Fabric Service:

Related

Bind northwind odata service to ui5?

I would like to take http://services.odata.org/V2/Northwind/Northwind.svc/ as sample service for my ui5 app.
SAP Web IDE provide following option for OData service connection:
Which option do I have to choose to connect with Northwind OData service?
it seems like you didn't set up a Connection in your Cloud Platform Cockpit.
Firstly, go to your Cockpit and choose Connectivty -> Destinations:
Select New Destination and configure it as followed:
Then go back to your WEB IDE to the step in your screenshot and select the service you just added.
After that, the wizard wants the relative URL for the Web Service. Paste /V2/Northwind/Northwind.svc and click on Test. If everything works, you can move on creating your app.
Hope this helps

Netbeans 8.1 No New Web Service Client Wizard

I am using Netbeans 8.1 with the Java SE runtime on Windows 10. I'm trying to write a web service client. According to this official tutorial.
New > Web Service Client will open the New Web Service Client Wizard. For some reason there is no Web Service Client under New. Following the path New > Other opens the New File wizard but once again no Web Service Client option is to be found. Any insights to resolve this problem will be most appreciated.
Failing that the steps to manually import a WSDL into a javafx project will be satisfactory.
thank you
A.G.
I followed the tutorial using netbeans 8.1 too, and upon creating the web service client I got the same issue. Initially the web service client option is not displayed on the wizard under the web service option. But after searching for "web service client" using the search filter in the wizard it is added.

WCF RIA DOMAIN SERVICES

I created WCF RIA DOMAIN Services project with Silverlight 4 with entiry framework having enablabed WCF RIA . Two projects are created;silverlight and web. Project is running file on my local system. But upon hosting on web server. it shows remote server error. If there any svc file which i have to created or Domain service host it byself.I can find any service reference. is this something i have to add as .svc file.
Thanks
If the project is working fine locally and not when you deploy to a web server, the first thing to check is if the ServiceModel assemblies are installed in the GAC of the server. If they are not, then in your project, do the following...
In the References folder of Solution Explorer, locate the assemblies called System.ServiceModel.DomainServices.*, right click on each and select 'Properties'
In the Property window, set 'Copy Local' to true.
This will place these assemblies in the 'bin' directory. Then deploy the bin directory to the service.

Deploying Hybrid ASP.NET webform and MVC project on iis7 - MVC Routing does not work

Hi Stackoverflow,
Im trying to deploy a hybrid ASP.Net Webform/mvc-project onto iis7 but the mvc routing does not work.
This is what i have done so far:
Added all required mvc-related dlls.(i have double checked bin-catalog to make sure that everythings there on the deployed installation)
Added MVC wildcard by adding the IsapiModule handler to iis handler mappings.
The Server has .Net-Framework 3.5 SP1 installed.
The web site Managed pipeline mode set to classic
Our project requires the app pool to be running in none-integrated pipeline, but im not sure what MVC requires of the app pool, may i run ASP.NET MVC(2) in a none-integrated managed pipeline?
The web application loads and i want to use the MVC-routing to load javascript but the mvc routing does not responde to the request and instead Webforms gives us a 404-response,
this only happens when the project has been deployed onto the server.
Does anyone has a idea of why the ASP.Net MVC routing does not fire?
Thanks and Best regards,
Mikael
I found the error, the installer did not update production web.config,
so there was some missing mvc-required references,
i used this article to find out what was missing, it describes how to setup a hybrid WebForm/Mvc project in a simple way.
And now im able to run a hybrid webform/mvc-project on iis7 classic without any problem.

Deployment in Webmatrix to IIS 7 removes Rewrite Rules

We are using Webmatrix to host and test (locally) our Silverlight 4 app that is hosted in a asp.net web app. The Silverlight client also calls a WCF service on the web app.
We want to take the app to production and deploy it in IIS 7 ( We are using Discount Asp).
We used the FTP deploy from within Webmatrix and it deployed the app successfully. The problem is that this operation cleans all the Rewrite Rules that we defined on the IIS server on Discount ASP.
When we want to update the Silverlight client, we can work around this and avoid using the FTP deploy on webmatrix, and instead just manually copy the replace the new XAP file. This works fine.
But if we want to update the server, for example add new method to the service, Just copying and replacing the Service.svc , Service.svc.cs and IService.cs won't do the trick.
The new methods can't be seen and the client can't use them (Trying to Add Service Reference from VS won't show the new methods either).
So:
1) Why using FTP Deploy from Webmatrix cleans all the rewrite rules ?
2) Is it possible to use the work around and update the WCF service ?