when i log in, I get the logged in view(which I have left it blank) not the appropriate logged in page ( the roles does not seem to work..)

Hello everyone,

My website is online now. I can access my database online in one of the other page..but

When I log in at the log in page, I see only the logged in view. I dont see the appropriate role's page. For example. John is from an admin roles group. When I log in using john's username and pword, I get a blank page (which I know for sure is the loggedin view page which I have left it blank). I have three roles and not of them seem to work,.,,It however works fine when I run it on my home computer locally (I change the webconfig file when i run my log in page .)

 

Here is the webconfig file that i run at the server...

<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
   -->
<configuration>
 <appSettings/>
    <connectionStrings>  
   
        <add name="kcolDatabaseConnectionString" connectionString="Server=mssql.namesco.net;Database=database;uid=kcol2;pwd=***;" providerName="System.Data.SqlClient"/>
          
            <add name="ASPNETDBConnectionString"
            connectionString="Server=mssql.namesco.net;
        Database=kcolroles;uid=roles;pwd=***;" providerName="System.Data.SqlClient"/>
    
      <remove name="LocalSqlServer"/>

        <add name="LocalSqlServer"
      connectionString="Server=mssql.namesco.net;
        Database=kcolroles;uid=roles;pwd=***;" providerName="System.Data.SqlClient"/>

       </connectionStrings>
   
   
   
   
    <system.web>
            <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.

            Visual Basic options:
            Set strict="true" to disallow all data type conversions
            where data loss can occur.
            Set explicit="true" to force declaration of all variables.
            <customErrors defaultRedirect="~/redirect.aspx" />
             -->
               
             
 
  <compilation debug="true" strict="false" explicit="true">
   <assemblies>
    <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>
  <pages>
   <namespaces>
    <clear/>
    <add namespace="System"/>
    <add namespace="System.Collections"/>
    <add namespace="System.Collections.Generic"/>
    <add namespace="System.Collections.Specialized"/>
    <add namespace="System.Configuration"/>
    <add namespace="System.Text"/>
    <add namespace="System.Text.RegularExpressions"/>
    <add namespace="System.Web"/>
    <add namespace="System.Web.Caching"/>
    <add namespace="System.Web.SessionState"/>
    <add namespace="System.Web.Security"/>
    <add namespace="System.Web.Profile"/>
    <add namespace="System.Web.UI"/>
    <add namespace="System.Web.UI.WebControls"/>
    <add namespace="System.Web.UI.WebControls.WebParts"/>
    <add namespace="System.Web.UI.HtmlControls"/>
   </namespaces>
  </pages>
  <!--
            The <authentication> section enables configuration
            of the security authentication mode used by
            ASP.NET to identify an incoming user.
        -->
  <authentication mode="Forms"/>
                
                <customErrors mode="Off"/>        
     
  <!--
            The <customErrors> section enables configuration
            of what to do if/when an unhandled error occurs
            during the execution of a request. Specifically,
            it enables developers to configure html error pages
            to be displayed in place of a error stack trace.

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
            <error statusCode="403" redirect="NoAccess.htm" />
            <error statusCode="404" redirect="FileNotFound.htm" />
        </customErrors>
        -->
 </system.web>
</configuration>

Could anyone know if the webconfig file is wrong..

 Best Regards...


____________________________________
u dont luv me the way that I luv u !!
0
ujjawal
6/7/2008 4:01:32 PM
asp.net.security 27051 articles. 1 followers. Follow

2 Replies
1035 Views

Similar Articles

[PageSpeed] 36
Get it on Google Play
Get it on Apple App Store

hello

i do not see the necessary entries for membership and role management

for example, you must have, at the minimum, something like

      <membership defaultProvider="yourSqlMembershipProvider" userIsOnlineTimeWindow="15">
         <providers>
            <clear />
            <add name="yourSqlMembershipProvider"
               type="System.Web.Security.SqlMembershipProvider"
               connectionStringName="yourConnectionString"
               applicationName="yourApplicationName" />
         </providers>
      </membership>

      <roleManager defaultProvider="yourSqlRolesProvider" enabled="true"
         cacheRolesInCookie="true">
         <providers>
            <clear />
            <add name="yourSqlRolesProvider"
               type="System.Web.Security.SqlRoleProvider"
               connectionStringName="yourConnectionString"
               applicationName="yourApplicationName" />
         </providers>
      </roleManager>


