Report preview cannot find Data source folder - visual-studio-2012

When I try to preview report in Visual Studio 2012 Designer I am getting an error:
An error occurred during local report processing.
An unexpected error occurred in Report Processing.
An error occurred during local report processing.
Error in the application.
Could not find a part of the path '...\bin\Debug\Data Sources\SomeDatasource.rds'.
Couple remarks:
There is a valid data source in project.
When I build project it creates flat (no folders) structure of reports, datasets and datasources in bin\Debug folder
Data Source folder (along with other folders) is defined for deployment only
When I removed folders in deployment settings, it is still not working
It might be related to installing the latest SSDT (11.1.40403.0) yesterday... however right after installing everything worked
Everything worked in this configuration so far...

1) open the report definition's xml by right click -> view code
2) browse to Report -> DataSources -> DataSourceReference
3) replace "/Data Sources/MyDS" with "MyDS"
This clearly should have been patched by now!

I got this error on deployment because the .rds file was not yet made in the deployment folder. My data source was under Shared Data Sources. I fixed it by building the .rds file in Visual Studio like so.
Right click on .rds file in question.
Click Build
This creates the .rds file in the folder that is being used for deployment.

I created a "Data Sources" folder under .../bin/Debug/ , and copied the data source items into it. I tried the above but this is what solved it for me. (SSDT 2017, working with SQL 2014 SSRS files )

Related

Can't create Sample Data Directory - Android Studio

I"m trying to Create a sample data directory, using Android Studio, by clicking on app in the project view and then right mouse click to find the menu item New > Sample Data Directory.
It is not working.
Creating the directory via android studio doesn't always work. You may need to create the directory manually in your directory structure (at /app/sampledata/) without using Android Studio. Once you create it (e.g., via Windows Explorer) it should show up in Android Studio. See the the following answer for more information about sample data in general: How to put new placeholder resources into Android Studio project ("tools:sample" resources)?
"Unlike resources like images, fonts, etc. The sample data does not go in /res/ (they are not compiled with the app, hence. It is probably easier to filter them out by putting them in a totally separate directory). They go in /app/sampledata/, for example: /app/sampledata/image.png."
You can create a sample data directory in Android Studio itself by following the below steps:
Change the view of directory structure from Android to Project as follows
Right click app folder and select New->Directory
Finally, give a name to your directory, in your case, it should be sampledata
I have already created sampledata directory that's why it says "Directory already exists".
That's it. You have done it. Remember that Android Studio also supports loading sample data from a json file. All you have to give is fully qualified name of the key residing in the json file.
Ex- if your json file contains key name inside a Json Array student, then you have to specify it as "#sample/your_student_file.json/student/name" to use values present in key name.
Unless your issue happens to be different, this is a known issue that only affects Windows. As I've found, it has something to do with 'C:\' in the file path.
https://issuetracker.google.com/issues/124553391
As Shawn mentioned, you need to manually create the directory.
I've been unable to get the images to actually display in the previewer, which I suspect may also be caused by the file path bug.
Inside the app folder in file explorer, You can create a new folder (sample data) which will be reflected in your android studio.

Project not running in myeclipse

I copied the project(folder) into the myeclipse environment folder and when i try to run it , it is giving the following error :
Problems occurred opening the selected resources.
The project description file (.project) for 'activity tracker' is missing. This file contains important information about the project. The project will not function properly until this file is restored.
activity tracker is the name of the project
How do i generate this file ?
i am currently running
MyEclipse Enterprise Workbench Version: 8.6
Delete the project from the workspace but don't delete the project files on disk (this is an option during the delete process). Then create a project, of the appropriate type, with the same name, in the same location (defaulted to the workspace). I'm not sure if you'll be prompted to reuse the files already in the project location but you can play it by ear.
Alternatively, move the project to another folder. Create a new project with the same name, of the same type, and add the appropriate capabilities. Then copy your source in from the moved old project.
Tip: 8.5 is very old, consider moving to the latest release, with loads of fixes and new features.

RDL file is not showing after restarting VS

I created rdl file in ssrs after restarting vs its not showing in solution explorer. But the file is present in folder
Rdl files are not automatically recognized by Visual Studio, but you can add the rdl file manually via Shift+Alt+A in the solution explorer or via the GUI.
First try to 'Clean' and 'Rebuild' your Report solution.
If that doesn't work since you said it exists in your folder you could manually add it.
Right Click on Reports folder > Add > Existing Item. See this image http://prntscr.com/8y3eyc

"This file is currently not available for use on this computer"

I am hoping someone has had this issue before and can help me resolve. I was working on a company project. I had just finished up and needed to publish my project to the server. When trying to publish, I got the error "This file is currently not available for use on this computer."
So then I tried to open one of the .cs files of the solution, and the error occurred again from trying to open the file. So I tried to grab the latest version from TFS thinking it would give me whichever file is missing, but when I click "Get Latest Version" on the project, the error message pops up there too.
I thought surely I will be able to delete the project locally and then remap it, but I can't even delete the project off my computer, as the error message pops up halfway through deletion. When it occurs there, however, I do get "Error 0x800710FE: This file is currently not available for use on this computer."
Also have tried deleting offline cached files through Control Panel > Sync Center > Manage Offline Files > Disk Usage > Delete temp files
I got this error for a small, test solution that was not using TFS. The default file location is the documents folder, which in my environment is synced using the Sync Center. I moved all of the solution files to a new local folder that was not included in Sync operations and the error went away.
Conclusion: storing VS files in a folder managed by Sync Center is likely a bad idea.
I got this error when trying to save an excel file served from a webpage.
The solution for me was to save it under a different filename. Possibly because I previously had a file with the same name open in excel.

Visual Studio Team Services build error cannot copy AssemblyAttributes.cs

After adding a web role to my Azure project I get a build error within my Visual Studio Team Services environment. Though, I cannot figure out what is causing this. Where is AssemblyAttributes.cs comming from? I cannot find this file in my solution folder.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.7\Microsoft.WindowsAzure.targets (2787, 5)
Unable to copy file "C:\Users\buildguest\AppData\Local\Temp\.NETFramework,Version=v4.5.2.AssemblyAttributes.cs" to "C:\a\6e05cef4\xxxx\xxxx.Backend.Api.Azure\obj\Debug\Tijdmunt.Ui.WebRole\C:\Users\buildguest\AppData\Local\Temp\.NETFramework,Version=v4.5.2.AssemblyAttributes.cs". The given path's format is not supported.
AssemblyAttributes.cs is a temporary generated file created by MSBuild, so It's not going to be on your solution. Instead it is going to be under the temporary folder.
Since It's a temporary file and created on every build, I just went to below location and deleted the file, then my solution started to be successfully building again.
C:\Users\UserName\AppData\Local\Temp.NETFramework,Version=v4.5.AssemblyAttributes.cs
Hope this helps someone else.

Resources