I have an MVC5 intranet app with windows authentication. Mine is a home computer not on the network/domain. I run the app from VS2013. When I log in to the app as current Logged In user, everything works fine.
I have created few other administrator accounts on my machine. When i log in to the app with one of them (for testing purposes), the scripts and css does not load.
I tried setting allow users="*" under authorization. But it doesn't work.
Any idea on this?
There were errors in the actions i had used and hence not loaded properly. Changed them to HTMLActionLinks and it worked perfect for all scenarios virtual directories and website.
Related
I have an Umbraco website on my Azure app service and it is working fine. I want to bring the site down nicely to do some maintenance so I've added created an "app_offline.htm" file and when I put it on the root of my website locally (on my machine IIS 10, windows 10) it immediately shut downs the website.
But when I copy the file to the root directory of my website on app service (D:\home\site\wwwroot> using KUDU) it doesn't do anything.
What should I do?
The answer for the next person who faces this problem
Ok, I've restarted my app service and it made the app_offline work fine as evilSnobu mentioned in the comment.
Also, recycling the app should work. I've changed my webconfig (added one space somewhere ) and the app_offline started to do its job! :)
The platform is IIS on Win8.1
The project is created from the Durandal project template. No changes are made, and the project is run: the Durandal start kit appears in a web browser.
The project is deployed to a folder D:\Client
IIS manager is used to map a virtual application off the default web to D:\Client. The app pool for this is specified as DefaultAppPool which on my machine is set to FX4.0 and runs with my user credentials. Deliberately setting it to FX2.0 produces a 502 as expected. This implies that the FX version is not the problem.
http://localhost/Client produces the splash screen but the app hangs there. Using the browser's own debugger reveals that main has NOT been executed.
Loaded:
bootstrap.js
jquery-1.9.1.js
knockout 2.3.0.debug.js
require.js
Has anyone experienced this and what did you do to resolve it?
Virtual Directories are created to serve static content as far as I understand. ( Just a subfolder of another application ). As the StarterKit runs using MVC4/5 you need also ASP.NET support thus creating a normal application ( parallel to defaultapp ) should do the trick.
If you did that already that way maybe you're missing some files. Had a situation where some files weren't deployed ( eg. the views folder ). Double check if those are present.
Here is my scenario. I have a website running under "AppPool1" and that works fine. I created a new application ("test") within that site and set that to use "AppPool2".
The problem is that http://mysite.com works, but http://mysite.com/test does not. I get a 500.19 error. If I switch it back to use "AppPool1" it works fine.
Am I misunderstanding the purpose of an application pool? I thought you could do what I'm trying to accomplish? Are the app pools only supposed to be assigned to separate sites, not applications within a site?
I've tried recreating the app pools and assigning permissions to the directory of the application with no success.
Problem solved. Make sure your root folder has the IIS AppPool\apppoolname permissions on it as well. Even if the application is in a different directory
I was running my application with no errors locally, but when added Windows Azure project, set up the database config, generated the packages and ran in stage mode, I just can get 500 internal errors.
My app has some redirections for logged and non logged users.
I tried to follow some answers about the problem with no results. When I run the application locally with the emulator everything runs ok.
I didn't set any permission or user anywhere in my SQL or Windows Azure panel. As I don't have any experience with Windows Azure, please explain steps on how to do things =)
Now, after reading almost 20 articles, I realized that I was using the old Membership and Session Providers, and that the old aspnet_regsql doesn't fit Windows Azure.
So, the first action of my application was watch if the user was logged in. Because of that, the 500 Internal errors.
Articles that helped me a lot:
http://geekswithblogs.net/ranganh/archive/2011/06/21/using-the-asp.net-membership-api-wish-sql-server--sql.aspx
http://www.hanselman.com/blog/IntroducingSystemWebProvidersASPNETUniversalProvidersForSessionMembershipRolesAndUserProfileOnSQLCompactAndSQLAzure.aspx
Hi
My app works fine when run from VSWEBdeveloper10.
But from IIS7.5, it doesnt apply stylesheets at all.
I have checked paths.
When I try to access stylesheet directly from browser, it redirects to the app's login page, and after logging in, it shows a weird sqlserver error.
Dont know how it relates CSS to sqlserver.
Note that, app works perfectly fine with VSWebDeveloper2010 while debugging.
Are you running the application as a virtual directory under the default website on port 80? If so, then your stylesheets and images are possibly not being found because the pathing is now incorrect according to the root of the default website. What works is if you actually create a new website on a separate port. Then your stylesheets will be found without a problem.