Skip to content

Nothing happen when run sample console app (Windows 7 HOME edition) #421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
raviprajapat opened this issue Mar 29, 2015 · 22 comments
Closed
Labels
bug This issue describes a behavior which is not expected - a bug.

Comments

@raviprajapat
Copy link

I follow the all procedural regarding installing DNX and it shows me successfully installed the .net execution environment.
When I going to run the sample console app using command nothing is happen. see the screenshots.

aspnet5

@davidfowl
Copy link
Member

Try setting DNX_TRACE=1 and re-running. That will print more diagnostic information.

@davidfowl
Copy link
Member

Also, what OS are you running on?

@raviprajapat
Copy link
Author

I'm using windows 7 SP1 Home.
Can you let me know how can I enable DNX_TRACE=1 in setting?

@davidfowl
Copy link
Member

in the command prompt set DNX_TRACE=1. You're running .NET 4.5 right?

@raviprajapat
Copy link
Author

Yes I'm running .NET 4.5.
After enable trace setting it shows me "failed to load dnx.clr.dll"

@raviprajapat
Copy link
Author

Please tell me the possible way there I can able to resolve this issue.

@davidfowl
Copy link
Member

It might just be a bug you can't work around. Post the results of running with tracing on:

/cc @troydai @victorhurdugaci @muratg

@victorhurdugaci
Copy link
Contributor

  1. Do you have .NET 4.5.1 installed?
  2. What is the exit code from the app?
  3. What happens if you run on CoreCLR?

@victorhurdugaci
Copy link
Contributor

One more question: what DNX version are you using?

@raviprajapat
Copy link
Author

1 Yes I have installed .NET 4.5.1
2 This is my simple console app code

using System;
public class Program
{
    public static void Main()
    {
        Console.WriteLine("Hello World");
        Console.ReadLine();
    }
}

3 I didn’t tried with CoreCLR. Can you assist me how I can do with this?
4 DNX version is dnx-clr-win-x86.1.0.0-beta5-11427.

@victorhurdugaci
Copy link
Contributor

Sure, here is how to get the app running on CoreCLR:

  1. Run dnvm upgrade -r CoreClr
  2. Run dnvm list. Make sure the CoreCLR runtime is active (should have a star in front of it)
  3. Run the app again

But, before you do that, what is the exit code from the app? In command prompt, you can get it with echo %errorlevel% and in PowerShell with $lastexitcode

@raviprajapat
Copy link
Author

It showing me Faild to load: dnx.CoreClr.dll.
When I using echo %errorlevel% it display `0'.

@troydai
Copy link
Contributor

troydai commented Apr 1, 2015

@raviprajapat Do you have all the Windows Update installed? And also do you have VC++ redistribution installed?

@raviprajapat
Copy link
Author

@troydai Yes I have installed VC++ redistribution 2012 in my PC. My pc also has Visual Studio 2013 ultimate version which means all recently frameworks 4.5.1 is installed as well. Today I also installed the framework 4.5.2.
My system running on Win 7 SP1.

@troydai
Copy link
Contributor

troydai commented Apr 1, 2015

@raviprajapat can you check your event log?

@victorhurdugaci
Copy link
Contributor

Ravi, can you please do this:

  1. Start the application with the debug flag: dnx --debug . run
  2. Attach the VS debugger (native + managed 4.5) to the process
  3. See if you can get more info.

@raviprajapat
Copy link
Author

@troydai which event log? Are you talking about system event log?

@troydai
Copy link
Contributor

troydai commented Apr 1, 2015

Yes, I am. Looking for error/warning registered under dnx.

@raviprajapat
Copy link
Author

@victorhurdugaci On attached debugger
debuginfo

VS debug output message
'dnx.exe' (Win32): Loaded 'C:\Users\user\.dnx\runtimes\dnx-coreclr-win-x86.1.0.0-beta5-11427\bin\dnx.exe'. Cannot find or open the PDB file. 'dnx.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file. 'dnx.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file. 'dnx.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file. 'dnx.exe' (Win32): Loaded 'C:\Users\user\.dnx\runtimes\dnx-coreclr-win-x86.1.0.0-beta5-11427\bin\api-ms-win-core-synch-l1-2-0.dll'. Cannot find or open the PDB file. 'dnx.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file. The thread 0x3590 has exited with code 0 (0x0). The program '[13932] dnx.exe' has exited with code 0 (0x0).

@raviprajapat
Copy link
Author

Nothing I found regarding dnx event logs.

@raviprajapat
Copy link
Author

It strange for me when I did same thing on Win7 Professional SP1 which has installed framework 4.5.1 with VS 2013 it successfully run sample Console App using Aspnet 5.
Is there any restriction for Win 7 Home edition to use Aspnet 5?

@troydai
Copy link
Contributor

troydai commented Apr 6, 2015

/cc @victorhurdugaci @davidfowl @danroth27

@raviprajapat Thank you for letting us know. We indeed are not aware of this particular issue on Windows 7 Home.

@muratg muratg changed the title Nothing happen when run sample console app Nothing happen when run sample console app (Windows 7 HOME edition) Apr 6, 2015
@muratg muratg added the bug This issue describes a behavior which is not expected - a bug. label Apr 6, 2015
natemcmaster pushed a commit that referenced this issue Nov 13, 2018
ryanbrandenburg pushed a commit that referenced this issue Nov 19, 2018
ryanbrandenburg pushed a commit that referenced this issue Nov 19, 2018
Update jquery-validation-unobtrusive (#421)
ryanbrandenburg pushed a commit that referenced this issue Nov 19, 2018
Revert "Update jquery-validation-unobtrusive (#421)"
ryanbrandenburg pushed a commit that referenced this issue Nov 19, 2018
natemcmaster pushed a commit that referenced this issue Nov 30, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue describes a behavior which is not expected - a bug.
Projects
None yet
Development

No branches or pull requests

5 participants