Dapper+DappersSimpleCrud+Sybase(AseClient)
.net core errors.
Error is something like "Connection in a broken state" , there is an int64 getting passed in, or in the EO/CV/VM, convert them all to int32... inputs first, that's usually the one.
Error is something like "Connection in a broken state" , there is an int64 getting passed in, or in the EO/CV/VM, convert them all to int32... inputs first, that's usually the one.
Unable to resolve service for type 'SpProofOfConceptAPI.Dal.IEvaluationFormPartialDAL' while attempting to activate 'SpProofOfConceptAPI.Services.EvalDetailScores.EvalDetailScoresUpdateHandler'."}
You forgot to declare this type SpProofOfConceptAPI.Dal.IEvaluationFormPartialDAL for IOC in the startup
Solution (and for the BLL cause you usually forget both)
services.AddScoped<IEvaluationFormPartialDAL, EvaluationFormPartialDAL>();
services.AddScoped<IEvaluationFormPartialBLL, EvaluationFormPartialBLL>();
When I get this error in .Net Core web api DAL call, here are things I've found that were the cause.
It's a generic message meaning "something went wrong communicating"
1. Convert the input args from int64 to int32, because Sybase sucks at int64s.
2. If you forget to put the @ in front of the argument name in the struct.(Even though on SO they say the @s don't belong)(I tested a working call removing the @ and it worked fine, so this may be spurious)
3. Your timeout could be to short, try adding 'Connection Timeout = 600;' if you are using ASE (Sybase)
4. Try changing all int64s to int32s in the return object
5. Try hard coding the variable into the SQL to see if that works (then you know it's something to do with the parameters.
6. re write not using dapper to see if that gives you insight
using ( IDbConnection db = new AseConnection( aseSqlConnectionString ) )
{
db.Open( );
using ( IDbCommand command = db.CreateCommand( ) )
{
command.CommandText = sql;
var parameter = command.CreateParameter();
parameter.ParameterName = "@enrtypeid";
parameter.Value = EnrTypeId;
command.Parameters.Add(parameter); ;
using (var reader = command.ExecuteReader())
{
// Get the results.
while (reader.Read())
{
var col1= reader.GetString(0);
var col2= reader.GetString(1);
// Do something with the data...
}
}
db.Close( );
}
}
Team, when creating bug work items please refer to these guidelines. Will do another for user stories/developer tasks. Please let me know if any questions.
The Description tab:
The description tab should include the following:
Got this from Warren, wanted to save it.
E-
I have sent this out before but I was asked how to do this...
This will actually work for almost any program...
Changing your machine or ad password when remote desktop through Citrix (working remotely)
Method 1 (JcD*v)
Ctrl+Alt+End = Change Citrix Password ( JCD*V\User.Name)
Method 2 (Dev Box)
Search -> Onscreen Keyboard<enter>, Ctrl+Alt on my keyboard, Del on the online keyboard = Change Box Password (JCD*V\User.Name)
Method 3 (Citrix)
Log into Citrix remotely, Open JCDC desktop (citrix-> desktops->Jobcorps)
Search -> Onscreen Keyboard<enter>, Ctrl+Alt on my keyboard,
Del on the online keyboard = Change Box Password (AD*\User.Name)
Method 4 (Citrix)
Go to https://citrix.jobcorps.org/Citrix/JobCorpsWeb/ from your work PC and change it there
Method 5 (Citrix)
Webmail and webauth (citrix?) password)
(login to citrix, settings, edit settings , reset password)
Method6 (Dev)
login to citrix (not web auth, click the citirx chicklet)
Click the apps button center top
use the JCD*vPassword tool to reset the jcd*v password
*****DO NOT FORGET***** Only 1 password change is allowed every 24 hours.. So if it's reset for you you can't change it til tomorrow
Visual Studio 2019
When VS expires Lisc message comes up, all logins are just straight email no domains
Last.FirstM@jobcorps.org