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

Activities of "avanekar02"

Answer

This is the error with the url

Question

Hello this is the error i get on image load,

i am loading it under common\images\general folder

i have assigned permissions too for the folder

Sent you the login credentials for the site,

To Mimic the error, you need to do the needful.

after logging in on the left menus select category, click create new,

enter 'HomeDecor' for all fields check active and select recording option load any image from your local system press 'SAVE'

once logged in you can also try to change profile picture and see the other error.

Regards Anwar

using System.Threading.Tasks; using Abp.Application.Services; using Abp.Application.Services.Dto; using Samit.CmsProTest.School.Courses.Dto; using Abp.Domain.Repositories; using Abp.AutoMapper; using Abp.Linq.Extensions; using Abp.Extensions; using Samit.CmsProTest.Authorization; using Abp.Authorization; using System.Data.Entity; using System; using System.Collections.Generic; using System.Linq; using Abp.UI; using System.Diagnostics;

namespace Samit.CmsProTest.School.Courses { //[AbpAuthorize(AppPermissions.Pages_Tenant_Courselevels)] public class CourseLevelAppService : CmsProTestAppServiceBase, ICourseLevelAppService { private readonly IRepository<CourseLevel> _courselevelRepository;

    public CourseLevelAppService(IRepository&lt;CourseLevel&gt; courselevelRepository)
    //public CourseAppService(IRepository&lt;Course&gt; courseRepository, IRepository&lt;CourseDetail&gt; coursedetailRepository, IRepository&lt;CourseEdu&gt; courseeduRepository, IRepository&lt;Educator&gt; educatorRepository)
    {
        _courselevelRepository = courselevelRepository;
   
    }



    public ListResultDto&lt;CourseLevelListDto&gt; GetCourseLevel(GetCoursesInput input)
    {
        var courseslevel = _courselevelRepository
            .GetAll()
             .Where(p => p.Type == input.type)
             .WhereIf(
                !input.Filter.IsNullOrEmpty(),
                p => p.Name.Contains(input.Filter)
              )
            .OrderBy(p => p.Id)
            .ToList();

        return new ListResultDto&lt;CourseLevelListDto&gt;(courseslevel.MapTo&lt;List&lt;CourseLevelListDto&gt;>());
    }



    public async Task&lt;CourseLevelListDto&gt; GetCourseLevelForEdit(GetCoursesInput input)
    {
        var @courselevel = await _courselevelRepository
             .GetAll()
             .Where(e => e.Id == input.Id)
             .FirstOrDefaultAsync();

        if (@courselevel == null)
        {
            throw new UserFriendlyException("courselevel Could not be found, maybe it's deleted.");
        }

        return @courselevel.MapTo&lt;CourseLevelListDto&gt;();
    }



    public async Task CreateOrUpdateCourseLevel(CreateCourseLevelinput input)
    {
        if (input.Id.HasValue)
        {
            await UpdateCourseLevelAsync(input);
        }
        else
        {
            await CreateCourseLevelAsync(input);
        }
    }


    [AbpAuthorize(AppPermissions.Pages_Tenant_Courselevels_Edit)]
    protected virtual async Task UpdateCourseLevelAsync(CreateCourseLevelinput input)
    {
        Debug.Assert(input.Id != null, "input.CourseLevel.Id should be set.");

        var courselevel = _courselevelRepository.FirstOrDefault(Convert.ToInt32(input.Id));
        courselevel.Name = input.Name;
        courselevel.CourseDesc = input.CourseDesc;
        courselevel.ARCourseDesc = input.ARCourseDesc;
        courselevel.ARName = input.ARName;
        courselevel.Active = input.Active;
        courselevel.Type = input.Type;
        courselevel.Image = input.Image;

        await _courselevelRepository.UpdateAsync(courselevel);


    }

    [AbpAuthorize(AppPermissions.Pages_Tenant_Courselevels_Create)]
    public async Task CreateCourseLevelAsync(CreateCourseLevelinput input)
    {
        var courselevel = input.MapTo&lt;CourseLevel&gt;();
        await _courselevelRepository.InsertAsync(courselevel);

    }


    [AbpAuthorize(AppPermissions.Pages_Tenant_Courselevels_Delete)]
    public async Task DeleteCourseLevel(GetCoursesInput input)
    {
        await _courselevelRepository.DeleteAsync(Convert.ToInt32(input.Id));
    }






}

}

