Unable to copy file "xxx" to "bin/debug/xxx.deploy". Could not find a part of the path - vb.net

I developed a vb.net project and built it successfully. but while publishing, I got an error Unable to copy file "Resources\xxxxxxx.xlsx" to "bin\Release\app.publish\Application Files\aaaaaaaaaaaaaaaa_1_0_0_90\Resources\xxxxxxxx.xlsx.deploy". Could not find a part of the path 'bin\Release\app.publish\Application Files\aaaaaaaaaaaaaaaa_1_0_0_90\Resources\xxxxxxxx.xlsx.deploy'.
I couldnt find the reason for the issue. Tried reopening the project rebuilding and republishing several times.

I found the solution myself. The problem was the file name. The filename was too long. I saved the project inside Document folder within many sub folder. Thats why the filename became too long. I copied the project and placed insinde Documents folder directly and tried publishing. It was successfull.
Thank you

Related

Deleted VS Form Designer

I got this problem in visual studio project were i was able to clicked the FILE menu and Clicked "Save as 'FormDesigner'" to a separate folder expecting that i would be able to save the whole project to separate folder as backup file. But i was wrong about it. And then i permanently deleted the file. When i run my project this errors appears:
Unable to open module file
'D:SISBackup\StudentEnrollment.designer.vb': The system cannot find
the file specified.
Unable open module file
'D:SISBackup\StudentEnrollment.vb': The system cannot find the file
specified
But luckily the form still run the code. But i can no longer open the Form from Solution explorer. This error always appear from it:
Cannot find the file 'D:SISBackup\StudentEnrollment.vb'. It may have
been moved or deleted.
Can anybody help me with my problem. PLEASE i don't know what to do anymore. It's my school requirement. Please help me with this.
HELP!

Pentaho Spoon writes new txlog folder to old data-integration folder location

Something in Pentaho data-integration saves the folder of the first location it was run.
This was a problem for me because I ran it for the first time in my downloads folder and then moved it to my Program Files folder.
Specifically the folder
\data-integration\system\karaf\caches\spoon\data-1\txlog
For anyone whose problems are still not solved, you may be using a newer version of Kettle.
I had the same issue, and first followed Tyler's advice to find the file
data-integration\system\karaf\instances\instance.properties
and change the item.0.loc property from the old path to the new.
However there were still odd goings on, and this didn't fully resolve the issue.
I ended up finding one of the cache bundles (in my case bundle 15) contained a transaction.config file buried deep in the filesystem which was still pointing to the old path:
data-integration\system\karaf\caches\spoon\data-1\cache\bundle15\data\config\org\apache\aries\transaction.config
So I changed the aries.transaction.howl.logFileDir from the old path to the new, and it fixed the issue. Sneaky!
I found the file
data-integration\system\karaf\instances\instance.properties
and was able to change the line
item.0.loc
to point to my new folder.

open .chm file from my.resources when a buttons clicked

I already have this code from another question on this website.
Help.ShowHelp(ParentForm,
("C:\Users\Beaudean\Desktop\Help.chm"),HelpNavigator.TableOfContents, Nothing)
That works fine except i need the location of the chm help file to point to "my.resources" where it exists because i need to install my program but in that code example it only works with strings?
Thanks you :)
You cannot make this work. The .chm help file viewer is an external program, hh.exe. It doesn't know anything about managed resources, it needs a .chm file on disk.
Setup your project so that the .chm file is available in your build directory. Project + Add Existing Item and pick your .chm file. Select the added file and set its Build property to Content (so it gets installed with the rest of your files) and its Copy to Output Directory to "Copy if Newer" (so it gets copied to your build directory).
And modify your code so it can always find that file:
Dim path = System.IO.Path.Combine(Application.StartupPath, "Help.chm")
Help.ShowHelp(ParentForm, path, HelpNavigator.TableOfContents)

Intellij Idea problem with text file impossible to read

I have a problem using Intellij Idea.
I am absolutely unable to load text file as InputStream - it doesnt matter where do I put the file (main/java, main/resources...) it just can't find the file - in Eclipse everything works just fine.
I tried setings->compiler->resource patterns and added ?*.txt but that doesn't seem to work either.
Any help is appreciated.
If you load it as a File, make sure that Working Directory is properly set in IDEA Run/Debug Configuration, since it's the default directory where Java will look for a file when you try to access it like new File("file.txt"). Working directory should be set to the directory of your project containing .txt files.
If you load files as a classpath resource, then they should reside somewhere under Source root and will be copied to the classpath according to Settings | Compiler | Resource Patterns.
If you can't get it working, upload your project somewhere including IDEA project files so that we can point to your mistake.
Look at the image, notice that the txt files are in the project root, and not the source folders (in blue).
If you open the Project Structure dialog, and click on Modules and select your module - are the correct folders marked as Source Folders on the sources tab?
Link for how to get to Project Structure dialog
Also, if you print out the absolute path of that file you are trying to read, is that anywhere near where you expect it to be?
An easy way to figure out the same would be to try creating a file in the same fashion and see where it gets created in your project. You can put your input file at the same location and it should work just fine (if it doesn't, you should check your resource pattern which might be causing the file to be not copied over in the build output).
This method actually gives you the working directory of your intellij settings which is pointed out in the accepted answer. Just sharing as I had similar trouble and I figured out this way. :)

Using Other Programmers Custom Controls

I am using Scott Mitchell's textBox Characters and Words counter control, i downloaded it from the website https://web.archive.org/web/20211020202742/https://www.4guysfromrolla.com/ and unzipped it to my desktop. then in VWD Express 2008, i created a new tab in the Toolbox, i chose the *.dll from the unzipped folder, i used the control, all is fine (try it, i recommend it) but when i backed up my code, copied the site, and tried to run it on another computer, i got a bunch of error all indicating that its looking for the dll file on my desktop, but when i checked under my bin folder in my website directory, the dll is there...
Help Plz...
If you view the properties of the reference you'll probably find that the path to the reference is incorrect.
I have often found that the quickest way of fixing the problem is to open the project file with notepad and correct the path to the reference.