I am using Visual Studio 16.7.7.
I have a postgreSQL database running through a WCF/IIS 7 server on my local machine. All works well with .NET Framework. After moving my F# code to .Net Core 3.1, I created a ConnectedService.json in a C# project that now has the following:
{
"ProviderId": "Microsoft.VisualStudio.ConnectedService.Wcf",
"Version": "15.0.40203.910",
"ExtendedData": {
"inputs": [
"http://sager:9003/MedicalServiceHost.svc"
],
"collectionTypes": [
"System.Array",
"System.Collections.Generic.Dictionary`2"
],
"namespaceMappings": [
"*, MedicalService"
],
"references": [
"Microsoft.Xaml.Behaviors, {Microsoft.Xaml.Behaviors.Wpf, 1.1.19}"
],
"targetFramework": "netcoreapp3.1",
"typeReuseMode": "All"
}
}
Then in the F# code I have:
module FsNetwork =
let context = new MedicalService.MedicalServiceClient(new BasicHttpBinding(MaxReceivedMessageSize =2147483647L), new EndpointAddress("http://sager:9003/MedicalServiceHost.svc"))
/// Get the office schedule for the tableDate.
let GetScheduleAsync (tableDate : DateTime) =
async {
let! data = context.GetOfficeScheduleAsync(tableDate) |> Async.AwaitTask
return data |> Seq.map(fun q -> {
Visit.lastName = q.lastname
firstName = q.firstname
birthDate = q.birthdate
appointmentTime = q.appointment_time
tservice = q.service_time
postingTime = q.posting_time
chartNumber = q.chart_number
})
}
|> Async.StartAsTask
where I increased the MaxReceivedMessageSize.
Now upon startup I get: The project doesn't know how to run the profile IIS Express
Which is odd since I'm running IIS 7 locally.
How do I fix this error?
Thank you.
Addendum:
After wasting a good deal of time and hair, I happened upon How to disable the iis express launch profile
I had not before noticed the "Express" on the visual studio display:
When the drop-down on the "Express" is used, and changed back to my startup project -- StargateIX, then recompiled and run--ALL WORKS CORRECTLY!
So, what is this drop-down box all about?
TIA