This is a migrated thread and some comments may be shown as answers.

Error when trying to rename Report1.cs

6 Answers 183 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 12 Mar 2019, 03:34 PM

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?

 

 

6 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 15 Mar 2019, 09:16 AM
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
0
Simon
Top achievements
Rank 1
answered on 15 Mar 2019, 01:16 PM

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

0
Simon
Top achievements
Rank 1
answered on 15 Mar 2019, 01:17 PM
Update
0
Simon
Top achievements
Rank 1
answered on 15 Mar 2019, 01:28 PM
postscript
0
Neli
Telerik team
answered on 20 Mar 2019, 07:17 AM
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
0
Simon
Top achievements
Rank 1
answered on 20 Mar 2019, 08:50 AM

Hi Neli,

I haven't got any error messages more.

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

thank you.

 

Tags
General Discussions
Asked by
Simon
Top achievements
Rank 1
Answers by
Neli
Telerik team
Simon
Top achievements
Rank 1
Share this question
or