Base solution for your next web application

Activities of "george"

Hi ,

I recently upgraded Abp, Abp.Zero, Abp.Zero.EntityFrameWork, Abp.Zero.Ldap to v.1.4. Also downgraded EntityFrameWork.DynamicFilters to v.1.4.11.

After that i am getting a MethodMissingException :- Method not found: '!!0 Abp.Reflection.ReflectionHelper.GetSingleAttributeOfMemberOrDeclaringTypeOrDefault(System.Reflection.MemberInfo, !!0)'.

I tried Deleting/Cleaning the bin/Solution but no effect at all.

Could you please help me to solve this issue. Also I would like to know why this error is happening.

Please help.

regards, George

Hi there,

I am using AspNetZero with Angular1.x and MVC. I cannot log in to my application using IE 9,8,10 or 11.

Login page is loading. But when i click on log in button it shows the 3 bubbles (loading) only. [attachment=0:1dtkrjuz]netzero_IE.JPG[/attachment:1dtkrjuz]

Why this is happening? How can we solve it??

You may use the following credentials to test it:

URL: <a class="postlink" href="http://demo.smartcampus.co/Account/Login">http://demo.smartcampus.co/Account/Login</a> UN: admin PWD: 123qwe

Thank You.

Hi,

Please provide me some details that we need to follow for implementing authorization and authentication with web API.

I tried to implement token based authentication but did not succeed

Please provide some sample code if possible.

Regards, Robin G

Hi!,

   I am experiencing a bit of difficulty on progammatically setting of focus, on markup controls.  And also the checkbox control is get skipped from focus while using Tab key Press Navigation.

The sample code for the check box we are using :

   &lt;input id=&quot;someId&quot; class=&quot;md-check&quot; type=&quot;checkbox&quot; name=&quot;name&quot; ng-model=&quot;vm.model&quot;&gt;
                                &lt;label for=&quot;someId&quot;&gt;
                                    &lt;span class=&quot;inc&quot;&gt;&lt;/span&gt;
                                    &lt;span class=&quot;check&quot;&gt;&lt;/span&gt;
                                    &lt;span class=&quot;box&quot;&gt;&lt;/span&gt;
                                    @L("Name")
                                &lt;/label&gt;
 

Regards.

Hi,

[attachment=0:4is7orsj]page-load.jpg[/attachment:4is7orsj] As shown in the above image 'Absentees Entry' page is showing along with the currently selected 'Online Fee Payment' screen for a while .Then it will be disappeared. This is showing when we select screens with lesser controls(I think this issue will be there for larger screens also even though it is not visible) Please help us for fixing the issue.

Regards, Robin G

Hi, I need to print a receipt for a payment. I've designed the receipt and is working fine. But when i take the print, all my designs gone somewhere..! :roll:

I'll show you my code..

printModal.cshtml

