Quantcast
Channel: .NET Framework Setup and Servicing forum
Viewing all 3295 articles
Browse latest View live

.net framework 4.7.2

$
0
0

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


.net 3.5 feature in windows 10 1803, not installing when wsus gpo applied

$
0
0

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


Running/Debugging ASP.Net core applications without access to command prompt

$
0
0
I am trying to develop an ASP.Net core app on a system using visual studio 2017 and .Net core 2.1. My organization has suddenly restricted us from Command prompt (not even by right-click -> run as admin). Subsequently, I amm getting an error sayin "HTTP Error 500.0 - ANCM In-Process Handler Load Failure". Is there any work around for this or is command prompt access absolutely needed?

.Net ActiveX component failing after .Net 4.8 upgrade

$
0
0

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?

.NET TLS 1.3 Support

$
0
0

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

What is the difference between "Core Web Application" and "NET Framework"?

$
0
0

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.

Error 0x80070002

$
0
0
Im trying to download preset manager and it wont let me. Im getting error 0x80070002

Can't Install .NET Framework 4 error code: (0x00000424)

$
0
0

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

OS Version = 6.1.7601, Platform 2, Service Pack 1
OS Description = Windows 7 - x64 Home Premium Edition Service Pack 1
CommandLine = C:\575ee14ea03caa86c2c46b81518d5096\\Setup.exe /x86 /x64 /ia64 /web
TimeZone = Eastern Standard Time
Initial LCID = 1033
Using Simultaneous Download and Install mechanism
Operation: Installing
Package Name = Microsoft .NET Framework 4 Setup
Package Version = 4.0.30319
User Experience Data Collection Policy: AlwaysUploaded
Number of applicable items: 11
Exe (C:\575ee14ea03caa86c2c46b81518d5096\SetupUtility.exe) succeeded.
Exe Log File: dd_SetupUtility.txt
ServiceControl operation succeeded!
ServiceControl operation succeeded!
ServiceControl operation succeeded!
ServiceControl operation succeeded!
Exe (C:\Users\Derek\AppData\Local\Temp\Microsoft .NET Framework 4 Setup_4.0.30319\Windows6.1-KB958488-v6001-x64.msu) failed with 0x424 - The specified service does not exist as an installed service. .
Final Result: Installation failed with error code: (0x00000424), "The specified service does not exist as an installed service. " (Elapsed time: 0 00:00:14).


Microsoft .NET Framework - error message - JIT debugging?

$
0
0

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 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at Vizit_Kartica.Izrada_kartice.Izrada_kartice_Load(Object sender, EventArgs e) in C:\Users\Admin\Desktop\visual studio\C#\Vizit Kartica\Vizit Kartica\Vizit Kartica\Form\Izrada_kartice.cs:line 144
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3260.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Vizit Kartica
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Admin/Desktop/visual%20studio/C%23/Vizit%20Kartica/Vizit%20Kartica/Vizit%20Kartica/bin/Debug/Vizit%20Kartica.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3062.0 built by: NET472REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Bunifu_UI_v1.52
    Assembly Version: 1.3.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///C:/Users/Admin/Desktop/visual%20studio/C%23/Vizit%20Kartica/Vizit%20Kartica/Vizit%20Kartica/bin/Debug/Bunifu_UI_v1.52.DLL
----------------------------------------
Bunifu_UI_v1.52&
    Assembly Version: 1.0.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///C:/Users/Admin/Desktop/visual%20studio/C%23/Vizit%20Kartica/Vizit%20Kartica/Vizit%20Kartica/bin/Debug/Bunifu_UI_v1.52.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Software fails to start since feature update to Windows 10, version 1803 - returns .NET Framework Initialization Error "Please set registry key HKLM\Software\Microsoft\.NETFramework\InstallRoot to point to the .NET Framework install location"

$
0
0
Hi, 

My software fails to start on any PC that has put through the Feature update to Windows 10, version 1803, returning this error:  

".NET Framework Initialization Error
Please set registry key HKLM\Software\Microsoft\.NETFramework\InstallRoot to point to the .NET Framework install location"

We packaged it with Spoon a while ago and that could be the cause, but we can't repackage it and are looking for a workaround. Any suggestions/methods that I can employ to get the software working in latest Windows 10 update without repackaging? Thanks!

The connection name 'DefaultConnection' was not found in the applications configuration or the connection string is empty.

$
0
0
I created  http  based  website   (name: httpwebsite) in vs 2013 framework 4  asp.net webform. I created website in IIS   pointing to file path where httpwebsite was created. In IIS I was able to browse website. I clicked Register. I got error Connection not found. I added connection string  with the name DefaultConnection. Still I am getting the same error. In IIS I can see my connection string listed (DefaultConnection). Before this website I created similar file based website and every thing worked fine.

.net application working in 2003 server but having issue in 2012 server

$
0
0

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

.NET Framework Setup

$
0
0

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.

Top related threads

THE 'MICROSOFT.ACE.OLEDB.12.0' PROVIDER IS NOT REGISTERED ON THE LOCAL MACHINE

$
0
0
I have got this error while I'm trying to read the data from excel into Dataset. i checked the solution and i installed the Microsoft Access Database Engine 2012 Redistribute from the link https://www.microsoft.com/en-us/download/details.aspx?id=13255 .

Even after installing I'm still getting the same error "THE 'MICROSOFT.ACE.OLEDB.12.0' PROVIDER IS NOT REGISTERED ON THE LOCAL MACHINE". 

I'm using Visual Studio 2017, MS Excel 2016 (64 Bit)

Kindly help me.



Thank you in advance

Upgrading .NET Framework on a Developer workstation.

$
0
0
We have a computer that has both the .NET Framework 4.7.2 Runtime AND the .NET Framework 4.7.2 Developer Pack installed on it.  If i install the .NET Framework 4.8 Runtime on that computer, do i still need to install the .NET Framework 4.8 Developer Pack as well?  Or does the runtime installer upgrade both?  I would guess that i need to install both the Runtime and the Developer Pack for version 4.8.  Because the runtime would not have components that are only in the Developer Pack.  Right?

Steps to Install .Net Core Runtime on Debian 10 (Linux) Arm32

$
0
0

Hi Team ,

Can someone mention the steps for the Setup and installation of .net core runtime on Debian 10 (Linux) for ARM32 .

Thanks,

Gowthami

Clarification in VS2017

$
0
0

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...

Microsoft.NET Framework Error

$
0
0
Cannot execute a program. The command being executed was
"C:\WINDOWS\Microsoft.NET\Framework\v3.5\vbc.exe" /noconfig
@"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\testwebsite_componenteditor\2842527e\6911f45c\p1uobvpm.cmdline".

ISSUE: Win2019 Server .Net 3.5

$
0
0
I'm trying to setup and endpoint AV solution on its own 2019 VM. The software requires .Net 3.5.

On a clean Hyper-V installation of Windows 2019 Server, literally nothing else installed, .Net 3.5 fails to install. In fail I mean it halts and sits endlessly until I shut the VM down and I force it to restart.
I've attempted the installation by selecting .Net 3.5 as a Windows 2019 Role.
I've also downloaded a 240MB full install and tried it by specifying a local source folder.
No matter how I approach this the end result is the same, the progress bar goes about 1/2 way and stays there indefinitely.




.NET Framework Uninstall

$
0
0

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

Viewing all 3295 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>