I am testing a static website project in VS11 beta to check its capabilities to handle HTML, CSS, JS code and the great built-in browser (Page inspector) for live manipulation of the page. All those wonders I watched on a channel 9 video. 8-)
Unfortunately, my website has SSI for header, footers and common partials which VS's page inspector or any browser doesn't render at debug time. It appears to me ASP .NET Development Server has to be configured for SSI which I don't have any clue how and I can't find help anywhere. I know better way to do is to use the server-side script, but same website is already deployed on a hosting server running IIS 7.0 and working like a charm.
Any thoughts?
Related
I am trying to enable ASP Classic on my local PC windows 8.1. I have followed the steps to enable ASP in this Windows KB > https://learn.microsoft.com/en-gb/iis/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis#installing-classic-asp-on-windows-8-or-windows-81
However when I go to the simple ASP Classic page I have created in a folder under inetpub/wwwroot/test/test.asp which just tries to do a simple Response.Write("TEST") on the page when I go to file:///C:/inetpub/wwwroot/test/test.asp all I see is my ASP code in text on the page. I enabled ASP, ISAPI filters and anything else that seemed relevant but it doesn't seem to run.
Is there not a VBScript DLL that needs to be enabled somewhere that isn't present in the Application Development Features under World Wide Web Services as I thought both VBScript and the ASP DLLS were needed to run ASP Classic?
Anyway I followed the KB article and still all I see are the text of the ASP page when I go to the local URL.
I also have WAMPServer installed on my PC but I have that under a different port 8888 so that I can toggle between the two. I have no problems starting WAMP and running PHP code it is just the IIS I am having issues with.
If I just enable IIS and go to localhost I get the default IIS page e.g file:///C:/inetpub/wwwroot/iis-85.png but I cannot get the ASP code to actually execute, it just shows up as text on the page.
How can I get this to work? I never used to have problems switching between the two servers ASP and WAMP but after a factory reset on this laptop I am having issues.
I have a aspnetcore webapi application,i want run it in iis(not vs iis),and dont publish the app,just in use the develop file like:
app develop file
because i dont want publish my app into iis every time I change code
I don't want to see the swagger page only I start vs
I set the iis site path to app develop folder but I get the error code:403.14
error page
Check this article
There should be very few reasons for you to run IIS during
development. Yes, in the past there were very good reasons to run full
IIS because there were always a number of things that behaved very
differently in full IIS compared to IIS Express.
However, with ASP.NET
Core there's little to no reason to be running full IIS during
development.
You could use dotnet-cli to run your api
You cannot fight the fight that is doomed to fail,
https://blog.lextudio.com/how-visual-studio-launches-iis-express-to-debug-asp-net-core-apps-d7fd3677e3c3
Visual Studio uses a trick, which I documented with full detail in the blog post, to run ASP.NET Core apps on IIS/IIS Express. So you only options are,
Use Visual Studio.
Publish the app and then run it on IIS.
There is no obvious third option.
A web page in any web browser can invoke Windows 10 UAP via a protocol link.
Is there way to detect in the web page itself in a web browser if specific Windows 10 app is already installed?
No, unfortunately, you can't do that using javascript.
That wouldn't be anything good for security.
However, you can check if MIME type is supported, but it has to be installed in a browser.
Refer to https://stackoverflow.com/a/34044915/3000331
Web Essentials for Visual Studio 2012 just hit version 3.0 where they support generation of pre-gzipped files, but I can't figure out how to make it work? Do I have to add some http headers or something in IIS or something specific for css / js files in the web.config?
I've been trying to deploy a quite simple website based on ServiceStack with Razor view engine to a newly installed Windows Server 2012 box.
It works fine on my Win 7 developer machine, but once on win 2012 iis 8 this happens:
GET /Home : Renders and returns just my Homes.cshtml view, with no sign of my _Layout.cshtml, so no stylesheets or scripts are loaded.
GET /Customers : Nothing. Just the "standard" ServiceStack page. No sign of either Customers.cshtml or _Layout.cshtml
GET /System : Renders and returns my Systems.cshtml, no sign of my _Layout.cshtml
Anyone got an idea?
Seems configuration of iis8 might not be all that compatible with my iis7 developer configuration.
Seems Visual Studio did not pack all the views correctly in the publish package. A little fiddling with the build actions and it worked fine. Some of the views had build action "None", while others had "Content". (So much hassle for so little)