<div class="col-md-12 ">

    <div class="well col-md-12 margintop">

        <div id="printThisElement">
            <div class="row">
                <div class="row text-center col-md-12 hidden-print ">
                    <img src="~/img/logo.png">
                </div>
                <div class="visible-print-block" style="text-align:center;">
                    <p>   <img src="~/img/logo.png"></p>
                </div>
                <div class="col-xs-6 col-sm-6 col-md-6 hidden-print">
                    <div class="floatL">
                        <table class="table" border="0">
                            <tbody>
                                <tr class="row">
                                    <td>@L("AdmissionNo")</td>
                                    <td>:&nbsp;{{vm.paymentdetails.admissionNo}}</td>
                                </tr>
                                <tr class="row">
                                    <td>@L("Name"):</td>
                                    <td>:&nbsp;{{vm.paymentdetails.name}}</td>
                                </tr>
                                <tr class="row">
                                    <td>@L("Class"):</td>
                                    <td>:&nbsp;{{vm.paymentdetails.class}}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="col-xs-6 col-sm-6 col-md-6 visible-print-block">
                    <div class="">
                        <table class="visible-print-block" border="0">
                            <tbody>
                                <tr class="row">
                                    <td>@L("AdmissionNo"):</td>
                                    <td>{{vm.paymentdetails.admissionNo}}</td>
                                </tr>
                                <tr class="row">
                                    <td>@L("Name"):</td>
                                    <td>{{vm.paymentdetails.name}}</td>
                                </tr>
                                <tr class="row">
                                    <td>@L("Class"):</td>
                                    <td>{{vm.paymentdetails.class}}</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="col-xs-6 col-sm-6 col-md-6 visible-print-block">
                    <div class="">
                        <table class="visible-print-block" border="0">
                            <tr class="row">
                                <td>@L("TransactionId"):</td>
                                <td>{{vm.paymentdetails.transationId}}</td>
                            </tr>
                            <tr class="row">
                                <td>@L("Order Reference No"):</td>
                                <td>{{vm.paymentdetails.orderRefNo}}</td>
                            </tr>
                            <tr class="row">
                                <td>@L("Date"):</td>
                                <td>{{vm.paymentdetails.transactionDateTime | date:'dd-MM-yyyy'}}</td> @*Changed by Robin creationTime*@
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="col-xs-6 col-sm-6 col-md-6 text-right hidden-print">
                    <div class="table-responsive floatR">
                        <table class="table" border="0">
                            <tr>
                                <td class="floatL"><span>@L("TransactionId")</span></td>
                                <td>:</td>
                                <td><span>{{vm.paymentdetails.transationId}}</span></td>
                            </tr>
                            <tr>
                                <td class="floatL"><span>@L("Order Ref. No")</span></td>
                                <td>:</td>
                                <td><span>{{vm.paymentdetails.orderRefNo}}</span></td>
                            </tr>
                            <tr>
                                <td class="floatL"><span>@L("Date")</span></td>
                                <td>:</td>
                                <td><span>{{vm.paymentdetails.transactionDateTime | date:'dd-MM-yyyy'}}</span></td> @*Changed by Robin creationTime*@
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="row hidden-print">
                    <div class="col-md-12 cleardiv">
                        <div class="text-center margin0auto row">
                            <h1>Receipt</h1>
                        </div>
                        <hr>
                    </div>
                </div>
                <div class="row visible-print-block">
                    <br />
                    <div class="" style="width:250px">
                        <div class="text-center margin0auto" style="margin:0 auto">
                            <h1>Receipt</h1>
                        </div>
                        <hr />
                    </div>
                </div>
                <div class="row">
                    <div class="">
                        <table class="table table-responsive tableWidth">
                            <tr class="row">
                                <td><div class="col-xs-6 col-sm-6 col-md-6"><strong>Fees</strong></div></td>
                                <td><div class="col-xs-6 col-sm-6 col-md-6"><strong>Amount</strong></div></td>
                            </tr>

                            <tr class="row">
                                <td><div class="col-xs-6 col-sm-6 col-md-6">Fees</div></td>
                                <td><div class="col-xs-6 col-sm-6 col-md-6">{{vm.paymentdetails.amount}}</div></td>
                            </tr>

                            <tr class="row">
                                <td><div class="col-xs-6 col-sm-6 col-md-6"><strong>Amount Paid: </strong></div></td>
                                <td><div class="col-xs-6 col-sm-6 col-md-6"><strong>{{vm.paymentdetails.amount}}</strong></div></td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="col-md-6">
    <button class="btn btn-success btn-lg btn-block" ng-print print-element-id="printThisElement">
        <i class="fa fa-print"></i>
        PRINT
    </button>
</div>

style.css

@media print
{
    /**{
        display:none;
    }*/

     .floatR { 
        float: right !important; 

    }
     .printwidth {
         width: 100% !important;
         clear:both !important;
    }
}

The style classes are not working in the print. But when I used the

  • { display:none; } the print preview displays nothing. That means, the style sheet is loading at the time of print, but not the classes inside the sheet!.

I've used chrome to get the print preview.

Actually what could be the problem??

Hi, I need to generate a reference no for each transaction. The reference no. should not be repeated in any of the cases. Even if there is any exception is occurred at any point of the method. If a new reference no. is updated, it should not be rolled back.

So, I've created my method as follows:

[UnitOfWork(IsDisabled = true)]
        public OnlinePaymentReferenceNumberListDto GetReferenceNumber()
        {
            var currentReferenceNo = _referenceNoRepository.GetAll().FirstOrDefault();

            var nextReferenceNo = currentReferenceNo.MapTo<OnlinePaymentReferenceNumber>();
            nextReferenceNo.Year = DateTime.Now.ToString("yy");
            nextReferenceNo.Month = DateTime.Now.ToString("MM");
            nextReferenceNo.Number = nextReferenceNo.Number + 1;
            _referenceNoRepository.Update(nextReferenceNo);

            return currentReferenceNo.MapTo<OnlinePaymentReferenceNumberListDto>();
        }

