FastReport - IIS permission

I use FastReport.dll and FastReport.Web.dll in ASP.Net application.
When try run report i get error
        Message:  Requested registry access is not allowed
    Source: mscorlib
    System.Security.SecurityException: Requested registry access is not allowed
    w Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
    w FastReport.Utils.Res.get_LocaleFolder()
    w FastReport.Utils.Res.LoadDefaultLocale()
    w FastReport.Utils.Config.LoadConfig()
    w FastReport.Utils.Config.Init()
    w FastReport.Report..cctor()
I try to run IE browser as administrator , unfortunately.
Maybe i have to set permisson on IIS , but where?

Where is the problem?

Comments

  • edited 10:38PM
    have you set "FastReport.Utils.Config.WebMode = true" in global.asax => application_start()
  • edited 10:38PM
    I have set 'false' but on my computer settings is no matter. On another computer, the settings is important.
    Can i set this parameter in config file for fastreport ( without change dll file ). I don't want ( i can't ) compile project.
  • edited 10:38PM
    please google with keyword "web.config registry access".

    and i found : I do not think giving a web site access to the registry is a good idea because of the possible security implications.

    and this link, http://forums.codecharge.com/posts.php?post_id=67135
  • edited December 2016
    Yes i know. Now i want change webmode without compile dll file. When I set webmode on false opensubkey function is ignored ( i check it on debug). Can i set this parameter in config file for fastreport ( without change dll file ). I don't want ( i can't ) compile project.
  • edited 10:38PM
    you need fastreport.config on web server
  • edited 10:38PM
    Where create ( which folder ) this file , and what write in this file to set webmode. Have you any example?
  • edited 10:38PM
    install fastreport on your web server, that's why on development computer, you don't need to set webmode = true
  • edited 10:38PM
    I can't install fastreport on web server. I have to do it by Fastreport.config or create new dll file. I prefer first solution.

Leave a Comment