We are using template ASP.NET MVC 5.x & JQuery It is consuming our time a lot to make CRUD operations for master tables. Wanted to confirm when will you guys providing Rapid developement tool for this template as it is very much needed.
Thank you!
The PR is showing changes in file '/Abp/Framework/scripts/libs/abp.signalr-client.js'. But this file is not present in v5.0.
Thanks
Hi,
Shall I update all ABP dlls in web project or any particular dll?
Thanks
Hi,
I am using SignalR in ASPNET ZERO (v 5.0.0.0). I have a new controller which is not ABP controller. And implemented SIgnalR on that. It is working fine but sometimes it breaks and stop displaying message on client side. i am showing code below what i have done.
<script type="text/javascript">
abp.signalr = abp.signalr || {};
abp.signalr.autoConnect = false;
</script>
<script src="~/Scripts/jquery.signalR-2.4.0.js"></script>
<script src="~/signalr/hubs"></script>
<script src="~/Abp/Framework/scripts/libs/abp.signalr.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$.connection.hub.start();
abp.signalr.connect();
var chatHub = $.connection.myHub;
$(document).on('click', '#PreviewLeftSideClick', function () {
chatHub.server.paceModeSlideClick('test data');
});
chatHub.client.paceModeSlideClick = function (data) {
alert(data);
};
});
</script>
public class MyHub : Hub, ITransientDependency
{
public void PaceModeSlideClick(string data)
{
Clients.All.paceModeSlideClick(string.Format("{0}",data);
}
}
I am attaching images to show what i got when checking connection on console.
a) 1.png - It fetched all the hubs. So, when clicking on server side, client is getting proper messages.
b) 2.png - It fetched only one hub (abpcommonhub), when clicking on server side, there is no effect on client side.
We are getting this error sometime. Its only one page. Sometime on refreshing the page we are getting 1.png image message and sometimes 2.png image message. Please suggest what to do.
Thanks
Hi, I am getting following error in my application. However, i am not using any commit transaction in my code. Can you please look into this and let me know what is the issue?
** Stack trace** System.Transactions.TransactionAbortedException: The transaction has aborted. ---> System.Data.SqlClient.SqlException: The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION. at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.TdsExecuteTransactionManagerRequest(Byte[] buffer, TransactionManagerRequestType request, String transactionName, TransactionManagerIsolationLevel isoLevel, Int32 timeout, SqlInternalTransaction transaction, TdsParserStateObject stateObj, Boolean isDelegateControlRequest) at System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransactionYukon(TransactionRequest transactionRequest, String transactionName, IsolationLevel iso, SqlInternalTransaction internalTransaction, Boolean isDelegateControlRequest) at System.Data.SqlClient.SqlDelegatedTransaction.SinglePhaseCommit(SinglePhaseEnlistment enlistment) --- End of inner exception stack trace --- at System.Transactions.TransactionStateAborted.EndCommit(InternalTransaction tx) at System.Transactions.CommittableTransaction.Commit() at System.Transactions.TransactionScope.InternalDispose() at System.Transactions.TransactionScope.Dispose() at Abp.EntityFramework.Uow.TransactionScopeEfTransactionStrategy.Commit() at Abp.EntityFramework.Uow.EfUnitOfWork.CompleteUow() at Abp.Domain.Uow.UnitOfWorkBase.Complete() at Abp.Web.Mvc.Uow.AbpMvcUowFilter.OnActionExecuted(ActionExecutedContext filterContext) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.
Thanks
Hi,
I want to reterive name of the user who has submitted code, Please tell me how to achieve this. Here is my code:
[Table("Management_Of_Change")]
public class Entity_Management_Of_Change : FullAuditedEntity
{
public virtual string Originator_Job_Title { get; set; }
public virtual string Management_Of_Change_Number { get; set; }
public virtual DateTime? Required_Date { get; set; }
public virtual string Location_And_Field_Names { get; set; }
[NotMapped]
[Computed]
public string Status_Name => Entity_MOC_Status.Name;
[NotMapped]
[Computed]
public string Creator_Name
{
get
{
var _result = //----- How to get creator Name here??
return _result;
}
}
}
}
Hi,
I have completed this by removing cookies from domain which i added. Now its working fine.
Thanks.
Actually i added a code to redirect to welcome page if user is already logged in. So, that user don't have to go to login screen everytiem. Now, when i click on logout it redirect me again to welcome page like cookies are not cleared.
Hi, I have published my website on IIS which is working in two ways. we can access the website using https://www.websitename.com and https://websitename.com. So, when logging in i am facing issue of session creation. If i logged in through one of the URL it is accessible to another URL due to session issue.
So, to resolve this i added cookie domain value in Startup.cs file in my project as follows, which is working fine. But when i click logout button, i am not able to logout.
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/Account/Login"),
CookieDomain = ".websitename.com"
});
Is there any workaround to resolve this issue.
Thanks
public void Execute(int Id)
{
string status = "";
try {
.............
.............
status = "Succeeded";
}
catch (Exception ex) {
status = "Failed";
}
finally {
_appService.Update(Id, status);
}
}
Update method -
public void Update(int Id, string status)
{
var record = _repository.Get(Id);
record.LastRunStatus = status;
_repository.Update(record);
CurrentUnitOfWork.SaveChanges();
}
The record is only updates if there is no exception in Execute
method. I want the record to update even when there is exception. How can we achieve this?