Error when trying to rename Report1.cs

7 posts, 0 answers
  1. Simon
    Simon avatar
    52 posts
    Member since:
    Sep 2018

    Posted 12 Mar Link to this post

    Hi,

    In my project I have a report with the name Report1.cs .

    Obviously it isn't so easy as it seems to be to rename a report in a ReportLibrary.

    Right click with mouse and then rename.

    From Report1.cs to "ReportTemperature.cs".

    So far so good.

    But when I  run my project I get a obstinate error.

    Please see the attachement.

    The funny thing is ...The file does not exist in the folder.

    Has anyone experience with this thing?

     

     

  2. Neli
    Admin
    Neli avatar
    100 posts

    Posted 15 Mar Link to this post

    Hi Simon,

    Basically, when you rename the report, then a pop-up window appears if you would like to perform a rename of all references to the code element (check the attached 'RenamePreport' screenshot). If you selected "Yes", it should be fine. If not, click on ctl+F and select Replace in Files. Then in Find what, fill Report1 and in Replace with -> ReportTemperature (check the attached 'FindReplace' screenshot). Select Replace All.
    With both approaches, I am able to rename reports and then run them successfully. I am not sure if I understood the issue correctly. Is the ReportTemperature file missing after renaming?

    Regards,
    Neli
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Simon
    Simon avatar
    52 posts
    Member since:
    Sep 2018

    Posted 15 Mar Link to this post

    Hi Neli,

    I have done it, who you suggested.

    But when I run the project I get an error message that the file "ReportLibrary1.Report1.ressources" could not be found on path

    "TelerikWebApp2_Portierung\ReportLibrary1\obj\Debug\"

    Should I delete the content of this folder?

     

    Best Regards

    Simon

  4. Simon
    Simon avatar
    52 posts
    Member since:
    Sep 2018

    Posted 15 Mar in reply to Simon Link to this post

    Update
  5. Simon
    Simon avatar
    52 posts
    Member since:
    Sep 2018

    Posted 15 Mar in reply to Simon Link to this post

    postscript
  6. Neli
    Admin
    Neli avatar
    100 posts

    Posted 20 Mar Link to this post

    Hello Simon,

    Basically, the bin and obj folders are usually safe to delete since they are automatically generated when the solution/project is being built by Visual Studio. For that reason, you can delete your Debug folder which is contained in obj. Another thing that you can also try is to Rebuild the project which cleans it and build it again.

    Let me know how it goes.

    Regards,
    Neli
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  7. Simon
    Simon avatar
    52 posts
    Member since:
    Sep 2018

    Posted 20 Mar Link to this post

    Hi Neli,

    I haven't got any error messages more.

    I don't know exactly why, but it works.

    thank you.

     

Back to Top