Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

.NET Web Application Publishing and Authentication  Issues

Posted on 2010-09-14
1
Medium Priority
?
357 Views
Last Modified: 2012-06-22
Hi All,

I am developing a very simple web app using .NET and C#. I am very new to developing web applications using .NET and I seem to be making it more difficult than it should be.

I am using Visual Studio 2010 Professional, and I am trying to publish the web app on Windows Server 2008 with IIS and .NET 4 installed.

The problem that I am having is that the default template that is created when I create a website in Visual Studio has 2 options for authentication  ('Local Network' and 'From the Internet'). I want to use Windows Authentication, but I am unsure how to remove the references to the Logon pages that were automatically created.

Everything works perfectly when debugging the app. But when I publish it with Windows Auth enabled I get an 'Access Denied' Error. I have enabled read access for all users so i'm unsure what I am doing wrong.

Also, when I use the built-in login form the CSS file does not load.

I would be fine with disabling all authentication if it will fix the issues. I am running the app on an internal network.

Thanks for any help.
0
Comment
Question by:MattStewart01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 41

Accepted Solution

by:
guru_sami earned 2000 total points
ID: 33674388
If you don't need those Login features created by default try using Empty Web Application Template instead.
If you want to use the template but not the Login Features then....you will need to modify your UI to remove the Login/Register etc link, which I think is part of .master page.
Then in your web.config make sure your authentication mode is set to Windows and not Forms.

<authentication mode="Windows" />
   <authorization>
            <deny users="?" />
   </authorization>

Check this for more on Window Authentication:
http://www.wrox.com/WileyCDA/Section/ASP-NET-3-5-Windows-Based-Authentication.id-310905.html
http://msdn.microsoft.com/en-us/library/ms998358.aspx
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question