This is such a simple code that compiles correctly, but I'm getting the error below when running it
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at mx.controls::ProgressBar/createChildren()[E:\dev\4.0.0\frameworks\pro jects\framework\src\mx\controls\ProgressBar.as:1110]
at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\fr amework\src\mx\core\UIComponent.as:7250]
......
Here's the code that gives this error:
<s:TitleWindow ...>
.....
.....
<s:controlBarContent>
<com:IconButton id="btnAdd" toolTip="Add file(s)" click="addFiles()" icon="{addIcon}"
skinClass="com.skins.IconButtonSkin" width="20"/>
<com:IconButton id="btnRemove" toolTip="Remove file(s)" click="removeFiles()" icon="{removeIcon}"
skinClass="com.skins.IconButtonSkin" width="20"/>
<mx:ProgressBar id="uploadProg" labelPlacement="center" width="100%"/>
<com:IconButton id="btnCancel" toolTip="Cancel upload" icon="{cancelIcon}" click="onUploadCanceled()"
skinClass="com.skins.IconButtonSkin" width="20"/>
<com:IconButton label="Upload" toolTip="Upload file(s)" id="btnUpload" icon="{uploadIcon}" click="uploadFiles()"
skinClass="com.skins.IconButtonSkin" width="20"/>
<com:IconButton id="btnView" toolTip="Show/Hide file(s)" click="changeView()"
icon.full="{viewIconFull}" icon.mini="{viewIconMini}"
skinClass="com.skins.IconButtonSkin" width="20"/>
</s:controlBarContent>
</s:TitleWindow>
If I remove the progressbar code from here, it runs fine. But with that one line, I get above error during runtime. With this line in, even the Design mode doesn't show-up in Flash Builder 4 :(
Any idea what could be the issue here?
PS: I've tried with the normal s:Button as well, before the skinned button component. So obviously those can't be the problem.
Just ran into this... I'm guessing it's because you've got a 3.x swf loading into a 4.x application.
Checkout this link for more info...
http://forums.adobe.com/message/2721478
Related
Scenario: I created a SSRS Report in Visual Studio 15. The report works, I can preview it without errors. I made a copy of the RDL file by right clicking and copying and pasting it withing Visual Studio. When I attempt to preview the copy I get the following error:
Name cannot begin with the '>' character, hexadecimal value 0x3E. Line
5645, position 64
What's even weirder is I deleted everything (DataSets, datasources, parameters etc) and I still get the same error. What's really strange is it still refers to line 5645. After deleting everything from the report there are only 29 lines!
Another thing I found odd, and this could be key to solving the mystery is the file name and line # is blank in the error window.
Below is the the content of the RDL file after deleting it's content:
<?xml version="1.0" encoding="utf-8"?>
<Report MustUnderstand="df" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:df="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition/defaultfontfamily">
<df:DefaultFontFamily>Segoe UI</df:DefaultFontFamily>
<AutoRefresh>0</AutoRefresh>
<ReportSections>
<ReportSection>
<Body>
<Height>13.03466in</Height>
<Style />
</Body>
<Width>33.9775in</Width>
<Page>
<LeftMargin>1in</LeftMargin>
<RightMargin>1in</RightMargin>
<TopMargin>1in</TopMargin>
<BottomMargin>1in</BottomMargin>
<Style />
</Page>
</ReportSection>
</ReportSections>
<ReportParametersLayout>
<GridLayoutDefinition>
<NumberOfColumns>4</NumberOfColumns>
<NumberOfRows>2</NumberOfRows>
</GridLayoutDefinition>
</ReportParametersLayout>
<rd:ReportUnitType>Inch</rd:ReportUnitType>
<rd:ReportID>9922849d-3925-4879-911b-cdeeeb45c5d6</rd:ReportID>
</Report>
The solution was changing the project from Release to Debug mode:
I try to Generate signed apk
but error
Error:(449) Error: Found byte-order-mark in the middle of a file [ByteOrderMark]
how to solve?
I refer to link
Android Studio writing BOM's to UTF-8 file
How to fix "Byte-Order Mark found in UTF-8 File" validation warning
but I cant solve problem.
becuz I dont understand
plz your comment
Please check if you have a space between android:name= and " " and change
<uses-permission android:name= "android.permission.x" />
to
<uses-permission android:name="android.permission.x" />
thanks in advance. Publishing with my VisualStudio/ClickOnce I get always the following error.
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\carlos\Documents\visual studio 2012\Projects\ConsoleApplication1\ConsoleApplication1\publish\ConsoleApplication1.application resulted in exception. Following failure messages were detected:
+ Configuration system failed to initialize
+ Unrecognized configuration section startup. (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\dfsvc.exe.Config line 2)
The dfsvc.exe.Config is:
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="false">
<supportedRuntime version="v4.0" sku="client" />
</startup>
</configuration>
Is something that I should install on my PC? Thanks again.
I found a solution,
I don't know exactly which was the fix, I did three steps:
1 - I repaired .net fx intallation
2 - Ran mage -cc to clear clickonce store
3 - Rebooted
thanks
In my WP7 app I am using a periodic task.
Whe I use the code for debugging to launch the Periodic Task it runs as expected i.e.
ScheduledActionService.LaunchForTest(periodicTaskName, TimeSpan.FromSeconds(60));
However when I just add it to the action service it will not execute i.e.
ScheduledActionService.Add(periodicTask);
The code is never executed. Its the same issue as http://forums.create.msdn.com/forums/t/91617.aspx
I have downloaded several sample apps and its the same in all of them. As soon as I comment out the LaunchForTest code then the task is not run. Its the same in the emulator and on the phone. I have checked the Phone > Settings > Background tasks and my task is there and 'on'.
The only thing I do see is the following in the output window when running in debug via the emulator
The thread '<No Name>' (0xf25003e) has exited with code 0 (0x0).
When I am running the ScheduledActionService.LaunchForTest code then I see a similar message, but I also see that assemblies have been loaded etc - and the code is performed.
Any ideas? Its very frustrating. - Thanks!
Make sure to check background service details are added to WPAppManifest.xml file.
Below is the sample
<Tasks>
<DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
<ExtendedTask Name="BackgroundTask">
<BackgroundServiceAgent Specifier="ScheduledTaskAgent" Name="Task_Name" Source="Assembly_Name" Type="Assembly_Name.ScheduledAgent" />
</ExtendedTask>
</Tasks>
A while ago i had same problem, it looks like when you add background agent project to your foreground project, it is missing update the manifest file.
Ihat should i do, i just installed crystal reports for vs2010
now this error
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\10.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Web.dll'
Source Error:
Line 80: <asp:Button ID="Button1" runat="server" Text="Button_Test_Test" OnClick="working" />
Line 81:
Line 82: <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" ReportSourceID="CrystalReport1.rpt" />
Line 83:
Line 84: </asp:Panel>
Try this. Open your web.config file and make sure all the references that mention Crystal Report are 13.0.2000.0. There will be several in the Assemblies section (12 or 13 I think). Next open the page where you have the Report Viewer and make sure you are registering the same version as you have in the web.config
<%# Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, ....
I have not had your exact error before but I have several errors similar and editing these two files to make sure all the versions line up has worked for me every time.