Base solution for your next web application

Activities of "doubledp"

Nevermind, it appears that the implementation has changed on the new version of ASP.NET Zero versus the older version of it.

You use to be able to call .success(), but will call .then() from now on.

Thank you, I thought as such as I saw no code in ASP.NET Zero template to do this.

Just to give some context...

This is a intranet site and should only allow domain users access. In the web.config the database connection has been set as a trusted connection, which from what I understand indicates that it will be using Integrated Security (AKA Windows Authentication). In the core module, I have also set Multi Tenancy to false and enabled LDAP authentication. The web application is running on one server with the database running on a remote server Both of the servers are on the domain

Maybe I am misunderstanding something, but surely it must take me to the Login page for me to enter AD account details which would then be passed to the remote SQL server?

I think I may have found where It is generating the recursive ReturnURL, but don't know how to fix this. Please see below:

public virtual async Task<JsonResult> Login(LoginViewModel loginModel, string returnUrl = "", string returnUrlHash = "")
        {
            CheckModelState();

            _unitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant);

            var loginResult = await GetLoginResultAsync(loginModel.UsernameOrEmailAddress, loginModel.Password, loginModel.TenancyName);

            if (loginResult.User.ShouldChangePasswordOnNextLogin)
            {
                loginResult.User.SetNewPasswordResetCode();

                return Json(new MvcAjaxResponse
                {
                    TargetUrl = Url.Action(
                        "ResetPassword",
                        new ResetPasswordViewModel
                        {
                            UserId = SimpleStringCipher.Encrypt(loginResult.User.Id.ToString()),
                            ResetCode = loginResult.User.PasswordResetCode
                        })
                });
            }

            await SignInAsync(loginResult.User, loginResult.Identity, loginModel.RememberMe);

            if (string.IsNullOrWhiteSpace(returnUrl))
            {
                returnUrl = Url.Action("Index", "Application");
            }

           ]if (!string.IsNullOrWhiteSpace(returnUrlHash))
            {
                returnUrl = returnUrl + returnUrlHash;
            }

            return Json(new MvcAjaxResponse { TargetUrl = returnUrl });
        }

As a side note, I have specified a RedirectToAction("Index", "Application") within the Index method of the Home controller to take me directly to the web app instead of the landing page. Could this have something to do with the problem I am be presented with?

Hi,

You can find the complete Metronic theme pack on GitHub.

Here is the link:

<a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/releases">https://github.com/aspnetzero/aspnet-zero/releases</a>

Thank you. I have done some research and in the process of setting up Web Deploy Publishing to be used within IIS.

Hi,

Thank you for this. I have seen that post.

Not quite sure what Halil means by if you are not in a UOW there would be no problem. Another thing that I don't get is when I remove the inheritance of AppServiceBase my code works correctly.

I am hoping Halil can point me in the right direction.

Ok it seems like I managed to track down what is causing this issue; the original layout's script doesn't seem to work correctly.

I have changed the code in AppBundleConfig as follows:

From

bundles.Add(
              new ScriptBundle("~/Bundles/App/metronic/js")
                  .Include(
                      "~/metronic/assets/global/scripts/app.js",
                      "~/metronic/assets/admin/layout/scripts/layout.js"
                  ).ForceOrdered()
              );

To

bundles.Add(
              new ScriptBundle("~/Bundles/App/metronic/js")
                  .Include(
                      "~/metronic/assets/global/scripts/app.js",
                      "~/metronic/assets/admin/layout4/scripts/layout.js"
                  ).ForceOrdered()
              );

This issue is not related to ASP.NET Zero, but rather the Metronic theme.

Thank you Halil :)

I've been playing around with different naming conventions and I understand now how it works. The thing that threw me off was thinking that I have to inherit from IApplicationService, not knowing that I can create my own interface and inherit from that.

After going back to the documentation I realize now that I did not read properly to understand it fully.

Sorry for the unnecessary question :oops:

Hi Halil, any advice on this?

Hi,

I am also fairly new to using the ASP.NET Zero template project and the ASP.NET Boilerplate framework so I will answer as best I can.

  1. Is there a guide for creating new pages accessed via the menu on the dashboard page in the MPA model? Are there any template pages to work with other than the dashboard page? Do I need to create new folders under the mpa/views or just new .cshtml pages within "dashboard"

Here is a link with a tutorial on developing the MPA version: [http://www.aspnetzero.com/Documents/Developing-Step-By-Step-MPA])

I develop using the SPA version, but I would imagine that there would also be pages for Users, Roles, Tenants, AuditLogs, etc for the MPA version. In terms of new folders; I would suggest that you do create separate folders for your different application function areas. This will keep your project structured and organised.

How do I add language-neutral/common language items to the navigation menu without having to use the L("item") function? For example, if I simply wanted the text "Microsoft" or "Symantec" as menu or item title?

L("string") is just a method that will translate the string based on your localization setup, so I am sure by omitting the call to the method, it will be treated as a normal string.

What is the version of the Metronic theme in the current ASP.NET Zero project? 4.5.2? I tried this version in my own environment and found that the datatables do not seem to render correctly anymore - the first column in the row does not highlight when you hover over a row.

Yes Metronic v4.5.2 is being used ASP.NET Zero v1.6.1 I can't speak for the use of datatables, as I am using ui-grid; so maybe the architect of this framework and project template could shed some light on this for you.

When I want to publish to a web server using VisualStudio, is it just the ProjectName.Web project I publish?

Can't really answer you on this one, as I am still in development and would also like to know what would happen to the WepApi assembly as the APIs gets generated dynamically. For the other assemblies I would imagine that they will be included in the Web assembly during the publishing of the project. Again the architect is best suited to answer this.

One thing could be a bit of a concern to you and that is that this framework and project template has been written in C#, so it might be a bit of struggle for you to get everything to work accordingly if you intend on using VB still. From what I understand is that you can mix C# and VB.Net, but only in the same solution, it cannot be part of the same assembly.

Showing 1 to 10 of 35 entries