GithubHelp home page GithubHelp logo

net's Introduction

This repository has been split into multiple dedicated repositories each representing particular nuget. You can find the new home repository for jsreport .net sdk v2 here:

https://github.com/jsreport/jsreport-dotnet

net's People

Contributors

laina-mater avatar pofider avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

net's Issues

Run two embedded servers in parallel - same server

I am using the embedded version of jsreport on a project that is hosted on a server with balancing. We have two IIS instances being controlled by a nginx server. I tried to configure each instance to start the jsreport on different ports, for example, one in door 2000 and the other in 3000, but what starts finally ends the first.

If I boot the door in 2000 it works to the door 3000 starts. I wonder if there is the possibility of using two servers in parallel, or if you can add this feature.

jsreport.Embedded 1.0.3.0 nodejs error

@pofider

getting below error when application starts.
Application Start code:

EmbeddedReportingServer = new EmbeddedReportingServer()
{
RelativePathToServer = "../App_Data"
};
EmbeddedReportingServer.StartAsync().Wait();

Failed to start jsreport server, output: jsreportTest\App_Data\node_modules\bluebird\js\release\promise.js:606:10)
at Async._drainQueue (C:\jsreportTest\App_Data\node_modules\bluebird\js\release\async.js:138:12)
at Async._drainQueues (C:\jsreportTest\App_Data\node_modules\bluebird\js\release\async.js:143:10)
at Async.drainQueues (C:\jsreportTest\App_Data\node_modules\bluebird\js\release\async.js:17:14)
2017-08-12T10:16:03.250Z - [31merror [39m: Error occured during reporter init Error: Unsupported store provider fs
at DocumentStore.init (C:\jsreportTest\App_Data\node_modules\jsreport-core\lib\store\documentStore.js:37:11)
at ensureStarted.then.then.then.then.then.then.self.initializeListeners.fire.then.self.extensionsManager.recipes.push.name (C:\jsreportTest\App_Data\node_modules\jsreport-core\lib\reporter.js:108:33)
at tryCatcher (C:\jsreportTest\App_Data\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\jsreportTest\App_Data\node_modules\bluebird\js\release\promise.js:512:31)
at Promise._settlePromise (C:\jsreportTest\App_Data\node_modules\bluebird\js\release\promise.js:569:18)
at Promise._settlePromise0 (C:\jsreportTest\App_Data\node_modules\bluebird\js\release\promise.js:614:10)
at Promise._settlePromises

Plans for release 2

Thanks to #23 we now support .net core. I would like to add in the next days additional improvements and release c# client libraries for jsreport in version 2.

This should mainly include:

  • split packages client, mvc and embedded into separate github repositories so we can better version git and nugets
  • enable some CI
  • introduce c# wrapper for the new jsreport.exe single executable
  • possibly switch from too dynamic entities in jsreport.client into static types
  • we now support also main azure web apps running jsreport.exe which needs to be documented out

Not support .NET Core

I'm working on a project with Web Application ( .NET Core) RC2 and I see no support. This is correct?

SynchronizeTemplatesAsync removed?

Hi,

I'm about to upgrade from 0.3.0 to the latest version and have noticed that SynchronizeTemplatesAsync has been removed from IReportingService. Is there a new suggested approach for synchronising templates with the server?

Many thanks,

Ant.

RenderAsync - no way to cancel

Seems like overloads for RenderAsync() that take a CancellationToken would be a good idea. Should just be a matter of passing the token through to HttpClient.PostAsync()?

Security Issue: Current version on Nuget (1.0.3) disables all SSL Certificate checks for entire app domain

Hi guys,

I just stepped into your .net client library during debugging an unrelated issue, and by chance noticed this line:

ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true;

Are you aware this disables all outgoing SSL connection's server certificate validation? For the entire app, not just your library!

We were using this version in production, and our app integrates with many other APIs over HTTPS. Quite scary that we would have been getting no cert validation for all this time.

Anyway, I can see your latest code no longer uses this, but the official version on nuget is still 1.0.3 with this security hole in it. I really think you should remove it from nuget, or ideally push up a 1.0.4 fix (assuming the 2.0 beta release is not ready yet).

Updating embedded nuget package

Updating nuget package will not update jsreport unzipped folder. It should check the package.json or last modification date and assure the jsreport unziped folder has the same content after update.

Include external css file

Hi Jan,
Great job man! This is a great, time-saver tool. I have a couple issues trying to include external css files even when I am using the absolute url to these resources. I will like to apply the bootstrap.css styles to my report and I include it like this in my razor layout template:

<title>@ViewBag.Title - WOMS </title>
<link rel="stylesheet" href="@Url.ContentAbsUrl("~/Content/bootstrap.css")" />
@RenderBody()

© @DateTime.Now.Year - Seaboard Marine

"ContentAbsUrl" is an extension that generate an absolute url from a relative one.

I have tried to include a custom style css i.e Styles.css too to see if the issue is with the bootstrap file but It doesn't work either.
I have also been looking at your mvc example that works perfectly but I can not realize what I am missing.
I use your way to set the href attribute (href="@(Request.Url.Scheme + "://" + Request.Url.Authority + "/Content/Site.css")") but no luck. Can help me out with this?

I also notice that the title of the page didn't work neither in your example or mine.
Thank you in advance

.Net 4.0 Support

Hello, can't seem to be able to install jsreport embedded on a .net 4 project, is there compatibility only with 4.5? Because my target machine for the program is still running Windows XP.

Thanks in advance <3

jsreport.Embedded configuration files

It should be able to pass configuration file to jsreport.Embedded from VS solution so people don't have to rezip the whole jsreport-net-embedded.

waitForJs

Perhaps we are using it incorrectly, but we have been trying to use waitForJs (or printDelay) to prevent a race condition that is happening when using Highcharts. I added this property to the phantom object in the server configuration, set to true, and did not add the corresponding script change to our report. I restarted the service to pick up the configuration change and tried to run a report. Contrary to my expectations, the report was generated almost immediately.

If this is supposed to go in the report render request, it doesn't appear to be exposed by the .NET client library. What are we missing?

jsreport.zip file not found.

Hi
I downloaded mvc example, ran install.cmd successfully, but when I start the application I get:

System.InvalidOperationException: C:\Mvc\Mvc\bin\jsreport\jsreport.zip file not found.

at

EmbeddedReportingServer.StartAsync().Wait();

MVC Examples referencing Nuget packages not available

The Mvc examples solution is referencing jsreport nuget packages that are not available on nuget.

This is the listing from the github repository:

<package id="jsreport.Client" version="1.1.2" targetFramework="net45" />
<package id="jsreport.Embedded" version="1.0.80" targetFramework="net45" />
<package id="jsreport.MVC" version="1.1.2" targetFramework="net45" />

The latest packages I can find on nuget are:

<package id="jsreport.Client" version="1.0.3" targetFramework="net45" />
<package id="jsreport.Embedded" version="1.0.3" targetFramework="net45" />
<package id="jsreport.MVC" version="1.0.0" targetFramework="net45" />

With the available packages, I get the error of "EnablejsReport could not be found".

@pofider

multiple problems with jsreport embedded server Node.exe [2]

I'm getting many issues when the IIS server has more than one app that uses the embedded server.

The server stops after the restart of the pool;
The node.exe freeze and the process do not answer more;
The node.exe begins consume a lot of memory (like 1.5gb) then it's killed;

In other words, it seems like that there is a problem with the node.exe and jsreport.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.