Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

cant browse site #1

Closed
dndndn77 opened this issue Jan 25, 2016 · 14 comments
Closed

cant browse site #1

dndndn77 opened this issue Jan 25, 2016 · 14 comments
Assignees
Labels
question This is probably good for user-oriented problems.

Comments

@dndndn77
Copy link

hi
i download the files and installed and when i try to browse the site my browser is write loading..with
red icon and nothing hapend.
please your help
thanks
dan

@mariodivece mariodivece added the help wanted Usually used alongside a bug / enhancement / shouldfix label Jan 26, 2016
@mariodivece mariodivece self-assigned this Jan 26, 2016
@mariodivece
Copy link
Member

Did you follow the Installation Instructions on IIS located in the README.md file? If so, did you try to troubleshoot the issue with the recommended reading: http:https://www.strathweb.com/2015/12/running-asp-net-5-website-on-iis/
Go to the section "Resolving Errors". What version of Windows Server/IIS are you using?

@mariodivece mariodivece added question This is probably good for user-oriented problems. and removed help wanted Usually used alongside a bug / enhancement / shouldfix labels Jan 26, 2016
@dndndn77
Copy link
Author

hello
i have IIS 8.5 and server 2012.
i follow the instructions several times and i have the same behavier all
the time.
which version i need to download? i tried the original and after that i
download the latest and still cant get the site.
thanks
dan

2016-01-26 5:13 GMT+02:00 Mario Di Vece [email protected]:

Did you follow the Installation Instructions on IIS located in the
README.md file? If so, did you try to troubleshoot the issue with the
recommended reading:
http:https://www.strathweb.com/2015/12/running-asp-net-5-website-on-iis/
Go to the section "Resolving Errors". What version of Windows Server/IIS
are you using?


Reply to this email directly or view it on GitHub
#1 (comment).

@mariodivece
Copy link
Member

Did you try the suggestions on issue #2 ?

@jwhipp
Copy link

jwhipp commented Feb 1, 2016

Same issue here, tried suggestions of issue 2. Installs a bunch of stuff but connecting to the site just times out. It's like it's not firing up.

Same configuration, IIS on 2012 R2

@mariodivece
Copy link
Member

did you try adding an http binding on localhost, port 9696 and opening up a web browser on the same server and navigating to http:https://localhost:9696 ?
You guys may have your Windows Firewall blocking traffic or an external firewall may not be allowing traffic through. Can you give it a try and let me know?

@Abyssar
Copy link

Abyssar commented Feb 3, 2016

i had the same issue (Server 2012 / IIS 8).. so i enabled logging in the web.config file and fired up the website.

I noticed the following entry in the logs:

Error: Unable to load application or execute command 'Microsoft.AspNet.Server.Kestrel'. Available commands: web.
System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http:https://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
at System.Reflection.Assembly.LoadFile(String path)
at Microsoft.Dnx.Runtime.Loader.LoadContext.LoadFile(String assemblyPath)
at Microsoft.Dnx.Runtime.Loader.PackageAssemblyLoader.Load(AssemblyName assemblyName, IAssemblyLoadContext loadContext)
at Microsoft.Dnx.Runtime.Loader.PackageAssemblyLoader.Load(AssemblyName assemblyName)
at Microsoft.Dnx.Host.LoaderContainer.Load(AssemblyName assemblyName)
at Microsoft.Dnx.Host.DefaultLoadContext.LoadAssembly(AssemblyName assemblyName)
at Microsoft.Dnx.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(AssemblyName name, Func`2 factory)
at Microsoft.Dnx.Runtime.Loader.LoadContext.LoadAssemblyImpl(AssemblyName assemblyName)
at Microsoft.Dnx.Runtime.Loader.LoadContext.ResolveAssembly(Object sender, ResolveEventArgs args)
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)

So I removed the Zone.Identifier which can be found in the ntfs alternate stream from all files so the server thinks that these files were created locally.. et voila.. the site runs fine.

@dndndn77
Copy link
Author

dndndn77 commented Feb 3, 2016

hello
can you please explain what i need to do exactaly ?
thanks

2016-02-03 13:29 GMT+02:00 Abyssar [email protected]:

i had the same issue (Server 2012 / IIS 8.5).. so i enabled logging in the
web.config file and fired up the website.

I noticed the following entry in the logs:

Error: Unable to load application or execute command
'Microsoft.AspNet.Server.Kestrel'. Available commands: web.
System.NotSupportedException: An attempt was made to load an assembly from
a network location which would have caused the assembly to be sandboxed in
previous versions of the .NET Framework. This release of the .NET Framework
does not enable CAS policy by default, so this load may be dangerous. If
this load is not intended to sandbox the assembly, please enable the
loadFromRemoteSources switch. See
http:https://go.microsoft.com/fwlink/?LinkId=155569 for more information.
at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence
evidence)
at System.Reflection.Assembly.LoadFile(String path)
at Microsoft.Dnx.Runtime.Loader.LoadContext.LoadFile(String assemblyPath)
at Microsoft.Dnx.Runtime.Loader.PackageAssemblyLoader.Load(AssemblyName
assemblyName, IAssemblyLoadContext loadContext)
at Microsoft.Dnx.Runtime.Loader.PackageAssemblyLoader.Load(AssemblyName
assemblyName)
at Microsoft.Dnx.Host.LoaderContainer.Load(AssemblyName assemblyName)
at Microsoft.Dnx.Host.DefaultLoadContext.LoadAssembly(AssemblyName
assemblyName)
at Microsoft.Dnx.Runtime.Loader.AssemblyLoaderCache.GetOrAdd(AssemblyName
name, Func`2 factory)
at Microsoft.Dnx.Runtime.Loader.LoadContext.LoadAssemblyImpl(AssemblyName
assemblyName)
at Microsoft.Dnx.Runtime.Loader.LoadContext.ResolveAssembly(Object sender,
ResolveEventArgs args)
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly,
String assemblyFullName)

So I removed the Zone.Identifier which can be found in the ntfs alternate
stream from all files so the server thinks that these files were created
locally.. et voila.. the site runs fine.


Reply to this email directly or view it on GitHub
#1 (comment).

@benclaussen
Copy link

@dndndn77 I resolved the same issue by doing the following (Windows Server 2012R2, sourced from http:https://blogs.msdn.com/b/sujitdmello/archive/2015/04/23/step-by-step-installation-instructions-for-getting-dnx-on-your-laptop.aspx)

  1. Ensured .NET 4.5.2 was installed from http:https://www.microsoft.com/en-us/download/details.aspx?id=42643
  2. Ensured Powershell v4 was installed by checking $PSVersionTable.PSVersion for 4.0
  3. Installed Visual C++ 2013 Redistributable from http:https://www.microsoft.com/en-us/download/details.aspx?id=40784
  4. Ran the following in elevated Powershell (sets branch to dev, then downloads and installs DNVM)
    $Branch='dev'; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))

Once I finished that, I followed the comments from https://github.com/unosquare/passcore/issues/2#issuecomment-174886322 by running dnu restore from a command prompt in the directory passcore\approot\src\Unosquare.PassCore.Web

It completed telling me there were 97 packages restored to passcore\approot\packages

Everything worked after these steps.

@mariodivece
Copy link
Member

Looks like @benclaussen has provided detailed instructions on how to make it work when you run into issues. I'll add a link to this post on the main REDME file.

@crathermel
Copy link

👍 @benclaussen - There are no steps about installing dnx in the README, or any other dependancies. Looks like this was key to getting it to actually load.

@tbusche
Copy link

tbusche commented Sep 27, 2016

I have PassCode installed and the page comes up, but when I try to change a password, I get the error, "There was an error changing your password
Error Information: The specified directory service attribute or value does not exist. "

Any ideas?

@masanarchy
Copy link

Getting the following error when trying to download and install DNVM. Appreciate the help.

error

@mariodivece
Copy link
Member

@masanarchy Unfortunately, this has nothing to do with PassCore itself. Try:
https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1
Note the 1 (NOT l as you seem to have specified) in the ps1 extension
Additionally, please refer to:
https://blogs.msdn.microsoft.com/sujitdmello/2015/04/23/step-by-step-installation-instructions-for-getting-dnx-on-your-windows-machine/

@masanarchy
Copy link

That did. Stupid mistake. Thanks @mariodivece

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question This is probably good for user-oriented problems.
Projects
None yet
Development

No branches or pull requests

8 participants