I want to update an old project group. I immediately encountered problems with the current Elements project. After many attempts, I gradually reduced the project group to narrow down the problem.
IDE: Elements 12.0.0.3007 - Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.14.10
Target: .NET Framework 4.81
Step 1: Create a new project “ASP.NET Classic Web Service Application”, Save, Build, Perfect!
Step 2: Go to the “Service1” class and add a method. in my case, “method do_get_doc(dc_xml : string; var doc : array of byte);”
Step 3: “Complete Class” for the implementation, no code required, save
Step 4: Build → Build Error MSB4217 and MSB4028
Note: If you wait a while, the error sometimes goes away. If you then change the code, the error reappears. If you close and reopen the solution, you can build the project.
If the solution is more complex, the error will not go away.
Note: In my real project, I have a class library and a web service (ASP.NET Classic). I can use them together. At first, I thought EBuild (for the library) and MSBuild (for the web service) weren’t working together properly.
Does thius happen during build of your project, or just in the IDE as you code, and the project builds fine? Since tyou say the error goes away after time, it sounds to me like somehting thje ASP.NET designer infrastructure mioght be doing, as IIRC “web application” projects are no longe rwell-supported by VS (but are by us)…
I am german myself, and in have no idea what an “Aufgabenhostknoten” is supposed to be (who makes up these translations?) and why it woukld be exited prematurely;
The error occurs during the build process. But if you wait (2 mins) and try again, the error can disappear. However, this isn’t the case with a more complex project.
I might have to switch to Water for the ASPX projects. Does Water support ASPX? I chose VS because the project was created with it 10 years ago and because even smaller WinForms projects are compliant.
Unter uns: “Aufgabenhostknoten”… klingt wirklich gut. Nebenbei… Ich lebe in der Bänschstr. und vermisse Ihre coolen Fotos aus Friedrichshain aus den 10er Jahren.
Very strange. Unfortunately i am traveling this week and without access to a Widnows VM (i wprk mostly on Msc, myself), but someone else from the ream will try and have a look mthis week.
Water will support building this (and without using the MSBuild intermediate layer, so most likely it wont have this error), but Water does not support any designers for ASP. But note you can swithc the project between IDEs easily, as needed, ie use VS to design, and then Water to code/builld.
“IT German” breaks my brain, every time
. Crazy small world! I lived in the Proskauer Str. for a while, literally a stone-throw away from Bänschstr. (and later Reichenberger, in xberg). I do miss Berlin… sometimes. I recently watched the excelent TV US show “Counterpart”, all shot in Berlin, and it gave me major nostalgia. But i’m happy taking more pictures of beaches, these days… https://www.instagram.com/dwarflandphoto/.
Is the Seth restaurant still aroud, at Proskauer/Rigaer?
I’ll try water. I’m sure it’ll work. I’m going to the festival today anyway, so there’s no rush.
Ich wusste das aus der Proskauer. Aus irgendeinem Impressum oder auch von den Fotos. Daher hatte ich das mit der Bänschstr. erwähnt. Das “Seth” gibt es leider nicht mehr. Ich war sehr oft im Sando gegenüber. Leider auch nicht mehr da. Gibt es deine Fotos auch außerhalb von Insta? Habs nicht so mit Socials. Ich hoffe, es gibt keinen Ärger, weil ich das hier auf Deutsch schreibe. Danke für den Austausch und dem Tipp mit “Counterpart”.
Did you also try changing something in the code? After a small change (e.g., adding an empty method), the error occurred. After waiting two minutes, I was able to compile. After another change, the error came back. It was completely random. Crazy. I’m sure it’s very difficult for you to reproduce.
For now, I’m using Water.
I get this as well. I updated both Visual Studio and RemObject to the latest and it might have started with the update to VS, memory fails me. So far at least I can instantly recompile it and it works right away acting like I’m debugging an already compiled DLL. The error points to this line in legacy.targets Output PropertyName=“PositionsFileName” TaskParameter=“PositionsFileName” line 536 which I’m noticing is a duplicate of line 463. Try removing the second one?