Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Cannot read property 'AbpWeb' of undefined #39


User avatar
0
dinhienhy created

Hi all,

After update latest Abp framework from nut-get, It throw an exception in javascript (Please take a look at attachment image)

Please give me some advice to fix it,

Thanks,


6 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    Is this script included in your page:

    <script src="/AbpScripts/GetScripts" type="text/javascript"></script>

    If so, can you check if it contains something like that:

    abp.localization.values['AbpWeb'] = {
            'AreYouSure' : 'Are you sure?',
            'Cancel' : 'Cancel',
            'InternalServerError' : 'An internal error occured during your request!',
            'ValidationError' : 'Your request is not valid!',
            'Yes' : 'Yes'
        };
    
  • User Avatar
    0
    dinhienhy created

    Hi hikalkan,

    1. <script src="/AbpScripts/GetScripts" type="text/javascript"></script> bellow script has been include to page.
    abp.localization.values['AbpWeb'] = {
            'AreYouSure' : 'Are you sure?',
            'Cancel' : 'Cancel',
            'InternalServerError' : 'An internal error occured during your request!',
            'ValidationError' : 'Your request is not valid!',
            'Yes' : 'Yes'
        };
    

    Do you mean that code in abp.js? If so, it doesn't contain bellow code.

  • User Avatar
    0
    lcyhjx created

    I encountered same issue. I re-produced it and fixed it as following: 1 go to <a class="postlink" href="http://www.aspnetboilerplate.com/Templates">http://www.aspnetboilerplate.com/Templates</a> to create new project (AngularJs + Entity Framework) 2 run in local, works fine - abp.dll version is 0.5.5.0 3 Go to Nuget, update abp.dll version to 0.5.12.1 4 Run the project again, the exception "Cannot read property 'AbpWeb' of undefined" is thrown 5 Go to Nuget, update abp.web.dll to 0.5.12.0 6 run the project again, the issue is disapper. May help you.

  • User Avatar
    0
    lcyhjx created

    1 go to <a class="postlink" href="http://www.aspnetboilerplate.com/Templates">http://www.aspnetboilerplate.com/Templates</a> to create a new project (AngularJs + EntityFramework) 2 Run it in local, works fine. the version of abp.dll is 0.5.5.0 3 go to nuget, update abp.dll to 0.5.12.1 4 run it again, the error "Cannot read property 'AbpWeb' of undefined" is thrown 5 go to nuget, update abp.web.dll to 0.5.12.0 6 run it agian, the issue is disapper, works fine agian. May help you.

  • User Avatar
    0
    hikalkan created
    Support Team

    Thanks a lot for the information sharing.

  • User Avatar
    0
    lcyhjx created

    My pleasure.