NuGet / NuGetGallery

NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
https://www.nuget.org/
Apache License 2.0
1.55k stars 643 forks source link

HTTP Error 500.19 on local iis server #3075

Closed titans2016 closed 8 years ago

titans2016 commented 8 years ago

Hi. I downloaded source code and want upload to local iis. I have installed SQL but first I want that site show me main page and then configure connection string. In NugetGallery I set up Local IIS: http://localhost/NuGetGallery. In application pool I setup Identity under administrator user. This project successfully build on my machine. But when I open site I see:

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:

Module IIS Web Core

Notification BeginRequest

Handler Not yet determined

Error Code 0x8007000d

Config Error

Config File \?\D:\Nuget\src\src\NuGetGallery\web.config

What should I change to fix this issue?

maartenba commented 8 years ago

Can you try running on a development machine first, following steps in readme? Also check iis logs/event viewer if possible. And make sure to turn off windows authentication ☺

titans2016 commented 8 years ago

I try to build with build.cmd. But it show me error:

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1820,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. [D:\Nuget\src\src\NuGetGallery.Operations\NuGetGallery.Operations.csproj]

"D:\Nuget\src\build.msbuild" (default target) (1) -> "D:\Nuget\src\packages\NuGet.Services.Build.3.0.13\tools\NuGet.Services.FullBuild.msbuild" (default target) (2) -> "D:\Nuget\src\NuGetGallery.sln" (Build target) (3) -> "D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj" (default target) (7) -> (RunFacts target) -> D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : NuGetGallery.SearchClient.RetryingHttpClientWrapperFacts.FailsWhenNoValidUriGiven1: Assert.Throws() Failure\r\nExpected: typeof(System.AggregateException)\r\nActual: (No exception was thrown) [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : --- End of stack trace from previous location where exception was thrown ---\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : at NuGetGallery.SearchClient.RetryingHttpClientWrapperFacts.<FailsWhenNoValidUriGiven1>d__14.MoveNext() in D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs:line 129\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : --- End of stack trace from previous location where exception was thrown ---\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : --- End of stack trace from previous location where exception was thrown ---\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : --- End of stack trace from previous location where exception was thrown ---\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(129): error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : NuGetGallery.SearchClient.RetryingHttpClientWrapperFacts.FailsWhenNoValidUriGiven2: Assert.Throws() Failure\r\nExpected: typeof(System.AggregateException)\r\nActual: (No exception was thrown) [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : --- End of stack trace from previous location where exception was thrown ---\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : at NuGetGallery.SearchClient.RetryingHttpClientWrapperFacts.d15.MoveNext() in D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs:line 137\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : --- End of stack trace from previous location where exception was thrown ---\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : --- End of stack trace from previous location where exception was thrown ---\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : --- End of stack trace from previous location where exception was thrown ---\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(137): error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(72): error : NuGetGallery.SearchClient.RetryingHttpClientWrapperFacts.ReturnsSuccessResponseForCollectionContainingValidUri: Assert.True() Failure\r\nExpected: True\r\nActual: False [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(72): error : at NuGetGallery.SearchClient.RetryingHttpClientWrapperFacts.d11.MoveNext() in D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs:line 72\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(72): error : --- End of stack trace from previous location where exception was thrown ---\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(72): error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(72): error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(72): error : --- End of stack trace from previous location where exception was thrown ---\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(72): error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(72): error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(72): error : --- End of stack trace from previous location where exception was thrown ---\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(72): error : at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj] D:\Nuget\src\tests\NuGetGallery.Facts\SearchClient\RetryingHttpClientWrapperFacts.cs(72): error : at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) [D:\Nuget\src\tests\NuGetGallery.Facts\NuGetGallery.Facts.csproj]

2 Warning(s)
6 Error(s)

I can build this code in visual studio 2015 but without msbuild argument /tv:14.0 /p:VisualStudioVersion=14.0 /p:ToolsVersion=14.0

I took this code and it's doesn't build. How it's fix?

maartenba commented 8 years ago

Make sure you have VS2015.2 installed, and latest .NET versions. Then run build.cmd from the dev branch.

titans2016 commented 8 years ago

My last .net 4.6.2. My version of visual studio 14.0.25123.00 Update 2. Failed with same error.

maartenba commented 8 years ago

Can you clear the packages folder and all bin/obj folders? (or run git clean -xdf)

titans2016 commented 8 years ago

Same trouble. Maybe it require .Net 4.5.2? I see in msbuild log (for example part): For SearchPath "{TargetFrameworkDirectory}". (TaskId:24) Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.2\System.Core.winmd", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.2\System.Core.dll", but its name "System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" didn't match. (TaskId:24) Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.2\System.Core.exe", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.2\Facades\System.Core.winmd", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.2\Facades\System.Core.dll", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5.2\Facades\System.Core.exe", but it didn't exist. (TaskId:24) For SearchPath "{Registry:Software\Microsoft.NETFramework,v4.5.2,AssemblyFoldersEx}". (TaskId:24) Considered AssemblyFoldersEx locations. (TaskId:24) For SearchPath "{AssemblyFolders}". (TaskId:24) Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.winmd", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll", but its name "System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" didn't match. (TaskId:24) Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.exe", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies\System.Core.winmd", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies\System.Core.dll", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Microsoft SQL Server\130\SDK\Assemblies\System.Core.exe", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Microsoft SQL Server\120\SDK\Assemblies\System.Core.winmd", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Microsoft SQL Server\120\SDK\Assemblies\System.Core.dll", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Microsoft SQL Server\120\SDK\Assemblies\System.Core.exe", but it didn't exist. (TaskId:24) Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\System.Core.winmd", but it didn't exist. (TaskId:24) Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\System.Core.dll", but it didn't exist. (TaskId:24) Considered "C:\Program Files\IIS\Microsoft Web Deploy V3\System.Core.exe", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Microsoft.NET\ADOMD.NET\120\System.Core.winmd", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Microsoft.NET\ADOMD.NET\120\System.Core.dll", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Microsoft.NET\ADOMD.NET\120\System.Core.exe", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.Core.winmd", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.Core.dll", but it didn't exist. (TaskId:24) Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.Core.exe", but it didn't exist. (TaskId:24) For SearchPath "{GAC}". (TaskId:24) Considered "System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes", which was not found in the GAC. (TaskId:24) For SearchPath "bin\Debug\". (TaskId:24) Considered "bin\Debug\System.Core.winmd", but it didn't exist. (TaskId:24) Considered "bin\Debug\System.Core.dll", but it didn't exist. (TaskId:24) Considered "bin\Debug\System.Core.exe", but it didn't exist. (TaskId:24

Considered "D:\Nuget\dev\packages\entityframework.6.1.3\lib\net45\System.Runtime.Serialization.dll", but it didn't exist.

      Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Newtonsoft.Json.dll", but it didn't exist.

Considered "D:\Nuget\dev\packages\Elmah.Contrib.Mvc.1.0\lib\net40\Elmah.dll", but it didn't exist.

      Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\msshrtmi.dll", but it didn't exist.

So it missing huge list of all libraries. I haven't idea how it's fix.

maartenba commented 8 years ago

True, as well as the Azure SDK installed (2.9)

titans2016 commented 8 years ago

Yes. I have installed version Azure SDK 2.9.1. Should I install to older?

maartenba commented 8 years ago

Can you try? Als .NET 4.5.2 may be needed. If all else fails, run a git clean -xdf again and try openign the solution in Visual Studio and build from there, this may give more detailed errors.

titans2016 commented 8 years ago

As I mention earlier in visual studio it's build perfectly success!

maartenba commented 8 years ago

Then you are good to go, no?

You may want to double check your IIS configuration etc. to get it running in there - here are some tips that use request tracing - https://blogs.msdn.microsoft.com/webtopics/2010/03/08/troubleshooting-http-500-19-errors-in-iis-7/

titans2016 commented 8 years ago

But I when create a package from visual studio I can't use it in IIS, because it show me error:HTTP Error 500.19 - Internal Server Error. Msdn said : Delete the malformed XML element from the ApplicationHost.config file or from the Web.config file. So, when I build via Visual Studio is it malformed web config?

maartenba commented 8 years ago

You may want to double check your IIS configuration etc. to get it running in there - here are some tips that use request tracing - https://blogs.msdn.microsoft.com/webtopics/2010/03/08/troubleshooting-http-500-19-errors-in-iis-7/

robertmuehsig commented 8 years ago

Is the ASP.NET feature enabled for your IIS? Can you run other ASP.NET applications? In IIS: Your NuGet website runs with the correct .NET 4.0 AppPool?

titans2016 commented 8 years ago

Yes. I have Server 2012 R2. And Asp.Net 4.5 was installed. Yes. I can run another asp.Net application on IIS. I use default app pool v4.0 under user who is admin on server.

robertmuehsig commented 8 years ago

Mhh... WindowsAuth is disabled? (sometimes, when WindowsAuth is enabled in IIS but disabled via Web.config strange things occure) Could you post a screenshot from your IIS-Manager - something like this https://cloud.githubusercontent.com/assets/756703/15910712/7c8c64d8-2dcc-11e6-85a6-ac152b15c5b9.png ?

titans2016 commented 8 years ago

Ok. So here screen when I try open windows authenticate. https://s31.postimg.org/a6llrp4xn/2016_06_15_16_16_19_10_80_82_127_Remote_Deskto.png And here screen of virtual site https://s32.postimg.org/nrnmkea51/2016_06_15_16_16_42_10_80_82_127_Remote_Deskto.png

titans2016 commented 8 years ago

As I can see WindowsAuth is disabled.

robertmuehsig commented 8 years ago

Mhh - I would guess that the Default Web Site does have a web.config as well, which might be conflicting with your NuGetGallery. Or maybe IIS can't access the path.

Could you try to create a new Website directly under "Sites" and point to your NuGet installation and see if that works? (you might need to disabled the Default Web Site or change the port).

titans2016 commented 8 years ago

Default web site hasn't web config. It's default site. I creates new web site and see same issue: https://s32.postimg.org/73poycwpx/2016_06_15_16_38_25_10_80_82_127_Remote_Deskto.png

robertmuehsig commented 8 years ago

And when you access the Authentication-Settings in IIS you see this "There was an error..." message? If yes, then I would guess that IIS can't access web.config & co. If you could zip the folder I would try it on my machine at home.

titans2016 commented 8 years ago

Yes. This is exactly this error. Sure. Can you download by this google driverhttps://drive.google.com/file/d/0B1cf9uXeYIUVblpSTnN4UzBsNk0/view?usp=sharing

Also I put instead web config, another web config from default site on Visual Studio MVC project, and it show me another error. but no problem with access.

robertmuehsig commented 8 years ago

Mhh... I couldn't reproduce the issue with your zip.

These are the steps I did:

image

image

Result: image

BTW: Just pointing to the NuGetGallery source is not really a good idea, because web.config transformations might not be applied that way. A cleaner way would be to "publish" it (can be done via VS).

AriZoNaiCe commented 8 years ago

This error can also occur when you don't have the URL Rewrite Engine installed on the machine. I would either try installing it or remove that section from Web.config entirely (it's not needed for private galleries, I don't think).

maartenba commented 8 years ago

Closing for now.