Base solution for your next web application

Activities of "hodor"

Hello,

I want to return sweet alerts from controller to warn a user about customized errors according to my needs. I can accomplish this from service level but could not figure out controller level. I have referenced abp.UI in the controllers. I have changed the layout's html and css, but still including sweet alert's js and css files and it's working in the service level as a proof.

Thanks in advance.

Hello,

İ have installed brand-new visual studio 2017 and included required development tools from installer. Then I have opened core solution and got an error like :

"Error parsing the nested project section in solution file. A project with the GUID "{A2213374-BB48-48FD-BBD4-81E6A961D866}" is listed as being nested under project "{AFAA0841-BD93-466F-B8F4-FB4EEC86F1FC}", but does not exist in the solution." .

Then I re-opened visual studio and followed along other solutions in internet to fix it. But could not figure it out yet. So any suggestion would be appreciated. Thanks.

Hello,

For those who do not want to migrate to asp.net core yet, i think asp.net boilerplate mvc 5x should also support angular 2.

Please let us know, if you're planning on this template too.

Hello,

I need to find logined user role by his / her id to display a specific menu item or not. Is there a built-in method for doing this or i should handle it by myself ? Can anyone lead me. Thanks.

I was wondering that if your open source project asp.net boilerplate will also support angular 2 ? That would be great if so.

Hello,

I assume that i configured smtp settings accuretly as my provider informs me. I try manually to send or receive mail and accomplished. But when i try to register a new account or send forgot password link it gives me following error. I've also tried to implement my own custom mail system with the same credentials and it was working.

"User not local; please try a different path. The server response was: This mail server requires authentication before sending mail from a locally hosted domain. Please reconfigure your mail client to authenticate before sending mail."

Hello,

After i published mpa project to a hosting provider, i cannot upload my profile picture due to the following error.

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.

Below is the method that abp uses to upload picture, I do not want to interfere with abp's origin code, but i think i will have to do that. How should i do that. Thanks in advance.

public JsonResult UploadProfilePicture() { try { //Check input if (Request.Files.Count <= 0 || Request.Files[0] == null) { throw new UserFriendlyException(L("ProfilePicture_Change_Error")); }

            var file = Request.Files[0];

            if (file.ContentLength &gt; 5242880) //1MB.
            {
                throw new UserFriendlyException(L("ProfilePicture_Warn_SizeLimit"));
            }

            //Check file type & format
            var fileImage = Image.FromStream(file.InputStream);
            if (!fileImage.RawFormat.Equals(ImageFormat.Jpeg) && !fileImage.RawFormat.Equals(ImageFormat.Png))
            {
                throw new ApplicationException("Uploaded file is not an accepted image file !");
            }

            //Delete old temp profile pictures
            AppFileHelper.DeleteFilesInFolderIfExists(_appFolders.TempFileDownloadFolder, "userProfileImage_" + AbpSession.GetUserId());

            //Save new picture
            var fileInfo = new FileInfo(file.FileName);
            var tempFileName = "userProfileImage_" + AbpSession.GetUserId() + fileInfo.Extension;
            var tempFilePath = Path.Combine(_appFolders.TempFileDownloadFolder, tempFileName);
            file.SaveAs(tempFilePath);

            using (var bmpImage = new Bitmap(tempFilePath))
            {
                return Json(new MvcAjaxResponse(new { fileName = tempFileName, width = bmpImage.Width, height = bmpImage.Height }));
            }
        }
        catch (UserFriendlyException ex)
        {
            return Json(new MvcAjaxResponse(new ErrorInfo(ex.Message)));
        }
    }

Hello,

My project's current entity frame work in web.config is <compilation debug="true" targetFramework="4.6.1"> like that. I have published it to a hosting provider. Their server does not run 4.6.1 so as they say if i revert it to 4.5.2 it would work. But i was wondering if something would occur abp side if i do it?

Does anyone have any idea?

Thanks in advance.

Hello,

I'm able to create a user by using facebook login that abp provides. But after that, even if the actual account has been set it does not automatically logs me in and second time i try to login with facebook button it's again tries to create an account with the same credentials and throws duplicate account kind of error. Any work around from someone who already handled this sutiation.

Question

Hello, for some reason, i want to rename my project. If i follow through [http://stackoverflow.com/questions/2043618/proper-way-to-rename-solution-and-directories-in-visual-studio]) this example would i acquire it succesfully since abp framework holds a lot of feature behind the scene. Did anyone try this before?

Showing 1 to 10 of 10 entries