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

How can I add a datasource to an xmlfile in app.config?

$
0
0

I have tried below code. its not working for me. can you please help me here to resolve it using config file.

TestCase-

        [TestMethod]
        [DataSource("ClassSectionDataSource")]
       
        public void SC_SmokeTest_US_ViewMemberAccount()
        {
            //Test code
        }

App.config FIle-

<?xml version="1.0" encoding="utf-8"?>
<configuration>


  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="" culture="neutral" />
        <bindingRedirect oldVersion=".....0.0.0" newVersion="...0.0.0" />
      </dependentAssembly>
    </assemblyBinding>


    <configSections>

      <section name="microsoft.visualstudio.testtools" type="Microsoft.VisualStudio.TestTools.UnitTesting.TestConfigurationSection, Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

    </configSections>

    <connectionStrings>

      <add name="ClassSectionConString" connectionString="D:\\..\\..n\\ServiceCloud Tests\\...\\QA4\\TestCloudData.US.xml" providerName="Microsoft.VisualStudio.TestTools.DataSource.XML"/>

    </connectionStrings>

    <microsoft.visualstudio.testtools>

      <dataSources>

        <add name="ClassSectionDataSource" connectionString="ClassSectionConString" dataTableName="SmokeTestData" DataAccessMethod="Sequential"/>

      </dataSources>

    </microsoft.visualstudio.testtools>
  </runtime>
</configuration>


Please help me here.


jitDebugging error

$
0
0
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at imstrayicon.MainForm.ReadRegistry()
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
imstrayicon
Assembly Version: 6.0.5830.12
Win32 Version: 6.0.5830.12
CodeBase: file:///C:/Program%20Files/Dell%20Support%20Center/imstrayicon.exe
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5442 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.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. 

what can i do about it?

Can't download NET Framework 3.5

$
0
0

downloading program that is requiring computer to load NET Framework 3.5. Keeps giving error 0x80070002.

can't seem to solve, please help

Windows 2008 R2 SP1 failed to update KB4503548

$
0
0

Failed to install update KB4503548 on Win2008 R2 SP1 for .Net Framework 4.8

Currently installed .Net Framework 3.5.30729.5420, no higher version.

Error with Code 13EC, error message says blocked issue. I have checked compatibility option is not ticked. Also update KB947821 which is update hot fix

I also tried install Other .Net Framework eg 4.0 4.5 all got same issue.

Anyone got solutions? 

.NET Framework 3.5 doesn't install. Windows 10.. Error code: 0x800F081F

$
0
0

When I try to enable the .NET Framework from windows features I got this message
Windows couldn't find required files to complete the requested changes. Make sure you're connected to the internet and try again.

Error code: 0x800F081F

(BTW the internet connection is fine, i think the problem may be in the update center)

I did every thing yet it still not working,

I already try this:

1- Installing .net3.5 from the installer and the package 

2-installing it from the command prompt
3- installing it from distribuion CD, mounted ISO, or folder Sources\sxs folder copied to hard drive (including using /LimitAccess switch).

4-from  *Windows features on or off* 

5- From the group police (then administrator then system then specify settings for opt.. ) I found that *contact windows update dir..* is enabled and ok

6-No success with DISM method of scanhealth & restorehealth, although these run OK.

7- many people say that i have to  Uninstall  KB2966826 and KB2966828, then try installing 3.5 from programs and features... but unfortunately I didn't find those updates -I neither found them in update history nor from control panel - 

the error i found every time is "the system cannot find the file specified error code 0x80070002"

Can any one helpd please, I really to fix it ASAP.


Corrupted Microsoft .NET framework

$
0
0
I tried the link in the previous replies and i get <header class="page-header" style="box-sizing:border-box;padding-bottom:0px;margin:0px;border-bottom:1px solid rgb(238, 238, 238);color:#555555;height:36px;font-family:'Segoe UI', Tahoma, Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:14px;">

Oops! That page can’t be found.

</header>

It looks like nothing was found at this location. Maybe try a search?

