I am using VS 2019 and I have a simple Web API method to execute a stored procedure that returns one string. I am using Entity Framework Core version 3.1.31.
When I am trying to call the stored procedure in my Web API method by using
context.Database.FromSqlRawAsync
I get an error
DatabaseFacade does not contain a definition for FromSqlRaw...
However if I use ExecuteSqlRaw, it accepts it and does not throw any error.
Any suggestion on how to resolve this?
I have tried installing Microsoft.EntityFrameworkCore.Relational package version 3.1.31 from nuget package manager. I am also using using Microsoft.EntityFrameworkCore statement in the Web API controller.
What else do I need to do?
Related
I have a 2016 access file, when I try to access this file with an SQL or Access datasource in visual studio I get the following error message:
Database schema could not be retrieved for this connection. Please make sure the connection settings are correct and that the database is online.
The database you are trying to open requires a newer version of Microsoft Access
I checked my database and I don't have any Large Number in it so I'm not sure what exactly is the problem.
It was working fine before I did some changes with a few Date/Time data type but I since changed all the Date/Time to Short Text. I'm not certain if it has any relation to the error message but it was the only change I've made before the error.
Can anyone help?
I had this problem and its stems from the use of new data fields.
Eliminating them alone did not do the trick. When you use one of the new field types it steps the version up to 16.7, which is not compatible with earlier access versions.
Note that you can get the version number with ? Currentdb.Version in the immediate window
I had to run the compact and repair routine in order to get the version to step down.
I'm working on a company project that has been built over the last 18 months and has a backend built using Parse.com, we are in the progress of migrating to Back4App.
However I am unable to find how to set the API Server URL in the C# SDK which I'm using with Xamarin, as the initialise method only has parameters for an application key and a .NET key.
Would anyone know how I can set the API Server URL to http://parseapi.back4app.com?
You can supply a custom ParseClient.Configuration that contains your Server URL:
ParseClient.Initialize(new ParseClient.Configuration()
{
Server = "http://parseapi.back4app.com",
ApplicationId = "YourAppIDHere",
});
Turns out I was using an outdated version of Parse within Xamarin and I fixed this by updating my references.
To use a custom server you need Parse v1.7.0.
I am trying to create a sample Delphi XE7 desktop app that will connect to SSRS 2005 web service but every time I try to call LoadReport web method, the following error is shown:
This is what I have done so far:
Create a desktop app.
Import WSDL for ReportExecution2005 and ReportService2005.
Create a button that call the web service based on the code shown
here. The web service locations as well as report are hardcoded for
simplicity purposes.
This is the code snippet from the link:
HTExec := tHttpRio.Create(nil);
rsExec := GetReportExecutionServiceSoap(False, ExecURL, HTExec);
// Load the selected report.
LRParams.Report := 'ReportName';
LoadParamsResponse := rsExec.LoadReport(LRParams); //here it fails
Note: I have already created a .NET win form app (VS2010 and VS2013) that consumes this web service without any issues, thus I know the web service and report to render are working OK. Sadly our requirements is for a Delphi solution, My educated guess is that the WSDL importer generated code is not correct and somebody out there may have come across with this issue before and know how to solve it.
I did a quick search for "http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/LoadReport"
and found this.
If it applies to you as well, it may be the case you're calling the service on an incorrect URL, use the one with ReportExecution2005.asmxin it, not ReportService2005.asmx
(There's a lot more here)
To find out differences between the Delphi version and the working version, use a HTTP proxy (Fiddler2) to capture the SOAP HTTP traffic in both setups.
If you have no access to the working environment, use SoapUI to create SOAP requests.
I installed a windows service using InstallShields generated msi file.
How am I able to get the version of the service using WMI-Query? I already checked win32_Service but there's no version number displayed. Is this information queryable using WMI or do I have to use the registry for this scenario?
Okay, got it. The information is stored in Win32_Product.
I'm using ElFinder.NET connector in my MVC applications. In one application everything works fine, but the other application can't initialize Elfinder.
The code used to initialize Elfinder is the same in both applications. The problem is probably in Connector.Process(this.HttpContext.Request) call.
In the application, where ElFinder is working, Connector.Process returns JSON result with correct data, the other application returns a wierd result.
I can see in the browser, that the request was processed, but the response body contains string System.Web.Mvc.JsonDataContractResult instead of JSON data. If I step through the code in Visual Studio, I see that Connector.Process return a JsonDataContractResult but it's empty.
Well then :)
Possible situation is; outdated Json.Net(Newtonsotf.Json) package version. If you have an older version of this library please simply replace them with the ones in elfinder's package as i say on my comment..