i created a mvc4 asp.net app using the default template within visual studio 2012. i can build and run the app with no problem.
now im trying to host this in my computer (windows 7 ultimate). i turned on iis in my machine, and i did this :
open iis manager
right click sites and "Add Web Site"
set site name to "site1"
set physical path to "C:\Users\DaFriskyMonkey\Documents\Visual Studio 2012\Projects\mvc4app"
click "Ok"
then i go to "Application Pools" and change".Net Framework version" to "v4.0"
so when i navigate to "localhost" i got this : HTTP Error 401.3 - Unauthorized
You do not have permission to view this directory or page because of the access control list (ACL) configuration or encryption settings for this resource on the Web server.
when i go to "edit permissions" for the "mvc4app" folder "IIS_IUSRS" has "read" permission.
what should i do to make things work properly.
thanks you all.
Related
I am in the deployment phase of two separate asp.net 4.5 web applications being put onto a server running asp.net 4.6. We use a mixture of windows 7 and windows 10. All computers are on the same domain and the server is running IIS 8.5. This intranet application is supposed to use windows authentication to either send a user with invalid credentials to a web page with an error message or give the person access to the site. The problem is that some users are getting prompted to login regardless of security group that they belong to.
I have added the domain to the company wide whitelist and set internet explorer to use automatic windows authentication on intranet websites. We have tried moving the site to a non-shared folder. We finally tried converting both of the web applications to a web site project and the security worked just fine. However, we don't want to use web site projects anymore and find this to be a temporary solution.
I have made certain that authentication has been set to windows.
When checking the IIS logs, I see the error codes 401 0 0 15 and 401 2 5 0. Maybe there is some other setting that we are overlooking when deploying? Any help would be greatly appreciated.
For your application to log in with your network's active directory, you need to configure windows authentication twice, the first one is from your application (Visual Studio) and the second one is in the IIS and you must convert the folder into an application and use the framework version correctly.
Visual Studio:
<system.web>
<authentication mode = "Windows" />
</system.web>
IIS:
Convert the folder to application by right clicking and "Convert to application", then select the application and go to the "Authentication" tab disable "Anonymous authentication" and enable "Windows authentication"
Greetings from Mexico.
I have trouble with working my site on IIS Server.
I read and tried the recommendations from Stack Overflow and other sites, but without success.
When installing the site on the IIS Server Version 10.0.17134.641 (on the my local computer) the following error occurred:
enter image description here
During development everything all worked fine. And when I try to post a site on local IIS Server, such an error occurred. Home page show normal. But when I try to register or log in have error above.
I'm confused because:
1) The publication took place in the "Folder", on the IIS pointed the way to it.
2) I'm install: Runtime & Hosting Bundle 2.2.3 for ASP.NET Core/.NET Core on Windows from this site: https://dotnet.microsoft.com/download/thank-you/dotnet-runtime-2.2.3-windows-hosting-bundle-installer
And in the module of my site are present: AspNetCoreModule, AspNetCoreModuleV2
3) I'm set "Application Pool" for this site in IIS Server next:
enter image description here
4) I'm "Edit Permissions..." for this site where I added and allow all permissions for next users: IUSR, IIS_IUSRS to "Security"
5) Also turn on next Windows features: enter image description here
Site written on ASP.NET Core MVC 2.2 with Use Entity Framework Core also the same version
With what it can be connected?
With database connection?
Or with configure IIS Server?
Or configure Website?
Thanks:)
SOLVED:
1) I have to add: 'app.UseDeveloperExceptionPage();' in Configure method Startup.cs file my project - It's help to show more details for errors.
2) In Microsoft SQL Server Management Studio need create a new user in Security -> Logins (in the same nesting level as the 'Databases' folder). User must have name like your application pool in IIS Server. In Default database General tab set your using database. And then need to set for user next role: sysadmin in Server Roles
I am new in asp.net, I have to access .svc from my application for that I have to deploy .svc service. But got this error when accessed my WCF service from browser,
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.
Few suggested the solution to re-register asp.net.
I cannot register asp.net 4.0 or any other component from commad line on the windows server 2012 as it is giving me error message and commands me to do any installation from "windows add & remove features". I did so. But no luck.
I then tried to activate my webservice using but then also no luck
<serviceActivations>
<add relativeAddress="integrate.svc" service="wcf.integrate" />
</serviceActivations>
I think there's a issue with windows server 2012 or IIS 8.0.
Please guide me where am I wrong.
its almost the Same as you do in normal Windows.
1) first Publish your Service and then copy the Published folder inside wwwroot.
2) open IIS manager by typing inetmgr
3) now drill down to your Service in IIS Manager
Sites -> "your service"
4). Right click on your Service Folder and select "Convert to Application". now your folder icon will be changed to Web icon.
5). now go to Content view of your service Application and browse your ".svc" or service file. you will see your service will be visible in the browser
after adding your service to IIS. pls cross Verify two things
1). extension .svc is available in your MIME types
2). "system.ServiceModel.Activation.HttpHandler" is available in HTTP Handler
** if not please follow the below url to handle the same :- https://gyorgybalassy.wordpress.com/2012/09/24/publishing-a-wcf-service-on-iis8/
** also refer below URl to make sure HTTP Activation feature is enabled in your windows server
https://pubs.vmware.com/mirage-56/index.jsp?topic=%2Fcom.vmware.mirage.api.pg.doc%2FGUID-552D845B-E530-4898-A06B-4F73E668BEFF.html
I created a web application in Visual Studio 2010 and when I run it on my local PC via Visual Studio, everything runs just fine.
When I try to copy thew files onto my server to deploy it, I get errors.
Here's what I did:
Created a new website in IIS. Path is "C:\Apps\PLOT\ServerStats".
Started it.
Checked ASP.NET authorization rules, and it is consistent with what I have in my web.config file.
<authorization>< allow users="usmanas" />< /authorization>
Checked the Connection Strings section and all my connections are consistent with what I have in my web.config.
Checked Authentication section in IIS section and it says Windows Authentication is enabled, just as my web.config says.
When I try to browse the website, it says "Server Error in '/' Application." and "An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed."
My web.config in the root directory of the application DOES have this set...<customErrors mode="RemoteOnly"/>
Can someone please help me get my application set up?????????
The IIS_IUSRS has to have read priviledges on your folder.
I have a very simple website which displays Hello World. I tried to deploy this project on the server. These are the steps I followed:
Copy the folder of the project to inetpub/wwwroot folder.
In IIS management, created a website. Gave the path of the website from step 1.
Gave the application pool as .NET 3.5
After doing the above, while browsing the page, I received the error- Type not found in web.config.
Check to see if you can browse a simple image there. that is, copy a jpg to the root of your web site and try to open it.
paste your web.config, that would be a help.
(app pool is set from advanced options in inetmgr program)
Add all website(or application.exe) files to the IIS Virtual Directory instead of wwwrootfolder. (IIS virutal directory is created by you while configuring IIS server)
Or
New Website
Under Locations Click on "Browse"
Click on "Local IIS" and then select the "IIS Virtual Directory"(IIS vitual Directory which is directory created by the user while configuring IIS server)
Open manually using Explorer drag and
add all you files to the "solution explorer"
then "Yes to all"