Base solution for your next web application

Activities of "paul lee"

Hi All,

Ok, I have re-read the documentation page and kinda missed the injecting the ISettingManager to my BackgroundWorker and from the constructor I can then assigned it to the property exposed by BackgroundWorkerBase base class.

However, I read on top of the documentation page that I need to implement ISettingStore before the settings will be read from database. It also talked about Module Zero already implemented this.

So, in my project I am also using Module Zero, then do I need to implement ISettingStore or I can just used the implementation from Module Zero?

Would be great if someone can point me to the right direction.

Thank you very much.

Paul

Thanks daws, you are the man.

I have got it running and I am using the Console App route for now. Might want to move onto Windows Service later.

Thank you very much.

After some reading up on SO, I now understand that sending the file as a response of an ajax request is not possible. So I now want to try something like this:

  1. When the user wants to export some data to PDF, I use ApplicationService to Enqueue the document generation job in Hangfire. I am using SQL Storage for jobs.

  2. Inside the Background Job it will retrieve all the data (job control and related data from DB) then go off and generate the document. Finally it saves the file in a folder on the server.

  3. There should be something to keep polling the Job status(but I am not sure what?), when the job status changed to READY, it then sends a SignalR message to client (download URL inside the message payload)

  4. When the client received the message, it will trigger a File Download action to download the file from server.

What I have tried now:

  1. I have the ApplicationService successfully enqueued job in both local and remote Hangfire server, I have verified this with the use of Hangfire dashboard

  2. I have also have the Background job to successfully generate, store the file to a specific folder and updated the job status to READY in DB. I have verified this by running sql queries to check the data records.

  3. I am stuck on this point, I am not sure will the polling of job status be done in the Hub or using another recurring job or should the Hangfire Job asks the Hub to send a message to the specific user at the end of the Background job execution?

  4. I have done a MVC controller with FileStreamActionResult ready for accepting the download requests from the clients.

So what am I missing?

Thanks.

Yes, both classes are in the Core project. The same setup as one of your wonderful samples. However, I can't get it to work.

Hi there,

Have you checked if you have the Web project set as start-up project?

Have you checked in the App.config or Web.config in the start-up project having the correct connection strings, userId and Password? Also please check if you are connecting to the correct database.

Paul

Hi,

I am on the same boat as the OP and due to the limitations in my organisation, it is not possible for me to update the .NET framework version to v4.6.1 as required by Abp v0.8.0.1.

In the mean-time I tried to download the source of Abp-master and recompile to target 4.5.2, however, I am getting a lot of errors and not sure how to proceed further.

So how can anyone that are stuck with .NET framework v4.5.2, still be able to deploy Abp successfully?

  1. Are there any back version which are not too different in feature that supports v4.5.2?
  2. Are there specific instructions to recompile Abp to target v4.5.2?
  3. How long or how much effort will be involved to add support for targeting at lease the 4.5 and 4.6 series of .NET?

-- Edit to add one more idea 4. Is it possible to make available a feature on the website that can generate templates that are based on Abp v0.7.8.0? -- End Edit

I have opened an issue as suggested by hikalkan on GitHub.

Thank you

It turns out to be a data problem, forgot to link the AbpUser with the default Company row, therefore, no Company name to be displayed.

I haven't changed the private Set's on the Entity and it seems to be working just fine.

Thank you very much!

Hi Halil,

I would like to take a stab at the problem but I need some information on how the JavaScript proxies are being generated by the framework at the moment. However, I could not find the info from ABP documentations. Will you be kind enough to explain briefly about this process?

Thank you!

Hi all,

I am in a similar situation, but my problem comes from DTO Data Validation failed on the server side, however, all I have got from the pop-up windows is "Your request is not valid."

I have added all the DataAnnotations to the Input DTO with ErrorMessage set, but I can't get them to be displayed in that big pop-up.

The following is a sample of one Property from the AddressInput (DTO):

[Required(ErrorMessage = "Unit in Address is required")]
    [StringLength(5
                                , ErrorMessage = "Unit in Address can not be longer then 5 characters")]
    public string Unit { get; set; }

So what do we need to do to get these messages displayed in that pop-up?

Showing 1 to 9 of 9 entries