Base solution for your next web application

Activities of "oaalvarado"

Hi,

In the documentation there are instructions only to deploy to a website and not to a virtual directory in IIS. Could you please tell me the changes I need to make to be able to publish to a virtual directory in IIS? I'm getting the following errors:

Failed to load resource: the server responded with a status of 404 (Not Found)
poppins-v5-devanagari_latin-ext_latin-regular.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
poppins-v5-devanagari_latin-ext_latin-500.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
poppins-v5-devanagari_latin-ext_latin-300.woff2:1 Failed to load resource: the server responded with a status of 404 (Not Found)
poppins-v5-devanagari_latin-ext_latin-500.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
poppins-v5-devanagari_latin-ext_latin-300.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
poppins-v5-devanagari_latin-ext_latin-regular.woff:1 Failed to load resource: the server responded with a status of 404 (Not Found)
poppins-v5-devanagari_latin-ext_latin-500.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
poppins-v5-devanagari_latin-ext_latin-300.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)
poppins-v5-devanagari_latin-ext_latin-regular.ttf:1 Failed to load resource: the server responded with a status of 404 (Not Found)

The application is looking for the resources in the root of the website and not in the virtual directory.

Thanks.

Hi maliming,

ASP.NET Zero Core MVC JQuery version is 7.0.0. If I run the application in Visual Studio 2017 it runs fine. If I publish it to a virtual directory, the errors in my first post are generated. As a test, I created a website in my computer and deployed the application to it, and it worked fine. But, as a requirement, I need to deploy the application to a virtual directory in a web server.

I read the comments from the link you posted, but they are related to an Angular project deployed to Azure app service, so the issues are different.

Thanks.

Hi maliming,

I didn't know that ASP.NET Core does not support IIS Virtual Directory. I will try to deploy it to an IIS sub-application to see if it works. I'll let you know the results.

Thanks.

Hi maliming,

I tried to deploy to a website sub-application and I still get the errors. I'm guessing I need to update the href in layout.cshtml and login.cshtml to add the ~ so they can get the proper application path? Can you tell me which files I need to update the href?

Thanks.

Thanks Maliming for your reply. I'll do what you suggested.

Hi,

I'm using ASP.NET Zero Core MVC JQuery version is 7.0.0. I need to create a form with multiple fields (15 or more) and save those fields in multiple tables. What is the best way to achieve this? I tried to create a View with all the fields and then add a submit button to call a Save action in the Controller, but I get an error: HTTP Error 415.

Hi,

Thanks exInt, I'll check the links you provided.

Maliming, the ContentType is 'application/x-www-form-urlencoded'.

I tried to do the call from javascript like this:

(function () { $(function () { var _portsAppService = abp.services.app.ports;

    var portForm = null;
           
    $('#Save').click(function () {
        portForm = $('#CreatePortForm').serializeFormToObject();
        
        _portsAppService.create({
            port: portForm
        }
        );
    })
            
});

})();

and I'm getting a Validation error message: "Your request is not valid!", which is correct, because I don't know how to call the validation from javascript. How can I call the validation from javascript for a View?

Thanks.

I did some searching and I think the code in in the Login.cshtml, Login.js, EmailActivation.cshtml and EmailActivation.js files is what I need to do. I'm I right Maliming?

Hi,

Remove "Trusted_Connection=True;" from the connectionString, if you are not using Windows Authentication. Looks like you are using a SQL Server user to connect to the database.

I'm still getting error HTTP Error 415:

This is the Header info from Developer Tool:

Showing 1 to 10 of 27 entries