Skip to content
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

K Web crashes when changing to net45 CLR after having changed to CoreCLR #7

Closed
ctorre opened this issue Apr 28, 2014 · 3 comments
Closed

Comments

@ctorre
Copy link

ctorre commented Apr 28, 2014

Reproduced by just testing the HelloWeb Sample:

  1. Run "k web" the first time over net45 CLR --> Works over net45
  2. Change to Core-CLR with "set TARGET_FRAMEWORK=k10"
  3. Run "k web" over CORE-CLR --> Works on Core-CLR
  4. Change to net45-CLR with "set TARGET_FRAMEWORK=net45"
  5. Run "k web" on CORE-CLR --> Crashes (see error below):

On the other hand, if I set TARGET_FRAMEWORK to empty ("set TARGET_FRAMEWORK="), then, it works on net45 CLR, like "by default CLR".
I think it should work with the environment variable set to "net45", too.

C:\Users\cesardl\Documents\GitHub\Preview\samples\HelloWeb>k web
Loaded Module: klr.net45.dll
Found DLL Export: CallApplicationMain

Unhandled Exception: System.AggregateException: One or more errors occurred. ---
> System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)

   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPath
Length, Boolean expandShortPaths)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at klr.hosting.RuntimeBootstrapper.<Execute>d__1.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceled
Exceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotifica
tion)
   at System.Threading.Tasks.Task`1.get_Result()
   at DomainManager.Main(Int32 argc, String[] argv)
@rjdudley
Copy link

rjdudley commented May 1, 2014

I can replicate this issue also. Once this happens, it prevents any application from running again. I have to close the command window to clear the error.

@Praburaj
Copy link

Praburaj commented May 1, 2014

To run it on net45 just clear the value of the env variable SET TARGET_FRAMEWORK= rather than setting it to net45.

@glennc
Copy link
Contributor

glennc commented May 13, 2014

Switching between Core CLR and Desktop has now changed completely. This error should not happen anymore.

@glennc glennc closed this as completed May 13, 2014
04050564 pushed a commit to 04050564/Home that referenced this issue Dec 11, 2017
ryanbrandenburg pushed a commit that referenced this issue Nov 20, 2018
…ying on finalizer running). Helps with #7 but still doesn't cover all cases.
ryanbrandenburg pushed a commit that referenced this issue Nov 21, 2018
Adds CookiePath to SessionDefaults
ryanbrandenburg pushed a commit that referenced this issue Nov 21, 2018
Add AppVeyor, Travis build status
ryanbrandenburg added a commit that referenced this issue Jul 8, 2019
merge

Co-authored-by: Pranav K <prkrishn@hotmail.com>
Co-authored-by: null <dotnet-maestro-bot@microsoft.com>
Co-authored-by: Justin Kotalik <jukotali@microsoft.com>
Co-authored-by: Arthur Vickers <ajcvickers@hotmail.com>
Co-authored-by: Nate McMaster <natemcmaster@users.noreply.github.com>
Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Co-authored-by: Balint Farkas <balint.farkas@windowslive.com>
Co-authored-by: Mikael Mengistu <mikaelm12@users.noreply.github.com>
Co-authored-by: Brennan <brecon@microsoft.com>
Co-authored-by: Chris Ross <Tratcher@Outlook.com>
Co-authored-by: Kahbazi <A.Kahbazi@gmail.com>
Co-authored-by: Hao Kung <HaoK@users.noreply.github.com>
Co-authored-by: Javier Calvarro Nelson <jacalvar@microsoft.com>
Co-authored-by: David Fowler <davidfowl@gmail.com>
Co-authored-by: Stephen Halter <halter73@gmail.com>
Co-authored-by: Ryan Brandenburg <rybrande@microsoft.com>
Co-authored-by: John Luo <johluo@microsoft.com>
Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
Co-authored-by: Ajay Bhargav Baaskaran <ajaybhargavb@gmail.com>
Co-authored-by: Andrew Stanton-Nurse <andrew@stanton-nurse.com>
Co-authored-by: null <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jacques Eloff <joeloff@users.noreply.github.com>
Co-authored-by: Dylan Dmitri Gray <d.dylan.g@gmail.com>
Co-authored-by: Ryan Nowak <rynowak@microsoft.com>
Co-authored-by: Alessio Franceschelli <alessio@franceschelli.me>
Co-authored-by: Loïc Sharma <sharma.loic@gmail.com>
Co-authored-by: Arthur Irgashev <arthur.irgashev@gmail.com>
Co-authored-by: Kevin Pilch <kevinpi@microsoft.com>
Co-authored-by: dudu <dudu@cnblogs.com>
Co-authored-by: Fabien Barbier <8518235+GoldenCrystal@users.noreply.github.com>
@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
None yet
Projects
None yet
Development

No branches or pull requests

4 participants