My computer won't even scan my virus scanner. I need this fixed and fast

The antiforgery token could not be decrypted

$
0
0
Hello, I am facing an issue with .NET Authorization. Application built usingASP.NET  Core 3.0 and using Cookie Authentication & authorization. Error in the logs shows Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The antiforgery token could not be decrypted. ---u003e System.Security.Cryptography.CryptographicException: The key {XXXXXXXXXXXXXXXXXXXXXX} was not found in the key ring. I have used ASP.NETData Protection to store Keys persistently in prostgreSQL database. Deployment environment: 4 cluster on Kubernetes on CentOS 7 Operating. Looking forward for any help in this regards to resolve the issue.

Сannot run Windows Server Migration Tools because a required version of .NET Framework is not installed

$
0
0

Hi! I'm trying to complete migration from Windows Server 2012 R2 to Windows Server 2016. My task is to migrate local groups and users in them (local and domain). There is a guide on technet.microsoft.com. On my target server (Windows Server 2016)  I've created Windows Server Migration Tools deployment folder (SmigDeploy.exe /package). Copied this folder to source server (Windows Server 2012 R2) and I need to Register Windows Server Migration Tools on source computers. That's where I've got error:

C:\SMT_ws12_amd64>.\Smigdeploy.exe
SmigDeploy.exe is checking for prerequisites.
--------------------------------------------------------------------------------

Error: You cannot run Windows Server Migration Tools because a required version of .NET Framework is not installed on the server. Install .NET Framework 2.0 or a newer release of .NET Framework on the migration source server, and install .NET Framework 4.0 or a newer release of .NET Framework on Windows Server 2012 and newer releases of the Windows Server operating system, and then run this command again.

I've installed .NET framework v 3.5 and 4 feature installed features

I've also installed:

  • NDP452-KB2901907-x86-x64-AllOS-ENU (.NET Framework 4.5.2)
  • KB2975061-x64
  • KB2919355-x64
  • KB2932046-x64
  • KB2934018-x64
  • KB2937592-x64
  • KB2938439-x64
  • KB2959977-x64
  • NDP462-KB3151800-x86-x64-AllOS-ENU (.NET Framework 4.6.2)

And tried to use Microsoft .NET Framework Repair Tool with no luck.


.Net Update KB4486105 being automatically installed

$
0
0

Hi everyone, having some problems with a .NET feature update KB4486105.  It seems that this update has installed automatically on 2 of my servers and has caused problems on at least 1 of them that I'm aware of.  We checked in WSUS and the update is not approved.  I checked Windows Update and it says for Windows Only will I receive updates and I also don't see it in the update history.  I find it referenced in the DISM logs and the CBS logs.  Is there a mechanism in .NET that performs automatic updates that I'm not aware of?  I'm trying to seek the source of this update but really am having trouble doing so.

Thank you in advance.

error code 'Bad sequence of commands. response Authentication Required at system.net.mail.smtpexception' etc with BIZZ WIZZ program

$
0
0

I received the following error when trying to email an invoice with the program BIZZ WIZZ (version 25)...

"1-System.Net.Mail.SmtpException: Bad sequence of commands. The server response was: Authentication Required at System.Net.Mail.SendMailAsyncResult.End(lAsyncResult result) at System.Net.Mail.StmpClient.SendMailCallback(lAsyncResultresult) 

PLEASE WAIT TILL BUFFER EMPTIES OR CHECK WEB CONNECTION

PRESS OK TO RESEND"

After clicking "Email Invoice",

I tried emailing it as a PDF and " Email as Current Type Status".

From here I select my SMTP as "mail.bigpond.com" as that is our provider. 

The 'from' and 'to' contacts automatically popped up, the subject and message was filled and the document was attached.

When clicking " send message" i received the above error. 

Any help is much appreciated:)

Thank you in advance!!! 

net framework error

$
0
0
error code 0x8007002 net frame work3.5

.NET 0x80224402C install issues

$
0
0

