[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

login page not picking up theme

Posted on 2006-06-06
14
Medium Priority
?
430 Views
Last Modified: 2008-03-03
I have a login page which is not picking up the theme. The theme gets applied only after I login.

Since I know the URL of the css file, when I try to access it by typing its URL, the app takes me to the login page.

What's going on here?

The page directive of login.aspx is as follows:

<%@ Page MasterPageFile="~/SiteTemplate.master" Language="C#"  AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" StylesheetTheme="MyTheme" Theme="MyTheme" Title="Login" %>
0
Comment
Question by:IUAATech
  • 7
  • 5
13 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16845825
What does the .skin file look like?

Bob
0
 

Author Comment

by:IUAATech
ID: 16845838
nothing much in there. I just have the following:

<asp:Button runat="server" BackColor=#FFFBD6 BorderColor="#CC9966" BorderStyle="Solid"
BorderWidth="1px" Font-Names="Arial" Font-Size="1.0em" ForeColor="#990000" />
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16846043
Did you modify web.config to force the user to login.aspx?

Bob
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:IUAATech
ID: 16846224
yes.

Here is part of my web.config file

     <connectionStrings>
          <add name="ADConnectionString" connectionString="LDAP://myserver/DC=ads,DC=server,DC=com"/>
     </connectionStrings>
          <authentication mode="Forms">
               <forms name=".ADAuthCookie" timeout="10"/>
          </authentication>
          <authorization>
               <deny users="?"/>
               <allow users="*"/>
          </authorization>
          <membership defaultProvider="MyADMembershipProvider">
               <providers>
                    <add name="MyADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, &#xA;             Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnectionString"/>
               </providers>
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16846603
Then, you can't navigate to any other page but login.aspx.

Bob
0
 

Author Comment

by:IUAATech
ID: 16846708
That I understand.

But shouldn't css files be excluded from this rule? It seems stupid that you have to exclude the .css/.theme files using the web.config file.

Don't know what I am doing wrong.......
0
 

Author Comment

by:IUAATech
ID: 16846870
Bob,
this is exactly what I am encountering:

http://www.eggheadcafe.com/aspnet_answers/NETFrameworkASPNETsecurity/Jan2006/post25809353.asp

and currently I am also running the app using VS.NET's builtin Webserver. I will try running this in IIS and see if the problem goes away.

Raj
0
 

Author Comment

by:IUAATech
ID: 16951447
yep. running the project on IIS fixes this problem.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16953312
Hmmm, so Cassini has a problem with themes?

Bob
0
 

Author Comment

by:IUAATech
ID: 16953347
cassini?
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 16953445
.NET 2005 uses Cassini instead of IIS as the development web server.

Bob
0
 

Author Comment

by:IUAATech
ID: 16953489
ah ok.
0
 

Accepted Solution

by:
RomMod earned 0 total points
ID: 16998664
Question closed - 200 points refunded.

Best regards,
RomMod
Experts Exchange
Community Support Moderator
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month18 days, 17 hours left to enroll

834 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