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

WebSite project from IIS fails with illegal characters in path #2798

Closed
emgarten opened this issue May 16, 2016 · 18 comments
Closed

WebSite project from IIS fails with illegal characters in path #2798

emgarten opened this issue May 16, 2016 · 18 comments
Assignees
Labels
Milestone

Comments

@emgarten
Copy link
Member

@MosheL
From: #2601

  1. web project, c:\inetpub\matimim on this error message
  2. solution is on MyDocs, so in my machine it's have a hebrew name (E:\המסמכים שלי)
  3. Install-Package : An error occurred while writing file 'e:\inetpub\matimim\packages.config': Failed to write packages.config as XML file 'e:\inetpub\matimim\packages.config'. Error: 'Illegal characters in path.'.
    the path is correct, tested via copy/paste to CMD (start e:....).

Visual studio 2015 u1 on 3.4.x I have the main problem. I was installed file from github - NuGet.0d421874-a3b2-4f67-b53a-ecfce878063b.3.4.4.870.vsix. this file has the new error message..
Tried to install 3.3, installation failed.
I do not know what the specific version I was used before, but it works on these projects and still working on my other Machine on Web projects with similar configuration (solution in MyDocs, website in IIS folders))

@MosheL
Copy link

MosheL commented May 17, 2016

on my work machine threre is NuGet 3.3.0 (VS 2015.1), works with no problem with similar configuration.

@MosheL
Copy link

MosheL commented May 17, 2016

and "main problem" is bug #2601

@alpaix
Copy link

alpaix commented May 18, 2016

@MosheL Can you share your project/solution? Can be a minimal web site project where this issue repros.

@MosheL
Copy link

MosheL commented May 19, 2016

Any blank IIS web site.
create a website on IIS
Run VS as admin, open website from IIS, open, save solution and try to use NuGet...

@alpaix
Copy link

alpaix commented May 19, 2016

Okay thanks for the details.
What is the project name you see in a tree: http://matimim.home.a7.org/ or matimim.home.a7.org?

@MosheL
Copy link

MosheL commented May 19, 2016

matimim.home.a7.org.slm

with http is full address...

@alpaix
Copy link

alpaix commented May 19, 2016

I see. In #2601 you shared the output:

PM> Install-Package Microsoft.AspNet.Mvc -Version 5.2.3
Attempting to gather dependency information for package 'Microsoft.AspNet.Mvc.5.2.3' with respect to project 'http://matimim.home.a7.org/', targeting '.NETFramework,Version=v4.6.1'

where http://matimim.home.a7.org is a project name. My theory is NuGet attempts to restore using full url for local file path.

I'll try to get a repro myself tomorrow.

@MosheL
Copy link

MosheL commented May 19, 2016

just to note, I do not named the project. VS do it from IIS first Host header if exists, with some changes (localhost:83 will be localhost83.sln).

@alpaix
Copy link

alpaix commented May 19, 2016

Couldn't repro the issue following steps provided by @MosheL .

Used a lab box having installed:

  • Win10 Enterprise (with Hebrew display language)
  • Visual Studio 2015 Update 2
  • NuGet Package Manager 3.4.4 b870

Created new IIS web site and opened it in VS.
Successfully installed NuGet packages:

PM> Install-Package Microsoft.AspNet.Mvc -Version 5.2.3
Attempting to gather dependency information for package 'Microsoft.AspNet.Mvc.5.2.3' with respect to project 'http://nuget456.contoso.com/', targeting '.NETFramework,Version=v4.5.2'
Attempting to resolve dependencies for package 'Microsoft.AspNet.Mvc.5.2.3' with DependencyBehavior 'Lowest'
Resolving actions to install package 'Microsoft.AspNet.Mvc.5.2.3'
Resolved actions to install package 'Microsoft.AspNet.Mvc.5.2.3'
Adding package 'Microsoft.AspNet.Razor.3.2.3' to folder 'C:\המסמכים שלו\תיקיה חדשה\nuget456.contoso.com\packages'
Added package 'Microsoft.AspNet.Razor.3.2.3' to folder 'C:\המסמכים שלו\תיקיה חדשה\nuget456.contoso.com\packages'
Added package 'Microsoft.AspNet.Razor.3.2.3' to 'packages.config'
Successfully installed 'Microsoft.AspNet.Razor 3.2.3' to http://nuget456.contoso.com/
Adding package 'Microsoft.Web.Infrastructure.1.0.0' to folder 'C:\המסמכים שלו\תיקיה חדשה\nuget456.contoso.com\packages'
Added package 'Microsoft.Web.Infrastructure.1.0.0' to folder 'C:\המסמכים שלו\תיקיה חדשה\nuget456.contoso.com\packages'
Added package 'Microsoft.Web.Infrastructure.1.0.0' to 'packages.config'
Successfully installed 'Microsoft.Web.Infrastructure 1.0.0' to http://nuget456.contoso.com/
Adding package 'Microsoft.AspNet.WebPages.3.2.3' to folder 'C:\המסמכים שלו\תיקיה חדשה\nuget456.contoso.com\packages'
Added package 'Microsoft.AspNet.WebPages.3.2.3' to folder 'C:\המסמכים שלו\תיקיה חדשה\nuget456.contoso.com\packages'
Added package 'Microsoft.AspNet.WebPages.3.2.3' to 'packages.config'
Successfully installed 'Microsoft.AspNet.WebPages 3.2.3' to http://nuget456.contoso.com/
Adding package 'Microsoft.AspNet.Mvc.5.2.3' to folder 'C:\המסמכים שלו\תיקיה חדשה\nuget456.contoso.com\packages'
Added package 'Microsoft.AspNet.Mvc.5.2.3' to folder 'C:\המסמכים שלו\תיקיה חדשה\nuget456.contoso.com\packages'
Added package 'Microsoft.AspNet.Mvc.5.2.3' to 'packages.config'
Successfully installed 'Microsoft.AspNet.Mvc 5.2.3' to http://nuget456.contoso.com/

@MosheL
Copy link

MosheL commented May 19, 2016

Hi.

  1. I am using U1 (tried to update to U2, install fail sliently)
  2. the project foder is E:\inetpub\matimim\www\packages.config. it not on the solution folder, but in IIS's folder. maybe can change something ?

Thanks !

@rrelyea rrelyea modified the milestones: 3.4.5, 3.4.4 May 20, 2016
@rrelyea rrelyea modified the milestones: 3.5 RC, 3.4.5 Jun 3, 2016
@rrelyea
Copy link
Contributor

rrelyea commented Jun 3, 2016

Missing 3.4.5 as we haven't been able to repro.

@MosheL
Copy link

MosheL commented Jun 19, 2016

update: upgraded to 3.4.4. from 3/6, works on ConsoleApp, crashed on one of my IIS projects. on other one the same problem.

@MosheL
Copy link

MosheL commented Aug 17, 2016

update: installed 3.5.0-rc1, VS crashed.

@MosheL
Copy link

MosheL commented Aug 17, 2016

@alpaix
I was found it after all: the solution folder need to be the website folder. on my config the project was in MyDocs but the website was in IIS inetpub folder.

I can attach a debugger to VS ?

@MosheL
Copy link

MosheL commented Aug 18, 2016

Update again: Reinstall entire Visual Studio u3. still not working,

@MosheL
Copy link

MosheL commented Sep 14, 2016

Update again: same machine, other User Account - works.

@MosheL
Copy link

MosheL commented Dec 7, 2016

problem found: Hebrew Date on the machine. switched to Gregorian date, and installed.

image

@emgarten
Copy link
Member Author

The date issue has been fixed.

@emgarten emgarten modified the milestones: Future-1, 4.6 Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants