Ошибка при попытке отобразить конструктор форм.
См. Изображение ошибки:
![enter image description here](https://i.stack.imgur.com/gl13f.jpg)
Кодна экране:
public partial class frmCanalVenda : frmEdit
{
public frmCanalVenda(CanalVenda canal, Cliente cli)
: base(canal)
{
InitializeComponent();
bdsCliente.DataSource = cli;
eabBar.ReadOnlyView = false;
}
private void frmCanalVenda_Load(object sender, EventArgs e)
{
try
{
Cursor.Current = Cursors.WaitCursor;
bdsAgrupamento.DataSource = Agrupamento.GetAll(DatabaseAFV.Connection);
bdsCanal.DataSource = Canal.GetAll(DatabaseAFV.Connection);
bdsSubCanal.DataSource = SubCanal.GetAll(DatabaseAFV.Connection);
bdsEspecializacao.DataSource = Especializacao.GetAll(DatabaseAFV.Connection);
bdsOperacao.DataSource = Operacao.GetAll(DatabaseAFV.Connection);
bdsPorte.DataSource = Porte.GetAll(DatabaseAFV.Connection);
}
finally
{
Cursor.Current = Cursors.Default;
}
}
}
Текст изображения
Чтобы предотвратить возможную потерю данных перед загрузкой конструктора, необходимо устранить следующие ошибки:
Значение не попадает в ожидаемый диапазон.
Экземпляры этой ошибки (1)
- Скрыть стек вызовов в System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal (Int32 errorCode, IntPtr errorInfo) в Microsoft.VisualStudio.NativeMethods.ThrowOnF(Int32 hr, Int32 [] ОжидаемыйHRFailure) в Microsoft.VisualStudio.Shell.Design.Serialization.DesignerDocDataService.GetFileDocData (String fileName, FileAccess доступ, String createTemplate, логический addToHostList, логический nestedIerialShell.DesignerDocDataService.GetChildDocData (имя строки, доступ к FileAccess, String createTemplate) в Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.GetResourceDocData (информация CultureInfo, доступ к File.ignDesignSignSignSignSignSignSignSignSignSDWault.DaultDVDIQSMDIQSMDIQSDIQSDIQSDIQSD).Design.IResourceService.GetResourceReader (информация о CultureInfo) в System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.SerializationResourceManager.GetMetadata () в System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.SerializationResourceManager.GetMetadataEnumerator () в System.ComponentModel.Design.Serialization.CodeDomSourceSerge.MesignerTerSignSignSignerTerFResignMasterSignSigner.ResManagerMateSignSigner.RuF_Manager.RuMDFDesign.Serialization.TypeCodeDomSerializer.Deserialize (IDesignerSerializationManager менеджер CodeTypeDeclaration декларация) на System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad (IDesignerSerializationManager менеджер) в Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad (IDesignerSerializationManager SerializationManager) в системе.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad (IDesignerLoaderHost host)