I need to put up a png image as splash screen for my WPF.
I imported the file to project and changed Build Action to 'Splash Screen'
This should have done the job, but I am getting this error message:
Unknown build error, 'An item with the same key has already been added.'
Googling the error didn't help.
I can confirm that changing the build action to Application Definition and then building (there will be errors), then switching it back to Splash Screen and running the program clears this error.
Related
I am using the CodenameOne GUI builder to add an image to a button.
I added the image to the res file and then clicked [Pick Image] in the Property Inspector (see my screenshots). The button image (a plus sign) appears in the GUI.
I hit 'save' in the GUI Builder and then close it, then go back to NetBeans and run a debug simulation, and the icon appears, so far so good. .
But now I run the debug simulation again and the button image is gone!
I open the GUI Builder and it's gone there as well: the button has reverted to [Pick Image] and, when I click [Pick Image], my image is missing from the res file.
What is going on here? I repeated this three times with the same result- I literally ran the Debug sim twice without doing anything in between and the icon disappears, and there is no indication in the Output messages to indicate that there is a problem.
The Form1.gui file shows a reference to the icon image so maybe the resource file is being cleared in between makes?
<component type="Button" icon="resFile:plus.png" name="Up" actionEvent="true">
</component>
[EDIT] I found that if I add the images using the CNO Designer on the theme.res file, the images 'stick' and I can get a good build.
HOWEVER, when I make code changes and then open the GUI Builder again the images are removed from the res file.
can you add a code snippet of how you add the image ...
According to the error message, you may have chosen the incorrect path, or maybe you have added the path incorrectly in the code.
Unfortunately, the old CN1 Designer is not compatible with the CSS compiler. If your project uses CSS, you should add images to the resource file directly in CSS (e.g. by adding it as a background-image on some element), or import it via the GUI builder, as, adding it that way will also add a reference to the image inside the .css file.
This stems from the CSS compiler pruning "unused" images in the resource file. If the image isn't referenced in the CSS file anywhere, it will be removed from the output .res file.
I am watching this video and when an error occurs he gets an actual error on the page and only a blank white screen when he deploys the site.
I see this a few times. However I only see white screen no matter if I am on local host or on production.
I see he is using chrome on Mac and I am using it on PC. Not sure if that is the difference.
While I can't say definitively, my suspicion is that you aren't using create-react-app to setup your project.
You will only see that error message if you have used CRA to set up your project, as that is a specific error handler that is baked into that project. If you're not using create-react-app, React should log an error to your console instead.
ReactJS smart enough to hide the errors to the users when the app is in production mode.
You will see only a blank page if the app gets crashed but if you inspect the page you will see small detail about the error in the console.
if you running the app in development mode you will see full details about the errors.
for this case cames componentDidCatch method to handle app crash errors, instead of the blank page display a “Something went wrong” message to the user or you can send XHR request to the server with the error info.
Check out this example of declaring and using an error boundary
https://reactjs.org/blog/2017/07/26/error-handling-in-react-16.html
I made some changes on boackground color to theme.res and all all of sudden my stoped working.
I check the debbuging console and showed me that could not find an images from res.
I tried to open gui builder but it did not open. So I deleted the component that used this image from the xxxx.gui file.
My app start working and crashes again on another point that needs another image.
Gui builder still is not working.
Any help is aprecciated
am learning nintex and got a bit stuck.in the nintex workflow i drag and drop the Query BCS action. after that i try to configure, but one error popup display " An unexpected error is occured"
enter image description here
This has occasionally happened to me. Solution, close the browser or tab, and re load it. Make sure you save first.
I have a sketchflow application that was building fine. I ran it again and viewed it in IE. It shows the silverlight loading logo which disapears.
What am I doing wrong.
That usually means there is an exception being thrown in your app. There will sometimes be a yellow warning icon in the status bar that can show what happened. Otherwise you can open and run the app in VS to find out what the exception is.