Reynald V. Nuñez
aspxtreme
0
ReyN
6/7/2008 4:29:54 PM

Its working fine now with the following web config file....it was the webconfig file that needed some changes....  here is the webconfig file I used and its working fine.....

 

<?xml version="1.0"?>

<!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Usethe Website->Asp.Net Configuration option in Visual Studio.A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config <add name="DatabaseConnectionString" connectionString="Data Source=.\SQLEXPRESS;

AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True"providerName="System.Data.SqlClient" />-->

<configuration>

<appSettings/> <configuration>
<appSettings/>
<connectionStrings>
<add name="kcolDatabaseConnectionString" connectionString="Server=mssql.namesco.net;Database=kcoldatabase;uid=kcol2;pwd=****;" providerName="System.Data.SqlClient"/>
<add name="ASPNETDBConnectionString" connectionString="Server=mssql.namesco.net;Database=kcolroles;uid=roles;pwd=****;" providerName="System.Data.SqlClient"/>
</connectionStrings>

 

<system.web><siteMap enabled="true">

<providers>

<add name="MyNewSitemapProvider"

type="System.Web.XmlSiteMapProvider"

siteMapFile="verification.sitemap"/>

</providers>

</siteMap>

<!-- Set compilation debug="true" to insert debugging symbols into the compiled page. Because this affects performance, set this value to true only

during development.Visual Basic options:Set strict="true" to disallow all data type conversions where data loss can occur. Set explicit="true" to force declaration of all variables.<customErrors defaultRediret="~/redirect.aspx" /> -->

<compilation debug="true" strict="false" explicit="true">

<assemblies>

<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>

<pages>

<namespaces>

<clear/>

<add namespace="System"/>

<add namespace="System.Collections"/>

<add namespace="System.Collections.Generic"/>

<add namespace="System.Collections.Specialized"/>

<add namespace="System.Configuration"/>

<add namespace="System.Text"/>

<add namespace="System.Text.RegularExpressions"/>

<add namespace="System.Web"/>

<add namespace="System.Web.Caching"/>

<add namespace="System.Web.SessionState"/>

<add namespace="System.Web.Security"/>

<add namespace="System.Web.Profile"/>

<add namespace="System.Web.UI"/>

<add namespace="System.Web.UI.WebControls"/>

<add namespace="System.Web.UI.WebControls.WebParts"/>

<add namespace="System.Web.UI.HtmlControls"/>

</namespaces>

</pages><!--The <authentication> section enables configuration f the security authentication mode used by ASP.NET to identify an incoming user. -->

 

<roleManager enabled="true"/>

<authentication mode="Forms">

<forms loginUrl="~/login.aspx" slidingExpiration="true" timeout="60"/>

</authentication><customErrors mode="Off"/>

 

 

<!--
The <customErrors> section enables configuration of what to do if/when an unhandled error occursduring the execution of a request. Specifically,

it enables developers to configure html error pageso be displayed in place of a error stack trace.<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"><error statusCode="403" redirect="NoAccess.htm" /><error statusCode="404" redirect="FileNotFound.htm" />

</customErrors>
--> </system.web>

</configuration>

 

 

 

Now its all working fine. Many thanks to you all....

May god bless us all !!


____________________________________
u dont luv me the way that I luv u !!
0
ujjawal
6/12/2008 10:29:56 AM
Reply:

Similar Artilces:

To log or not to log
Hello foremen, on a large database, trillions of SELECTs and DELETEs are going to be performed. After that, the database is going to be unloaded. The database uses a transaction log. Should I keep the log there along this process or "unmount" it after some parts of it (or even before the beginning)? In this case, nothing but the speed is important. The database is ASA 7.0.4.3498. Thanks Pavel LOG... ALWAYS LOG. Performance is dependent on the use of the log. Recommendations: 1) Ensure that the file system is not excessively fragmented 2) Host the db f...