when i try the image upload from my page for example catalog and browse and select an image it gives the following 2 error

  1. Server Error in '/' Application.

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.

  1. {"message":"An error has occurred.","exceptionMessage":"There is an action CreateOrUpdateCourseLevel defined for api controller app/courseLevel but with a different HTTP Verb. Request verb is GET. It should be Post","exceptionType":"Abp.AbpException","stackTrace":" at Abp.WebApi.Controllers.Dynamic.Selectors.AbpApiControllerActionSelector.GetActionDescriptorByActionName(HttpControllerContext controllerContext, DynamicApiControllerInfo controllerInfo, String actionName)\r\n at Abp.WebApi.Controllers.Dynamic.Selectors.AbpApiControllerActionSelector.SelectAction(HttpControllerContext controllerContext)\r\n at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at Castle.Proxies.DynamicApiController1Proxy_5.ExecuteAsync_callback(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at Castle.Proxies.Invocations.ApiController_ExecuteAsync_5.InvokeMethodOnTarget()\r\n at Castle.DynamicProxy.AbstractInvocation.Proceed()\r\n at Abp.WebApi.Controllers.Dynamic.Interceptors.AbpDynamicApiControllerInterceptor1.Intercept(IInvocation invocation)\r\n at Castle.DynamicProxy.AbstractInvocation.Proceed()\r\n at Castle.Proxies.DynamicApiController`1Proxy_5.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.

yes,

i do have a Temp\Downloads folder and i get this error, i am using Angulatjs SPA application. even from my other pages i am not able to load images.

i have sent the credentials to login in to the site at you email. you can try to login and see the error i get.

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.

Regards Anwar

This is the error thrown when i try to change a profile picture or upload an image.

Please tell how to overcome this

Regards Anwar

i have posted 3 questions for the last week

can you please help me address those, regards Anwar

hello to be more precise this is the error i get when i try to change picture

{"message":"An error has occurred.","exceptionMessage":"There is an action CreateOrUpdateCourseLevel defined for api controller app/courseLevel but with a different HTTP Verb. Request verb is GET. It should be Post","exceptionType":"Abp.AbpException","stackTrace":" at Abp.WebApi.Controllers.Dynamic.Selectors.AbpApiControllerActionSelector.GetActionDescriptorByActionName(HttpControllerContext controllerContext, DynamicApiControllerInfo controllerInfo, String actionName)\r\n at Abp.WebApi.Controllers.Dynamic.Selectors.AbpApiControllerActionSelector.SelectAction(HttpControllerContext controllerContext)\r\n at System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at Castle.Proxies.DynamicApiController1Proxy_4.ExecuteAsync_callback(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at Castle.Proxies.Invocations.ApiController_ExecuteAsync_4.InvokeMethodOnTarget()\r\n at Castle.DynamicProxy.AbstractInvocation.Proceed()\r\n at Abp.WebApi.Controllers.Dynamic.Interceptors.AbpDynamicApiControllerInterceptor1.Intercept(IInvocation invocation)\r\n at Castle.DynamicProxy.AbstractInvocation.Proceed()\r\n at Castle.Proxies.DynamicApiController`1Proxy_4.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.

Hello

Deployed My web app on a hosting server, all runs well but when i try to change profile picture it gives internal server error 500

General Request URL:http://e-tdreeb.com/signalr/start?transport=webSockets&clientProtocol=1.5&connectionToken=H39U11JpJg96TNCHFAruOua7YI%2BQyvXXIKHbvH6ukVGsuiuK8nfCCXg0OJdRKk8YBSRaGQ6OmypY4YXJdV3EX7sTkfC%2Bx1XXZL%2FJxGfDDhSsYGWx%2BlfYLiF9b8dhp%2Bnh&connectionData=%5B%7B%22name%22%3A%22abpcommonhub%22%7D%2C%7B%22name%22%3A%22chathub%22%7D%5D&_=1486182056736 Request Method:GET Status Code:500 Internal Server Error Remote Address:182.50.151.86:80 Response Headers view source

ResponseHeader Cache-Control:private Content-Type:text/html; charset=utf-8 Date:Sat, 04 Feb 2017 04:29:11 GMT Server:Microsoft-IIS/8.5 Transfer-Encoding:chunked X-AspNet-Version:4.0.30319 X-Powered-By:ASP.NET X-Powered-By-Plesk:PleskWin Request Headers view source

RequestHeader Accept:text/plain, /; q=0.01 Accept-Encoding:gzip, deflate, sdch Accept-Language:en-US,en;q=0.8 Connection:keep-alive Content-Type:application/json; charset=UTF-8 Cookie:ASP.NET_SessionId=v5w41vbjlfotglkxrnyweeel; Abp.Localization.CultureName=en; __RequestVerificationToken=yFzOFZc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I_1XIxFGkO9uK-DfYSR2uPzSK-it5xA2 Host:e-tdreeb.com Referer:http://e-tdreeb.com/Application User-Agent:Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 X-Requested-With:XMLHttpRequest Query String Parameters view source view URL encoded

Query string parameters transport:webSockets clientProtocol:1.5 connectionToken:H39U11JpJg96TNCHFAruOua7YI+QyvXXIKHbvH6ukVGsuiuK8nfCCXg0OJdRKk8YBSRaGQ6OmypY4YXJdV3EX7sTkfC+x1XXZL/JxGfDDhSsYGWx+lfYLiF9b8dhp+nh connectionData:[{"name":"abpcommonhub"},{"name":"chathub"}] _:1486182056736

Showing 261 to 270 of 315 entries