PDA

View Full Version : سوال: خطادر ايجاد يوزر كنترل!(كمك!؟)



mahboube
یک شنبه 03 مرداد 1389, 10:08 صبح
سلام دوستان
من براي ايجاد يك يوزر كنترل wpf داخل winapp با خطاي زير روبرو ميشم.
برنامه با vs2005 نوشته شده كه من توي vs2008 بازش مي كنم و framework3.5 كانورت مي كنم.
البته فقط براي برنامه هايي كه setup شون با vs 2005 ،گرفته شده اين error رو ميده.
دليل اين خطا چي مي تونه باشه.ممنون.


an unhandled exeption has occured

click here to reload designer

details:

The string was not recognized as a valid DateTime. There is a unknown word starting at index 20.

at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) at System.DateTime.Parse(String s, IFormatProvider provider) at System.Windows.Forms.AxHost.TypeLibraryTimeStampAt tribute..ctor(String timestamp) at System.Reflection.CustomAttribute._CreateCaObject( Void* pModule, Void* pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) at System.Reflection.CustomAttribute.CreateCaObject(M odule module, RuntimeMethodHandle ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs) at System.Reflection.CustomAttribute.GetCustomAttribu tes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) at System.Reflection.CustomAttribute.GetCustomAttribu tes(Assembly assembly, RuntimeType caType) at System.Reflection.Assembly.GetCustomAttributes(Boo lean inherit) at MS.Internal.Xaml.ReflectionProjectNode.BuildNamesp aces() at MS.Internal.Xaml.ReflectionProjectNode.Find(Identi fier namespaceUri) at MS.Internal.Xaml.PrefixScope.FindType(XamlName name) at MS.Internal.Xaml.XmlElement.FindElementType(Prefix Scope parentScope, IParseContext context) at MS.Internal.DocumentTrees.Markup.XamlSourceDocumen t.get_RootType() at Microsoft.Windows.Design.Documents.MarkupDocumentM anager.CalculateLoadErrorState() at Microsoft.Windows.Design.Documents.MarkupDocumentM anager.get_LoadState() at MS.Internal.Host.PersistenceSubsystem.Load() at MS.Internal.Host.Designer.Load() at MS.Internal.Designer.VSDesigner.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolated View.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolated DesignerFactory.Load(IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.Bootst rapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.Bootst rapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.Load() at MS.Internal.Designer.DesignerPane.LoadDesignerView ()


ممكنه باطر كانورت شدن و تغيير ور‍ن framework باشه؟
ممنون.

sunn789
یک شنبه 03 مرداد 1389, 11:17 صبح
سلام
باید کد Design رو بزاری اما اونچه مشخصه اینه که تو طراحی یه جایی مربوی به تاریخ و و ارتباطش با یک رشته خطا داده
بقیش مشخص نیست

mahboube
یک شنبه 03 مرداد 1389, 11:28 صبح
سلام
باید کد Design رو بزاری اما اونچه مشخصه اینه که تو طراحی یه جایی مربوی به تاریخ و و ارتباطش با یک رشته خطا داده
بقیش مشخص نیست

دوست عزيزممنون از توجهت ولي اگه منظورت تو wpf هست اصلا هيچي ننوشتم.
تا ايجادش مي كنم اين خطارو ميده.

<UserControl x:Class="myapp.Theme1"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" FlowDirection="RightToLeft"

Height="600" Width="600">

<Grid Margin="0">

</Grid>
</UserControl>

mahboube
یک شنبه 03 مرداد 1389, 13:25 عصر
دوست عزيزممنون از توجهت ولي اگه منظورت تو wpf هست اصلا هيچي ننوشتم.
تا ايجادش مي كنم اين خطارو ميده.

<

UserControl x:Class="myapp.Theme1"

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" FlowDirection="RightToLeft"
Height="600" Width="600">
<GridMargin="0">
</Grid>
</UserControl>



اين مشكل حل شد:من ازيك كامپوننت (axshockwaveflash )تو برنامه استفاده كرده بودم ك وقتي پاكش كردم حل شد ولي حالاخطاي جديد ميده(كلافه شدم)
error:
Error 299 The type name 'UserControl2' does not exist in the type 'SABA.SABA' H:\SABA-old\zz.Designer.cs 32 43 SABA

لطفا هركي اطلاعاتي داره كمك كنه.

mahboube
یک شنبه 03 مرداد 1389, 14:07 عصر
اين مشكل حل شد:من ازيك كامپوننت (axshockwaveflash )تو برنامه استفاده كرده بودم ك وقتي پاكش كردم حل شد ولي حالاخطاي جديد ميده(كلافه شدم)
error:
Error 299 The type name 'UserControl2' does not exist in the type 'SABA.SABA' H:\SABA-old\zz.Designer.cs 32 43 SABA

لطفا هركي اطلاعاتي داره كمك كنه.
[/left]

خب رفقا
اين مشكلم حل شد .عين خوشحالا يه فرم به اسم پرو‍م ايجاد كرده بودم كه تو دستور


this.usercontrol1= new winappname.usercontrlol();l
اين winappnameرو فرمه در نظر ميگرفت برا همين مي گفت اين type name وجود نداره.
شما همچين كاري نكنين اگر خواستيد از يوزر كنترل تو برنامه ويندوزتون استفاده كنيد.
ممنون.