DesignationId column value of EMPLOYEE table should exists in DESIGNATION table while inserting the data in EMPLOYEE table
Tuesday, 30 March 2021
Sunday, 11 October 2020
Severity Code Description Project File Line Suppression State Error MSB3027 Could not copy "obj\Debug\netcoreapp2.1\KodingAttitudeApp.dll" to "bin\Debug\netcoreapp2.1\KodingAttitudeApp.dll". Exceeded retry count of 10. Failed. The file is locked by: ".NET Core Host (9280)" KodingAttittudeApp C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 4194
Severity Code Description Project File Line Suppression State Error MSB3027 Could not copy "obj\Debug\netcoreapp2.1\KodingAttitudeApp.dll" to "bin\Debug\netcoreapp2.1\KodingAttitudeApp.dll". Exceeded retry count of 10. Failed. The file is locked by: ".NET Core Host (9280)" KodingAttittudeApp C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets 4194
To resolve this issue
1. Close the Visual Studio Application and
2. Delete the obj and bin folders
if unable delete the bin folder and gets the error dialog box with Try again or Skip
"The action can't be completed because the file is open in dotnet.exe"
3. then go to Task Manager from the Task bar and select .NET Core Host and click on End task button. The the issue will be resolved
Saturday, 3 November 2018
A network-related or instance-specific error ocurred while establishing a connection to SQL Server. The server was not found or was not accessivle. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.(provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Monday, 12 March 2018
Validation failed for one or more entities, See EntityValidationErrors property for more details
Thursday, 1 February 2018
Failed to load resource: the server responded with a status of 404 (Not Found) api/upload/fileupload
Saturday, 13 January 2018
Friday, 23 June 2017
Ananymous elements have same name in LINQ
Saturday, 17 June 2017
NonUniqueObjectException was caught
a different object with the same identifier value was already associated with the session: 345, of entity: Kasani.RackApp.Model.Data.Domain.Employee
In The Below Code, The Above Exception Is Coming.
The Exception Came Because The Two Different Objects Having Same Id, Which The NHibernate Reads The Id To SaveOrUpdate The Data Accordingly Based On Id.
So To Resolve That, I Had Used
Session.Clear() and
Session.Flush() Before SaveOrUpdate() method...
Now It Works Fine.
public bool SaveEmployee(EmployeeInformation employeeInformation)
{
bool isEmployeeSaved = false;
EmployeeTypeRepository employeeTypeRepository = new employeeTypeRepository();
CompareDomainWithBusinessObjRepository cmpObjRepository = new CompareDomainWithBusinessObjRepository();
List<AppDomain.Compare> cmpSaveEmp = cmpObjRepository.CompareNotifications(employeeInformation, (int)AppEnumeration.Notifications.Employee, employeeInformation.EmployeeId);
var map = new AutoMap<EmployeeInformation, AppDomain.Employee>();
AppDomain.Employee employee = map.Create(employeeInformation);
employee.EmployeeType = employeeTypeRepository.FindById((int)employeeInformation.EmployeeTypeId);
Session.Clear();
Session.Flush();
employee = SaveOrUpdate(employee);
if (employee.EmployeeId > 0)
{
isEmployeeSaved = true;
}
foreach (var item in cmpSaveEmp)
{
cmpObjRepository.SaveOrUpdate(item);
}
return isEmployeeSaved;
}
Sunday, 8 May 2016
identifier of an instance of Address was altered from 5 to 4 (org.hibernate.HibernateException:)
Student studentObj=new Student();
StudentDAO daoStudent=new StudentDAO();
studentObj=daoStudent.LoadById(studentBE.StudentId);
studentObj.Address.AddressId=studentBE.AddressId;
Then I Had Got The Exception "Identifier Of An Instance Of Address Was Altered From 5 to 4".
An NHibernateException.
Solution:-
-----------
By Creating A New Object Of Address With The Given Id And Replacing The Address Object Associated With Object Student -- as below:
studentObj.Address=new Address(){AddressId=studentBE.AddressId};
Sunday, 10 April 2016
Unable to start debugging on the webserver. Could not start ASP.NET debugging. More information may be available by starting the project without debugging
And If I Run The Application Without Debug, Then It Is Showing HTTP:Error 503
To Rectify This ...
Open 'Run' window by clicking wnd+R
And Type 'inetmgr', then IIS will open.
In The Displayed window,
In "Edit Application Pool" Click On "View Applications" In right hand side, and in the middle it shows the "Applications"- in that
"Virtual Path" "Physical Path" "Site" "Application Pool" columns will display , and in that i had changed by clicking on the
the "Application Pool" from DefaultAppPool to ASP.NET V4.0 Integrated(v4.0).
Now the Application Is Running Well And Good.
Thursday, 18 February 2016
Property or indexer cannot be assigned to -- it is read only
==========================================================================
I get this Exception because in business class I had given only get accessor to the property of class as below:
class Abc
{
public bool Display
{
get; // i.e., it only can read the value, but cannot take any value
}
}
now
Abc obj1= new Abc();
obj1.Display=true; // here i am assinging value to the property as the property is read only
So that the error is coming and as in Business object we had given only 'get' accessor
now i had changed the property in Abc class as get and set as below :
class Abc
{
public bool Display
{
get; // i.e., it only can read the value, but cannot take any value
set;
}
}
now
Abc obj1= new Abc();
obj1.Display=true;
Now its well and good and not showing any error
Saturday, 12 December 2015
NonUniqueObjectException was caught - a different object with the same identifier value was already associated with the session: 345, of entity: Kasani.RackApp.Model.Data.Domain.Employee
a different object with the same identifier value was already associated with the session: 345, of entity: Kasani.RackApp.Model.Data.Domain.Employee
The Exception Came Because The Two Different Objects Having Same Id, Which The NHibernate Reads The Id To SaveOrUpdate The Data Accordingly Based On Id.
So To Resolve That, I Had Used
Session.Clear() and
Session.Flush() Before SaveOrUpdate() method...i.e.,
Session.Clear();
Session.Flush();
object1=SaveOrUpdate(object1);
foreach(var item in object2)
{
otherObjectRepository.SaveOrUpdate(item);
}
Now It Works Fine.
Monday, 24 February 2014
Thursday, 2 January 2014
Wednesday, 25 December 2013
unable to copy file "obje\Debug\fileName.exe" to "bin\Debug\fileName.exe". The process cannot access the file 'bin/Debug/fileName.exe' because it is being used by another process.
I got this error when i start to run the windows application, To rectify this Error , I Opened The "Windows Task Manager" By "Ctrl+Alt+Delete" And Opened The Tab "Processes" And Selected The .exe Of The Application And Click On "End Process" Button And Run The Application Again...It Runs Successfully.
Thursday, 29 August 2013
The database cannot be opened because it is version 661. This server supports version 612 and earlier. A downgrade path is not supported.
EndPointNotFoundException was unhandled
Monday, 19 August 2013
The type 'WcfServiceForInsert.Service1', provided as the Service attribute value in the ServiceHost directive could not be found.
Server Error in '/Rack' Application.
The type 'WCFService1.Service1', provided as the Service attribute value in the ServiceHost directive could not be found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.InvalidOperationException: The type 'WcfServiceForInsert.Service1', provided as the Service attribute value in the ServiceHost directive could not be found.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Service 'WCFService1.Service1' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.
Exception Details: System.InvalidOperationException: Service 'WCFService1.Service1' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |