Has anyone have problem with using Silverlight 5 with backlight's DragDockPanel?
When I have DragDockPanel or add a DragDockPanel in the DragDockPanelHost, there will be java script error :
Line: 56
Error: Unhandled Error in Silverlight Application
Code: 2028
Category: ParserError
Message: The name already exists in the tree: PART_TopLeftClip.
File:
Line: 0
Position: 0
I wonder if anyone also have this problem?
I am developing a new project and was going to use the DragDockPanel for the main display menu... But as I know the Backlight project had been stopped, I wonder if there is any replacement for this control?
Thanks in advance,
King
I created a simple Silverlight 5 test project, and added the following to the MainPage:
<Grid x:Name="LayoutRoot" Background="White">
<blacklight:DragDockPanelHost>
<blacklight:DragDockPanel>
</blacklight:DragDockPanel>
<blacklight:DragDockPanel>
</blacklight:DragDockPanel>
</blacklight:DragDockPanelHost>
</Grid>
And that worked in fine in FF4 and IE8 on Windows 7 Professional x86. The 2 dock panels were displayed and could be dragged and maximized/minimized fine. What version of the blacklight library are you using? I am using 2.5.0.0. I assume you changed the target silverlight version of the blacklight project to be Silverlight 5.
Related
I build an app with the 2nd beta of Xcode 11, using SwiftUI, and everything worked completely fine, but now, with the 3rd beta, the app isn't even build. I get errors like "Use of undeclared type 'View'", "Unknown attribute 'State'" etc. What can I do? Is the problem in my code or is it just a bug?
The problem is when I'm trying to build the app to run on my Mac (with UIKit for Mac)
#State var score = 0
The error is "Unknown attribute 'State'"
struct ContentView : View {
/*...*/
}
The error is "Use of undeclared type 'View'"
Got same issue on Xcode 11.2. Found out that the reason was that somewhere in same module I declared protocol State {}. This breaks compiler without any reasonable errors.
This is from the Xcode 11 Beta 3 Release Notes.
Known Issues
Xcode 11 doesn’t support working with SwiftUI in an iPad app brought to macOS. (41416222, 51201699)
I downloaded the Xcode 11 Beta 3 myself just to confirm the errors you mentioned, and I had the same issues when trying to build a SwiftUI project for Mac.
I would suggest going back to using Xcode Beta 2 if possible. Unfortunately, Apple doesn't provide download links to previous betas, so hopefully you have a Time Machine backup or Beta 2 still installed on your computer. Otherwise, you might be out of luck until the next beta is released.
I was getting the same "Unknown attribute 'State'" issue in Beta 5. But I was doing "#state" and not "#State". Case matters. It's hard to notice because both ways are shown as purple.
If you are doing a Kotlin multi-platform project, check if your shared module has a component named "State".
Instead #main, please replace #UIApplicationMain.
I've attached screenshots.
https://prnt.sc/vimvwn
I got the same error while trying to compile a Swift project created with Xcode 13 on Xcode 11. The problem was that the newer version uses the SDK 12.1 while the older one uses the SDK 10.15. To let the project compile on the older Xcode/SDK I just performed these steps:
remove the #main attribute from the swift source code
add Cocoa.framework in the section Frameworks, Libraries, and Embedded Content
add a file named main.m to the project (no bridge header) with this content:
#include <Cocoa/Cocoa.h>
int main(int argc, const char * argv[]) {
return NSApplicationMain(argc, argv);
}
I am trying to launch a ITK/VTQ project with Qt. The project runs on Windows 10, but not on Ubuntu.
I have the following error during launching the project:
X Error: BadColor (invalid Colormap parameter) 12
Major opcode: 1 (X_CreateWindow)
Resource id: 0x4a00001
How I can correct this error message ?
Have you tried running other OpenGL applications/games? There could be a problem with 3D graphics drivers on your Ubuntu. Also, without source code fragment for window creation, I doubt anyone can help you much further.
i'm using cocos2d-x 3.7 on windows, visual studio 2013 and GAF_VERSION 5.0.
i'v downloaded "Cocos2dxGAFPlayer" and copied it into cocos2d/external, after that i added the gafplayer project to my cocos2dx project solution. i'm not sure but i think i have configured it properly as its running while it has this code in "HelloWorld::init()" :
auto animation = GAFAsset::createWithBundle("anim1.zip", "anim1/anim1.gaf", nullptr);
object = animation->createObjectAndRun(true);
object->setAnchorPoint(Vec2::ANCHOR_MIDDLE);
object->setPosition(Director::getInstance()->getVisibleSize() / 2);
this->addChild(object,1);
but by using this only the png file, containing parts of animation is shown( i have attached the file i mean).
when i use the zip file generated by gap in the GAFTest project by only replacing the recourse (not the source code) it works fine.
i've searched the net for a solution, and a correct way to integrate cocos2d-x and gaf. but i couldn't find a way.
please guide me.
is there any tutorial about how to integrate cocos2d-x with gaf on visual studio so i make sure i'm doing the configuration right?
tnx
A member of GAFmedia forum suggested something which solved the problem : http://gafmedia.com/forum/viewtopic.php?f=8&t=447
Postby Dmitry Bushtets » October 7th, 2015, 7:36 am
I have one idea. Have you method call to CODE: SELECT ALL
cocos2d::Director::setContentScaleFactor
in the code? (it can be in AppDelegate.cpp) If yes - try to remove
this call (set content scale factor to 1) and check result. Or
convert swf to gaf with CSF 1 and 2 (and 3, 4 maybe :) ). You can find
this option in GAF Converter. [Texture Atlas -> Scale Settings ->
Advanced]
I've created a LINQ to SQL class and a Silverlight-enabled WCF Service to a Silverlight 4.0 solution I'm working on. I'm in the process of publishing it to a local IIS7 server, instead of running inside the Visual Studio temporary web server. Whenever I build the project with the service running on the temporary web server, it works fine, but once I move it to my IIS7 web server, it fails with the following errors:
Warning 1 Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Schema with target namespace '' could not be found.
XPath to Error Source: //wsdl:definitions[#targetNamespace='']/wsdl:portType[#name='SpaceGameDBService'] C:\Users\MindWorX\documents\visual studio 2010\Projects\MindWorX.Spacegame\MindWorX.Spacegame\Service References\DBServiceReference\Reference.svcmap 1 1 MindWorX.Spacegame
Warning 2 Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[#targetNamespace='']/wsdl:portType[#name='SpaceGameDBService']
XPath to Error Source: //wsdl:definitions[#targetNamespace='http://tempuri.org/']/wsdl:binding[#name='CustomBinding_SpaceGameDBService'] C:\Users\MindWorX\documents\visual studio 2010\Projects\MindWorX.Spacegame\MindWorX.Spacegame\Service References\DBServiceReference\Reference.svcmap 1 1 MindWorX.Spacegame
Warning 3 Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[#targetNamespace='http://tempuri.org/']/wsdl:binding[#name='CustomBinding_SpaceGameDBService']
XPath to Error Source: //wsdl:definitions[#targetNamespace='http://tempuri.org/']/wsdl:service[#name='SpaceGameDBService']/wsdl:port[#name='CustomBinding_SpaceGameDBService'] C:\Users\MindWorX\documents\visual studio 2010\Projects\MindWorX.Spacegame\MindWorX.Spacegame\Service References\DBServiceReference\Reference.svcmap 1 1 MindWorX.Spacegame
Warning 4 Custom tool warning: No endpoints compatible with Silverlight 4 were found. The generated client class will not be usable unless endpoint information is provided via the constructor. C:\Users\MindWorX\documents\visual studio 2010\Projects\MindWorX.Spacegame\MindWorX.Spacegame\Service References\DBServiceReference\Reference.svcmap 1 1 MindWorX.Spacegame
Warning 5 Custom tool warning: Exception has been thrown by the target of an invocation. C:\Users\MindWorX\documents\visual studio 2010\Projects\MindWorX.Spacegame\MindWorX.Spacegame\Service References\DBServiceReference\Reference.svcmap 1 1 MindWorX.Spacegame
Error 6 Custom tool error: Failed to generate code for the service reference 'DBServiceReference'. Please check other error and warning messages for details. C:\Users\MindWorX\documents\visual studio 2010\Projects\MindWorX.Spacegame\MindWorX.Spacegame\Service References\DBServiceReference\Reference.svcmap 1 1 MindWorX.Spacegame
Now, I believe that warning 4 and 5 and error 6 is a result of warning 1, 2 and 3, so I've ignored them for now. I've been googling around, and seen suggestions telling me to untick the checkbox "Reuse types in referenced assemblies" when I add the service reference to the main Silverlight project, however this hasn't fixed my issue at all. I've tried restarting Visual Studio as well, but this hasn't fixed anything either. I've started to consider that it's some sort of setting in the IIS7 web server, that I'm missing, but I looked around for hours now, and decided to come here for help. I found a similar problem here, but the "solution" was to not solve the problem, but instead find another way. I'm hoping this time we can find a solution instead.
Turns out that when I created the solution, I forgot to tick "Enable WCF RIA Services". Along with this I also redid web.config from scratch. How this still works on the development server is a mystery to me, however doing both things solved the problem.
I have a Sitecore 6 CMS with a custom data provider to create child items on the fly based on items added to a field in the parent item. This was working okay (about a week ago was the last time I was working on this project), but now I am getting errors in the web client which are originating in the FirebugLite html and JS files. Basically, I click on a content item, the FirebugLite js fails, and then my code in my custom data provider fails to run.
I would have thought any FirebugLite scripts would be disabled or ignored when running under IE8 (isn't FirebugLite a Firefox addin?)
When I remove the FirebugLite folder from ..\sitecore\shell\Controls\Lib\ my code runs fine and I don't get the clientside errors. I'm not really sure what my question is. I guess it is should FirebugLite affect IE8? What am I missing out on if I remove FirebugLite from the Sitecore directory tree?
I'm running WindowsXP SP3, VS2008. The errors I get are the following:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Fri, 14 May 2010 06:42:04 UTC
Message: Invalid argument.
Line: 301
Char: 9
Code: 0
URI: http://xxxxxxx.com.au/sitecore/shell/controls/lib/FirebugLite/firebug.js
Message: Object doesn't support this property or method
Line: 21
Char: 1
Code: 0
URI: http://xxxxxxxx.com.au/sitecore/shell/controls/lib/FirebugLite/firebug.html
Message: Invalid argument.
Line: 301
Char: 9
Code: 0
URI: http://xxxxxxxx.com.au/sitecore/shell/controls/lib/FirebugLite/firebug.js
Message: Object doesn't support this property or method
Line: 21
Char: 1
Code: 0
URI: http://xxxxxxxx.com.au/sitecore/shell/controls/lib/FirebugLite/firebug.html
Cheers,
James.
Firebug is a Firefox plugin. As far as I'm aware FirebugLite is the Javascript-only version, and as such should run in any browser. If you're getting problems and using IE8 then you won't lose much removing it as IE8's developer toolbar is pretty decent for manipulating the DOM and css, as well as debugging and profiling Javascript. That being said, Firefox would always be my first choice during development.
We have run into this same issue with IE 8. One of our developers found that it was solved by disabling the option for "Enable Protected Mode" within IE.