Logging log
Hi! I try to accomplish task described in http://forums.novell.com/novell-product-support-forums/zenworks/configuration-management/zcm-server-install/422609-mixed-login.html?pagenumber= and wonder I don't know how to keep log of logging? I mean, does ZCM is capable to keep logging log? As Altiris NS does? More thanks, Alar. -- NovAlf ------------------------------------------------------------------------ You look like you want to log in to your zone as a user from either a eDIR or AD. And yes this is possible, it will search both Directories. http://www.theurbanp...

Logged In As: Not Logged In
I installed ZCF 10.0.1 on a Win 2K3 server and when I install the ZEN client on a workstation the ZENWORKS client login comes up and I cannot log into it. It shows me the realm name of my tree and Zenworks Zone and I have tried both to no avail. When I look at the details of the adaptive agent it says, "Logged In As: Not Logged In" Any ideas? On Fri, 11 Jan 2008 14:55:21 GMT, Jayson E. Hahn wrote: > Any ideas? Debug logs in ZCM http://www.novell.com/support/search.do?cmd=displayKC&docType=kc&externalId=3418069&sliceId=SAL_Public&dialogID=51010132...

why after I log out my website and log in again. the last page that I logged out on thats the page I am redirected to...
why after I log out my website and log in again. the last page that logged out on thats the page I am redirected to...when logged in again. I thougt when you login though thr login control it goes to the assigned destination page. well, my website is not doing that. whatever page the user has last visited and the user decides to login again thats the page the user will be redirected to after they login. I am using the person website starter template. any ideas why this happens and/or how to fix it? This is the default behaviour of login control , it redirect back the user to the page that...

User logged in (and logged in on all pages)
Hello, If i get a user to log in, after entering there username and password, when they go to other pages, how do i keep them logged in??? like this asp.net site, it says at the top, logged in as:Breenan, and cant see my username in the url address bar.... Any help???? Thanks again. There are many ways to store state information besides in a querystring (which shows up in the address bar)... One common one is a Session variable which acts like a global variable for the entire application. The name could also be gotten from the database, every time the page loads, or it coul...

error log logs
Hi all, In the script I have to stop sybase, I use two instructions for log rotate. su sybase -c 'mv -f $SYBASE/$SYBASE_ASE/install/sybase.log /backup2/logs/sybase-`date +%y%m%d-%H%M%S`.log' su sybase -c 'touch $SYBASE/$SYBASE_ASE/install/sybase.log' But when I start ASE, the server don�t write in this file (sybase.log) it uses to write $SYBASE/errorlog Why????? What can I do to write in $SYBASE/$SYBASE_ASE/install/sybase.log The RUN_file is: #!/bin/sh # # Adaptive Server name: sybase # Master device path: /dev/md/dataset/rdsk/d3 # Error ...

Logging to httpservlet.log
Anyone have any examples on how to log to this file? I know you need to use the ServletContext interface but I have been unable to find any real examples of how. Thanks for your help. Don Flannagan ...

Filter log not logging
I have upgraded to TB 2.0.0.6, but it was doing this before. I set up a whole mess of new filters using the fancy new tagging. New filters definitely tagging incoming mail properly. I cleared out the old filter logs. I somehow managed to turn off logging. Yes I checked the little box. It's still not logging. I have tried turning off filter logging, exiting the program, starting up again and turning filter logging back on. Filterlog.html file exist, but empty. How do I get the filter log working again? Thank you. Charlie wrote: > I have upgraded to TB 2.0....

Transaction Logs And Logging
I work in a shop that does not keep the Sybase transaction logs. We have been mandated to research archiving our logging. The Sybase documentation does not go into great detail about how to do this. Can anyone give me pointers on this, or point me in the way of decent documentation? I understand setting the 'dump transaction' command on the Last Chance thresholds. We have 65 active databases, and the nightmare I have is trying to deal with 65 logs being constantly dumped. Without overwriting each other before they can be copied to tape. Is there an easy way to rename the ...

User Log in Log
I need to keep a daily record of network logins Being Auditcon does not work with NW6, is there a way I can enable Logging on a server/tree to capture user login? Install NSURE Audit. Configure it to record logins and out for both the server and eDir. The Nsure Audit starter pack 1.0.3 is downloadable from the website. ~+~^~+~^~+~^~+~^~+~^~+~^~+~^~ Jim Gosney Netware/Groupwise Admin./Eng. Genesco, Inc. Nashville, TN Currently reading: fiction: Lord of the Rings: Return of the King -- J.R.R. Tolkien non-fiction: George Washington -- James Burns and Susan Dunn rel...

