Posts

Showing posts with the label iis

ASP.NET Core 2.0 - HTTP Error 502.5 Process Failure with IIS

Image
Clash Royale CLAN TAG #URR8PPP ASP.NET Core 2.0 - HTTP Error 502.5 Process Failure with IIS I am trying to set up a new version of my application on a server but when I try to access to the web site, I get a HTTP error (502.5 - Process Failure). The service is started and when I check the connection, I don't have any warning. The stdout log : stdout Expression: [Recursive resource lookup bug] Description: Infinite recursion during resource lookup within System.Private.CoreLib. This may be a bug in System.Private.CoreLib, or potentially in certain extensibility points such as assembly resolve events or CultureInfo names. Resource name: ArgumentNull_Generic If I try the dotnet cmd to launch the exe : >dotnet Maquetteur.Web.exe Failed to load the dll from [C:tempMaquetteurWinServer2012_newhostpolicy.dll], HRESULT: 0x7BF030 An error occurred while loading required library hostpolicy.dll from [C:tempMaquetteurWinServer2012_new] In my csproj : csproj <PropertyGroup> <Ta...

Hide non default URL port

Image
Clash Royale CLAN TAG #URR8PPP Hide non default URL port How to hide non default URL port number for IIS and ASP : example: https://myweb.com:4797 - To be > https://myweb.com Writing port number with URL difficult for users and not secure also to show it in the web search bar ? 1 Answer 1 You can give binding to your site on https://myweb.com:4797 NOTE : You can choose binding type https, on my computer was disabled so it is not seen in picture. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Remove iistart.htm?

Image
Clash Royale CLAN TAG #URR8PPP Remove iistart.htm? I am trying to rename (or even remove) iisstart.htm. I have tried the below but it is not doing anything. The result does not change anything: Set-WebConfigurationProperty -PSPath 'MACHINE/WEBROOT/APPHOST' -Filter 'system.webServer/defaultDocument/files/add[@value="iisstart.htm"]' -Name 'value' -Value (@{value="REMOVE_iisstart.htm"}) I used to be able to do this via appcmd: set config /section:system.webServer/defaultDocument /-files.[value='iisstart.htm'] set config /section:system.webServer/defaultDocument /-files.[value='iisstart.htm'] Any idea what is going wrong here? Getting the info back I am using this and it shows nothing as changed when I set a hash table for value=REMOVE_iisstart.htm Get-WebConfigurationProperty -PSPath 'MACHINE/WEBROOT/APPHOST' -Filter 'system.webServer/defaultDocument/files/add' -Name 'value' ...

http://localhost/myapp/assets/i18n/en.json not found when angular 6 code deployed on windows 7 IIS server

Image
Clash Royale CLAN TAG #URR8PPP http://localhost/myapp/assets/i18n/en.json not found when angular 6 code deployed on windows 7 IIS server I am trying deploying my application to IIS server on windows 7 PC. The web address is http://localhost/myapp <configuration> <system.webServer> <rewrite> <rules> <rule name="Angular Routes" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="/MyApp/" /> </rule> </rules> </rewrite> </system.webServer> </configuration> My application runs very good using ...

routing in iis 8.5 for mvc and webapi apps

Image
Clash Royale CLAN TAG #URR8PPP routing in iis 8.5 for mvc and webapi apps I am running windows 8 IIS 8.5. I created my site on IIS and created another site in a directory below for my webapi service So my site looks like this: www.mysite.com www.mysite.com/api // this exists on disk in a directory called api below the site dir. Configured in IIS as a site not a virtual dir. Of course iis is unable to implement routing for either site. ww.mysite.com works if I add /index.html. If I type www.mysite.com into browser I get a 404. The api site simply gives me 404 errors no matter what I do. Both sites work perfectly fine when running in visual studio. www.mysite.com is a mvc 5 application www.mysite.com/api is a webapi 3 application. Some questions such as this one: ASP.NET 4.5 MVC 4 not working on Windows Server 2008 IIS 7 recommend <modules runAllManagedModulesForAllRequests="true" /> which does not work and is suboptimal even if it did work. Other problems others hav...