I need to Install .Net 3.5 to make the Solarwinds Engineer Toolset work.  I am one a close network and keep getting the error:0x80224402C  when I install dotnetfx35.exe.  I still get the same kind error (0x800F0954) of when I try to install from the Control Panel -> Features.   

Is there any way to install .NET 3.5 with out being connected to the internet?  I tried the below blog entry but we do not install windows from media so this does not help nor do I have the media of the version we are on. 

https://www.winhelponline.com/blog/error-0x800f0954-net-framework-3-5-optional-feature-dism/

Code 700003

$
0
0

How do I make this code 700003  keep on not coming on my screen when working!!!???

Sitecore content editor/Console throwing System.IO.FileNotFoundException

$
0
0

Hi We have a Sitecore Website implemented in C# .Net, hosted on Windows servers.

Sitecore console throws below error:

Exception: System.Web.HttpUnhandledException

Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.

Source: System.Web

   at System.Web.UI.Page.HandleError(Exception e)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   at System.Web.UI.Page.ProcessRequest()

   at System.Web.UI.Page.ProcessRequest(HttpContext context)

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Nested Exception


Exception: System.IO.FileNotFoundException

Message: Could not find file 'C:\Windows\TEMP\cpdytpn3.dll'.

Source: mscorlib

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)

   at System.IO.File.InternalReadAllBytes(String path, Boolean checkHost)

   at Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames)

   at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)

   at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)

   at Sitecore.CodeDom.Compiler.CSharpCompiler.Compile(String sourceFile, String code, String assemblyFile, StringCollection referencedAssemblies)

   at Sitecore.CodeDom.Compiler.CSharpCompiler.Compile(String code, StringCollection referencedAssemblies)

   at Sitecore.CodeDom.Compiler.CSharpCompiler.SourceToMemory(String code, StringCollection referencedAssemblies)

   at Sitecore.Web.UI.XmlControls.FolderControlSource.BuildControlAssembly(XmlNode fileNode, String& assemblyKey, String& assemblyFile)

   at Sitecore.Web.UI.XmlControls.FolderControlSource.GetControlAssembly(String controlName, String& assemblyKey)

   at Sitecore.Web.UI.XmlControls.FolderControlSource.ResolveType(String controlName, Boolean includeDynamicTypes)

   at Sitecore.Web.UI.XmlControls.ControlSource.GetControlType(String namespacePrefix, String controlName, String mode, Boolean includeDynamicTypes)

   at Sitecore.Web.UI.XmlControls.ControlFactory.GetControlType(String controlName, String mode, Boolean includeDynamicTypes)

   at Sitecore.Web.UI.XmlControls.ControlFactory.GetControl(Control parent, String controlName, String mode, Object[] properties, AllowGenericControl allowGeneric)

   at Sitecore.Shell.DefaultPage.OnInit(EventArgs e)

   at System.Web.UI.Control.InitRecursive(Control namingContainer)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

The dll name differs. We have provided all access to app pool user, we have also tried using network services as application pool Identity.

Kindly Help!

Get latest version - files missing in TFS but available in local folde

$
0
0

I am working with ssis packages with TFS. I checked-in after finishing my work. My teammate had to continue his work, so he get the latest version but he didn't find all the files on the server version but when checking in our local folders we can find them. So we tried to import them like following :

I need to import Employee.dtsx, it is imported as Employee 1.dtsx and when I try to rename to Employee 1.dtsx, I get this following message :

'C:\XXX\Employee.dtsx' already exists in this project.


Cannot update windows 10 and cannot activate Net3.5 always get error code 0x80070002. Nothing seems to work.

$
0
0

After spending the better part of a day trying to get windows 10 to activate Net3.5 and to install update 1909 I have come to the end of the online suggestions.

Why it will not update has the same error code as the Net3.5 returns. Looks like a garbage code to me, it could be so many different things. Glad I've updated to windows 10? In a word No. Feel like I'm somewhat of a hostage, yes.