Application Log logging
Shaun, I have been getting complaints from our techs here about the huge amount of entries Patchlink is writing to the Application log. The problem is when they are trying to troubleshoot a problem on a PC, the application log has filled up with the Zenworks Patch Management Agent entries, pushing out the entries they need for troubleshooting. Aside from increasing the size of the Event logs, is there a way to "throttle" down the entries Patchlink is making? 6.3.2.700 server 6.3.2.858 agent Bob -- bstayskal Bstayskal, what level do you have the agent ...

Event Log not Logging ??
 Hi All, On my dev machine when I log errors to the event log all works great however when I move the web application to the test server the events are not being logged... I am hoping it is some configuration issue with IIS however I am totally lost.The code writing the events: EventLog.WriteEntry("xxxxx", err, EventLogEntryType.Error);   Any help will be appreciated. Thanks,Neil  are you getting an error? Sometimes, its a permissions issue, if the log name doesn't exist, it tries to write the new value to the registry. Check the application log...

Logging in without logging in...
Help! I've been asked to integrate a dotnetnuke site with another corporate site to present the user with a seamless transition between the two. The user will login to the corporate site (behind a firewall) and at some point be passed over to the dotnetnuke site (hosted externally). Is there anyway to log the user (who came form the corporate site) into the dotnetnuke site without the user having to retype his / her username / password? I'd prefer not to pass the username / password in the url - something more secure would be preferred. If anyone has any ideas or has done it b...

Who to Validate log in and log out...
Hi, I'm doing a couple of Asp VB .Net 1.x  pages and a wanna know how to validate when a user logs in that web site... just like e-mail accounts do. Plus, how to avoid that after been logged in, the user copies the URL address, then closes all IE windows and opens a new one, paistes the URL address and the web site opens... without asking for logging in...   Is that why people use cookies??? As you can see, I'm a newby with Asp stuff.. Please help, or some controls for me to investigate, or archicles... Thanx a lot! ~ Luisco_____________________________________Programador ...

Web resources about - when i log in, I get the logged in view(which I have left it blank) not the appropriate logged in page ( the roles does not seem to work..) - asp.net.security

Sign White House Petition to remove Bill Clinton’s name from EPA Headquarters
There is no legitimate basis upon which to treat Bill Clinton better than Bill Cosby.

‘Star Wars: The Force Awakens’ Extended Cut: Not Even Maz Kanata’s Eyes Will See It
If you’ve been paying attention to our extensive Star Wars coverage, then you probably saw our round-up of 20 scenes that were cut from Star ...

Woman raped by five men in New York City park, police say
WPEC Woman raped by five men in New York City park, police say Reuters NEW YORK Five men took turns raping a woman in a Brooklyn park after ...

NFL Playoff Sunday Open Thread: On the Fungibility of Running Backs
One minor story of the late game yesterday is that for all the concern about the Steelers missing their top two running backs, it was pretty ...

Trump Gives Props To North Korea's Boy Tyrant Kim Jong Un For Being Ruthless
We’ve heard the presidential candidates say some wild things this election cycle , but at a recent campaign event in Iowa, Donald Trump gave ...

'Outlander' Stars Caitriona Balfe & Sam Heughan Attend BAFTA Tea Before Golden Globes!
Caitriona Balfe and Sam Heughan arrive at the 2016 BAFTA Los Angeles Awards Season Tea held at the Four Seasons Hotel on Saturday (January 9) ...

Obamas Invite Syrian Refugee Featured on Humans of New York as Guest at State of the Union
Michelle and Barack Obama have invited Refaai Hamo, a Syrian scientist featured on Humans of New York, to sit in the First Lady’s box during ...

In Oregon standoff, local sheriff embraces the spectacle
Los Angeles Times In Oregon standoff, local sheriff embraces the spectacle Los Angeles Times When Harney County Sheriff David Ward met with ...

Germany: Authorities Must Probe Cologne Assault Links
Hindustan Times Germany: Authorities Must Probe Cologne Assault Links New York Times BERLIN — Germany's justice minister says authorities ...


Resources last updated: 1/10/2016 6:28:22 PM