Deploying solution on Windows Server



  • @shalinparmar - nice! what did the trick ?



  • @projectmavericks setting it to "Local System" and "CORRECT APPLICATION POOL" (so silly of me using old app pool due to clogged Dev environment!!) did the trick! phew......but not sure the "Service Account" that we are creating as part of Deployment will get that kind of privilege and hence I am asking what exact privilege is JSReport looking for when deployed on IIS.



  • well, I do not have a answer for that. Perhaps, @jan_blaha or @bjrmatos could give us more insight on this (They have suggested this change on another forum post - https://forum.jsreport.net/topic/224/viewing-studio-reports-in-mvc-framework/25 ). Read up if you want to get the context.

    I also have a question unanswered -
    On what path does the jsreport.exe generally sit ?
    On windows server I found it in C:\ Windows \Temp\ .jsreport and on local win 10 machine it was in C:\ Users \ <username> \ .jsreport

    So maybe a part of the answer to this could also help you in understanding what privileges would be required. ;)



  • @projectmavericks @jan_blaha @bjrmatos I tried putting the JSReport temp to different drives and folders but it seems that it requires "Local System" privilege irrespective of that. Can you please confirm what exact privilege it requires from "Local System" to run this successfully when configured on IIS App Pool.



  • On what path does the jsreport.exe generally sit ?

    You can find it in Temp\jsreport-[v]-[hash]
    The temp directory used for storing temporary files like generated html is Temp\jsreport-temp\
    The storage for socket files required by jsreport.exe is in [current user home]\.jsreport

    The last location requires Local System app pool user otherwise IIS targets home directory somewhere to windows directory where is usually not allowed to write anything. We have an open issue to change this and perhaps unite it https://github.com/jsreport/jsreport-cli/issues/5



  • Thanks @jan_blaha that brings alot of clarity. Thank you!



  • @jan_blaha Thanks for your clarification.

    Instead of "Local System" you can see the "Load User Profile" to true for IIS 7+ on your server, so that your "Service Identity" can create the JSReport socket files in "User Profile" directory and it doesn't get into any other temp folder where you won't have access.



  • Ok, thanks for recommendation.



  • Just announcing that the latest jsreport.Local and jsreport.Binary are now using by default the temp path to store its temp files. You should have no issues running it with iis and default config now.



  • perfect Thanks!



  • Hi,

    i am seeing this error. i am building the html tags based on dynamic data and passing it to rs.RenderAsync method.
    its working locally, but when i deploy on IIS . it doesn't work. application pool is running on service account. can you please help?

    Server Error in '/jsrports' Application.

    Could not find file 'C:\WINDOWS\TEMP\jsreport-temp\meta80f62e86-18a7-4394-b264-f2dcbb3af9ba'.

    Packages version :
    jsreport.Client.2.0.2
    jsreport.Local.1.0.3
    jsreport.Types.1.8.3
    jsreport.Binary.1.8.2
    jsreport.Shared.1.0.1

    thanks,
    Vikram


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.