Microsofts decision to exclude Net3.5 may have been a business decision they thought was logical, but making it this difficult to activate it is unreasonable. 

I would reload windows 10 here were I not concerned I would have more issues as a result.

The command line suggestions do not work. Always comes back that it was 100% then an error message a file cannot be found. The path has been checked and rechecked to the USB drive time and again. Maybe the USB drive method just doesn't work! Or it is wrong! Or I am missing something. I have copied and pasted the command line, changed the file path to match this computer. I have yet to sacrifice a chicken!

In fact none of the suggestions do anything but go into a magnificent do loop of all the other suggestions.

This computer was updated to windows 10  withing the last two months. The USB drive method was used, downloading the executable file online, I actually have two of these USB drives, both downloaded. The sxs folders mentioned in the various suggestions are present however I notice the files contained therein are compressed. No idea if this is a problem.

There are third party software sellers out there that swear their software will fix the error code. There should be a fix offered by Microsoft, if there is I certainly can't locate it. Navigating all of their possibilities even with their virtual assistant is tedious.

I see no place for an e-mail with this forum. I am between three computers, responding to the forum and also to <noakes@stny.rr.com> would be appreciated.

the life cycle of compact framework

$
0
0

Where can I find information on the support period for each version of the .net compact framework?
Is it the same support period as a framework that simply does not have compact?

WPF applications crash on some machines on Windows 7 - clr.dll is faulting module

$
0
0

I am a developer for a local company who deploy a mix of WinForm/WPF and Microsoft Windows Services. 

There are 250-400 machines running this software.  The WPF app will just randomly crash with the familiar error: "MyApp has stopped working". The error does not occur often, but often enough to be noticed, perhaps up to 2 times per day across those 250-400 machines. Production is affected. 

The OS is Windows 7 Professional SP1.


It is important to note that these machines have the latest Microsoft windows updates installed as well as .NET 4.8 runtime.

The following entry is discovered in the Window Event Log under .NET Applications:

Faulting application name: x.exe, version: 15.8.53.7, time stamp: 0x5e209738
Faulting module name: clr.dll, version: 4.8.4069.0, time stamp: 0x5dc6126c
Exception code: 0xc00000fd
Fault offset: 0x00000000000b68e7
Faulting process id: 0x1694
Faulting application start time: 0x01d5d1da1de18339
Faulting application path: C:\x\y\z\MyApp.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Report Id: ddc7d4b5-419b-11ea-9322-00190f1094d7

This particular WPF app has an exception handler which catches many of the exceptions, but not all of them.

What are some things to look at to try to resolve this crash?

.Net Core on Ubuntu 18.04 stuck on setup

$
0
0

I am attempting to install .Net Core Framework on Ubuntu 18.04. 

I am following the guide from Microsoft: https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-1804

Sadly the installation is stuck here

dotnet-sdk-3.1 (3.1.101-1) wird eingerichtet ...
This software may collect information about you and your use of the software, and send that to Microsoft.
Please visit http://aka.ms/dotnet-cli-eula for more information.
Welcome to .NET Core!
---------------------
Learn more about .NET Core: https://aka.ms/dotnet-docs
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs

Telemetry
---------
The .NET Core tools collect usage data in order to help us improve your experience. The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Read more about .NET Core CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry

Configuring...
--------------
A command is running to populate your local package cache to improve restore speed and enable offline access. This command takes up to one minute to complete and only runs once.

Any ideas?

htop ist showing the following process permanently at 3-4% CPU

/usr/share/dotnet exec /usr/share/dotnet/sdk/3.1.101/dotnet.dll internal-reportinstallsuccess debianpackage


Older Exchange CU with latest version of .net

$
0
0

I have come across a site that has Exchange 2016 CU4 installed on a Server 2012 R2 with .net 4.8 I know of the support Matrix but am unsure if it is safe or even possible to downgrade from .net 4.8 to 4.6.2 safely. Anyone else out there done it?

Viewing all 3295 articles
Browse latest View live


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