But the problem is, I'm calling this method from another appservice. I've read from your pretty good documentation that, if a unit of work method calls this methode, disabling this method is ignored and it uses the same unit of work with the caller method.

So, I think, my requirement will not be satisfied. What can we do for this?

Hi,

I want to open a page without logging in to the application. The link to open the page is given in the login page. So, I've created an ActionResult in the account controller like this:

public ActionResult GotoQuickPay()
        {
            return Json(new AjaxResponse { TargetUrl = "/Application#/tenant/quickPay" });
        }

The route for the specified page is also created without checking any permissions:

//Route for Quick Payment
        $stateProvider.state('tenant.quickPay', {
            url: '/quickPay',
            templateUrl: '~/App/tenant/views/onlinePayment/quickPay.cshtml'
        });

But it's showing an error 500. Details:

This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet.
InvalidOperationException: This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet. STACK TRACE: at Abp.Web.Mvc.Controllers.Results.AbpJsonResult.ExecuteResult(ControllerContext context) in D:\Halil\GitHub\aspnetboilerplate\src\Abp.Web.Mvc\Web\Mvc\Controllers\Results\AbpJsonResult.cs:line 62 at System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass21.&lt;&gt;c__DisplayClass2b.&lt;BeginInvokeAction&gt;b__1c() at System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;&gt;c__DisplayClass21.&lt;BeginInvokeAction&gt;b__1e(IAsyncResult asyncResult)

If I set JsonRequestBehavior to AllowGet, will it be solved? And is that a good practice?? Any other Solutions???

(Anyways I don't know how to set JsonRequestBehavior to AllowGet :lol: )

Hi there,

We are using a 3rd party service for developing an Online Payment application. The work flow of our application is as follows.

Step 1) We submit the amount and other details to a URL given by our online payment service provider through an AppService. Step 2) After submitting the data to the URL, we can get a response in the angular controller via the same appservice. Step 3) If the response returns 'success' we've to redirect the page to a 'redirectURL' which will be included in the response. Step 4) The 'redirectURL' will open the payment gateway page. Here the user can choose the payment methode and make the payment. Step 5) After making the payment, the payment gateway page will send a response to a URL which we provide. Here is the problem exists

We have to receive the response from the payment gateway in another page which will show the details from the payment response.

In this case, how can i receive the response sent from the payment gateway to my angular page?

The payment request is not initiated from our page. In that case I could use $http.post to send the request and get the response in my angular page itself. Here, it's happening from the payment gateway page. That's why we have to provide a callbackURL(responseURL) in the first request itself(mentioned in step-2).

So, I need to create a callbackURL page to receive the JSON response from an external URL.

Please help me.. I'm Stuck here..

Hi,

I don't know what I've done extra-ordinary.. Anyways, my project is not running.. I can see the following error in browser console:

angular.js:13642 TypeError: Cannot read property 'app' of undefined
    at Object.<anonymous> (appSession.js:10)
    at Object.invoke (angular.js:4708)
    at Object.$get (angular.js:4547)
    at Object.invoke (angular.js:4708)
    at angular.js:4507
    at d (angular.js:4654)
    at e (angular.js:4678)
    at Object.invoke (angular.js:4700)
    at P.instance (angular.js:10177)
    at n (angular.js:9096)(anonymous function) @ angular.js:13642(anonymous function) @ angular.js:10287$apply @ angular.js:17483(anonymous function) @ angular.js:1780invoke @ angular.js:4708c @ angular.js:1778Ac @ angular.js:1798fe @ angular.js:1683(anonymous function) @ angular.js:31018i @ jquery.min.js:2fireWith @ jquery.min.js:2ready @ jquery.min.js:2K @ jquery.min.js:2
abp.js:285

It is talking about the ' abp.services.app' when trying to call the 'abp.services.app.session.getCurrentLoginInformations' methode from the appSession.js

When the 'app' is getting defined?? A few minutes ago, it was working beautifully .. Don't know suddenly what happened ..

Somebody please help me fast...

Showing 1 to 10 of 14 entries