Why I'm getting:
Installing Microsoft .NET Framework 4.7.2 (x86 and x64)?
every time I test-install, on my local machine, a WPF executable?
Thankyou
Why I'm getting:
Installing Microsoft .NET Framework 4.7.2 (x86 and x64)?
every time I test-install, on my local machine, a WPF executable?
Thankyou
Hi,
Can someone help me with the steps to add .net 3.5 to our wsus server, i tried a few blogs and can't find something that works for me.
Clients point to WSUS server which doesn't have 3.5, we don't redirect them to the windows update as a backup since we want to stay to 1803 for now.
Thanks
Justin
My company has written a couple of .Net ActiveX components that have been running just fine for several years. The components are written in C# and are dependent on .Net 4.5, but run okay on newer versions of .Net, including .Net 4.8. Recently, we have had customer complaints that these components have stopped working after upgrading to Windows 10 1903. The components appear to work fine for most users that have upgraded to 1903, though. We have not been able to reproduce this issue in-house, so troubleshooting has been very difficult. We have spent many hours attempting to discover what is not working properly through remote sessions with these customers.
We originally posted the question here:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/739ef74c-5e7d-431a-a44b-a799222a8071/net-activex-component-failing-after-windows-10-1903-upgrade?forum=win10itproapps
Since that post we have determined that the issue is upgrade to .Net 4.8 and not Windows 10 1903. We know that Windows 1903 includes .Net 4.8, so those two things are tied together.
We do have a .Net dll compiled for x86, and we're running it on both 32bit and 64bit OSs. We have COM registry entries required. It worked fine in .Net 4.7.2. We have proven that this can fail on Windows 7 PCs that have moved to .Net 4.8. I believe we have ruled out that this is a Windows 10 1903 problem. Instead it is a .Net 4.8 problem.
I’ll provide a summary here of what we have tried.
1. We attempted to target .Net 4.8 specifically. This had no effect.
2. We built a .Net C# test program that executes the ActiveX component directly and tests the interface. This test program was able to load the dll and execute tests without any issue on the broken Windows 10 1903 machines as well as a few broken Windows 7 machines with the .Net 4.8 upgrade.
3. We built a .Net C# test program that attempts to load the ActiveX component via ActiveX. Basically it tries to instantiate the ActiveX component from the ProgID like this:
dynamic obj = Activator.CreateInstance(Type.GetTypeFromProgID("ISActiveX.ISActiveXMain"));
Then the test program calls methods on obj. When tested on a working system, the test program runs great and can test the interface just fine. When run on a broken Windows 10 1903 system, the call throws an exception. Here is the stack trace:
System.IO.FileNotFoundException: Retrieving the COM class factory for component with CLSID {3D5F3F28-F066-4F24-B142-6B8720A46691} failed due to the following error: 80070002 The system cannot find the file specified. (Exception from HRESULT: 0x80070002).
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at ISActiveXTest2.Program.Main(String[] args)
Unfortunately, we haven’t been able to figure out what file is not found. Our component doesn’t depend on anything other than the built-in .Net Framework assemblies. We suspect that some underlying system dependencies are missing, but we have no way to know what those might be.
4. We wrote a program to enumerate the registry keys we know to be required to properly register our ActiveX component. This generates a positive result on the broken Windows 10 1903 systems, so that was a nice double-check, but we did not learn anything new.
5. We used Process Monitor to take a look at what registry keys and such are being accessed. We can see from the registry access that the program attempts to access many keys related to our ActiveX component in order to start it up. It actively attempts to get keys from HKEY_CLASSES_ROOT first, and when it fails to find the entries, it goes to HKEY_CURRENT_USER instead. This seems to work happily for so many keys, but when it hits this key below, it does not try for the HKCU equivalent and it then seems to go into an error state (noting this GUID below is owned by our component and the HKCU equivalent is present in the registry):
HKCR\WOW6432Node\CLSID\{3D5F3F28-F066-4F24-B142-6B8720A46691}\InprocServer32
Right after this last registry access, there are a number of file accesses related to mscorrc.dll. We don’t know what mscorrc.dll does, but we did not see this dll being accessed when compared with a successful run of the component on other systems.
6. We ran some scans that didn't help.
sfc /scannow
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
So far, none of these have resolved the problem. Fortunately, we have finally found a PC in our own organization that is exhibiting this behavior, so we are able to run more experiments on a cloned VM of it without fear of destroying a customer PC.
7. We have reviewed Fusion logs and we don't see any binding issues:
https://www.inflectra.com/support/knowledgebase/kb171.aspx
8. We added COM tracing, but it didn't give any new information:
https://support.microsoft.com/en-us/help/926098/how-to-enable-com-and-com-diagnostic-tracing
9. We tried the .Net Framework repair tool, but apparently it doesn't even support .Net 4.8 (yet).
10. On Windows 7, we found combase.dll missing on these PCs, but adding it didn't seem to help. ProcMon showed that combase.dll was being requested, but after adding ProcMon showed it doing some activity on combase.dll but no change in the result.
11. We did run the old depends.exe program on mscoree.dll and found some differences in product and file version of dependency dlss on working vs non-working PCs. We're not convinced that depends is actually reporting the proper information, though, as winsxs does a great deal of mysterious work to get the required dll loaded and we could very well be looking at the wrong things.
At this point, we’re looking into options to write an ActiveX interface layer in C++ to bypass the problem with .Net failing to activate the component. That effort will take some time. We could really use some suggestions on how to troubleshoot this any further. We know the direct cause is the 1903 upgrade as rollback to the previous version resolves the issue. We also realize this could just be caused by the .Net 4.8 upgrade that comes along with 1903.
Is there any way to debug or log activity that occurs during .Net ActiveX component instantiation?
How can we find out what file is missing, as the stack trace indicates?
Hi!
I am trying to find out from which version of OS/.NET, TLS1.3 will be supported.
I understand that it's probably not going to be supported by OSs/versions that don't support TLS 1.2 but I am looking to get to know more.
There is not much written on this topic on the internet as far as I know so I would appreciate your help.
Cheers,
Stan
Maybe I did not ask question correctly, basically, what is the difference between the first two application types?
See attached image, preferably explaining in plain language, just like explaining to non-IT folk, since I don't have computer science degree and IT job experience, I am just trying to learn to build application.
Thanks.
I have a HP Pavilion g6 Notebook PC, when ever I install games they just run. My nephew can't run one of his games cause it needs this program, whenever I try to install it it fails however.
This is the Installation Log
Not sure what the problem is. I keep receiving the following message every time I restart my computer:
Microsoft .NET Framework
Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
Object referance not set to an instange of an object
See the end of this message for details on invoking
Hi team,
I have application hosted in 2003 server and it works fine, now we want to port my application to 2012 server and i have set up my application. but when i try to download and run the exe being created, it throws error "Could not load file or assembly 'System.Drawing, Version=4.0.0.0, culture..", i have 4.5 and 3.5 frameworks on the new 2012 server. this error throws in our app start project. not sure what is the issue? Please guide
Thanks,
Rajesh
We've found questions similar to yours. Please review these links and see if your question has already been answered. Links will open in a new window.
Hi Team ,
Can someone mention the steps for the Setup and installation of .net core runtime on Debian 10 (Linux) for ARM32 .
Thanks,
Gowthami
Hi Guys,
I'm new to the .Net application development platform. Here i need to create Test Automation application for a Web application using VS2017 Enterprises editions and BDD Specflow frame work. Once the application is created, that application will be using by Manual testers. Can some one clarify, is there any possibility to use Manual tester without buying licences VS2017 Enterprises Edison.
Thanks in advance...
I am currently trying to uninstall .NET 4.8 Framework and install the require .net framework 4.6 on my computer. However when I try to install the 4.6, I get an error message saying that a later version is already installed. When i go into program files and windows features, I do not any version of the framework install at all.
Can someone assist me with error. How do i find what .net framework is actually on my computer?
pianoboyCoder