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 2:49AM
    have you set "FastReport.Utils.Config.WebMode = true" in global.asax => application_start()
  • edited 2:49AM
    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 2:49AM
    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 2:49AM
    you need fastreport.config on web server
  • edited 2:49AM
    Where create ( which folder ) this file , and what write in this file to set webmode. Have you any example?
  • edited 2:49AM
    install fastreport on your web server, that's why on development computer, you don't need to set webmode = true
  • edited 2:49AM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.