none
NET Framework Hatası

    Soru

  • Merhaba yaptığım bir windows projesini windows server 2016 üstünde çalıştırmayı denediğimde aşıdaki hatayı almaktayım.

    Bu hatayı nasıl çözebilirim, teşekkürler.

    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 Bot.container.<LoginOl>d__4.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
    
    
    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3062.0 built by: NET472REL1
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    Bot
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///C:/Users/Administrator/Desktop/New%20folder/Bot.exe
    ----------------------------------------
    System.Windows.Forms
        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.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        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/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        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.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.3081.0 built by: NET472REL1
        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.3062.0 built by: NET472REL1
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Data
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3081.0 built by: NET472REL1
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Transactions
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3062.0 built by: NET472REL1
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
    ----------------------------------------
    System.EnterpriseServices
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3062.0 built by: NET472REL1
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ----------------------------------------
    System.Runtime.Caching
        Assembly Version: 4.0.0.0
        Win32 Version: 4.7.3062.0
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Caching/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Caching.dll
    ----------------------------------------
    System.Numerics
        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.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.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.
    
    

    Program bir veri çekme programı. Bir kaç işlem yaptıktan sonra hata vermekte.
    • Düzenleyen Kenshai 22 Mayıs 2019 Çarşamba 01:54
    22 Mayıs 2019 Çarşamba 01:52

Tüm Yanıtlar

  • Null reference diyor =) 

    Hatta hatayı MoveNext() komutunda aldığınız da yazıyor, muhtemelen null olan bir koleksiyon üzerinde işlem yapıyorsunuz. 


    furkanardogan.com

    22 Mayıs 2019 Çarşamba 15:33
  • Yanıtınız için teşekkürler. Bu hatayı düzelttim fakat bu seferde başka bir net framework hatası almaktayım.

    Hata içeriği

    ************** Exception Text **************
    System.ComponentModel.Win32Exception (0x80004005): Access is denied
       at System.Windows.Forms.SendKeys.SendInput(Byte[] oldKeyboardState, Queue previousEvents)
       at System.Windows.Forms.SendKeys.Send(String keys, Control control, Boolean wait)
       at System.Windows.Forms.SendKeys.SendWait(String keys)
       at Bot.picture.<pictures>d__8.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)


    Anladığım kadarıyla sanırım async ile sendkey kullandığım için hata veriyor. Nasıl düzeltebilirim bu hatayı?

    Kullandığım kodlar

            static async Task Bekle(int ms)
            {
                await Task.Delay(ms);
            }


    private async void islem()
    {
    ...
    await Bekle(10000);
    ...
    }

    DN: Projeyi kendi bilgisayarımda(win 10 64 bit) veya başka bir bilgisayarda çalıştırdığımda böyle bir hata almıyorum. Sunucu bilgileri windows server 2016 64 bit.


    • Düzenleyen Kenshai 22 Mayıs 2019 Çarşamba 21:27
    22 Mayıs 2019 Çarşamba 21:23