If I try to create an onClick method by doubleclicking in properties editor, the interface part is thrown somewhere with my code and destroys my complete source code.
If I insert onClick Event by hand, also corresponding code in codebehind, it is not bound to the one in codebehind:
method ManagementCockpit.bnteilnehmer1_Click(sender: Object; e: EventArgs);
var liste : system.String;
begin
liste := string.Empty;
for each item: ListItem in chkinstitute.Items do begin
if item.Selected then begin
var selectedValue: String := item.Value;
if String.IsNullOrEmpty(liste) then
liste := selectedValue
else
liste := liste + ‘,’ + selectedvalue;
end;
end;
if string.IsNullOrEmpty(liste) then
Session[‘INSTITUTE_AUSWERTEN’] := String.Empty
else begin
if liste = Session[‘INST_ID’] then
Session[‘INSTITUTE_AUSWERTEN’] := String.Empty
else
Session[‘INSTITUTE_AUSWERTEN’] := liste;
end;
I can click on button “Übernehmen” like mad, nothing happens.
Editor struggles and shows funny things in all rainbow colours.
802 ERROR SetSite failed for package [ExtensionsPackage]Source: ‘Microsoft.VisualStudio.Shell.14.0’ Description: Aufgrund eines hohen Deadlock-Risikos kann GetService nicht von einem Hintergrundthread in einer von AsyncPackage abgeleiteten Klasse aufgerufen werden. Rufen Sie stattdessen GetServiceAsync (ohne Result oder Wait im Aufgabenobjektergebnis) auf oder wechseln Sie zum UI-Thread mit der JoinableTaskFactory.SwitchToMainThreadAsync-Methode bevor Sie GetService aufrufen. System.InvalidOperationException: Aufgrund eines hohen Deadlock-Risikos kann GetService nicht von einem Hintergrundthread in einer von AsyncPackage abgeleiteten Klasse aufgerufen werden. Rufen Sie stattdessen GetServiceAsync (ohne Result oder Wait im Aufgabenobjektergebnis) auf oder wechseln Sie zum UI-Thread mit der JoinableTaskFactory.SwitchToMainThreadAsync-Methode bevor Sie GetService aufrufen. bei Microsoft.VisualStudio.Shell.AsyncPackage.GetService(Type serviceType) bei Microsoft.VisualStudio.Shell.Package.Initialize() bei RemObjects.Oxygene.VisualStudio.ExtensionsPackage.<InitializeAsync>d__0.MoveNext() — Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde — bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bei Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass16_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext() — Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde — bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() bei Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e) bei Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck) bei Microsoft.VisualStudio.Services.VsTask.GetResult()
{8323D7DB-08A7-47D7-BF49-593A1FEF0FA9} 80131509 VisualStudio
That means the build contains changes for this issue. It doesn’t mean it was closed necessarily. When the issue gets closed, it gets posted here, right now the status is still
After renewing my update subscription, hoping this has been solved, I had to find out that the events are created now, but unfortunately rubbish has been created.
Example: asp.net Listview, dbclick ItemDataBound, this will be automatically created
Hello.
I confirm issue with TEventArgs, we’ll fix it withing bugs://81739 . Aspx designer was rewritten recently, so it might have issues, we’ll test more properly and will make it better.
Thank you for reports!
If you can show us single file (or class), that have Class Completions broken - it would be great.