How can I test a membership provider using a test project within VS 2005? Basically I am stuck trying to read the custom app.config file I added to the project with a <system.websection.
I think the testing environment is more structured than creating a web application to test the provider.
How do test my web application for concurrent users (how much concurent user connect at a time and how traffice will be affected and what will the response time?) and how it is done, how long it will takes, does it interfere with current site, etc.?
Reagarding the number of users the site will accomodate is it based on where it's hosted
I'm starting a project at home and want to go to right way off the bat. I'm in the process of evaluating if it's a good idea to use personalization and membership systems from microsoft. Anyone had practical experience with it? Second question. I will use several content articles that i will display on my site. Is there a way to link the objects of my site unto membership accounts? How easy is it to maintain and use?
I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the Membership & Roles ApplicationName to separate out my different groups of users within the membership database.
I had been having problems with ‘random’ bugs - as though my Membership database was 'sharing' information between users and applications rather than keeping it separate.
I have now come across this article. Is what it is saying about Membership being a singleton true? Code:
Is it possible to use asp.net membership/login control with pure asp i.e. user logs in using login control and then asp can use it somehow? Is there a code example somewhere?
I have a membership problem I couldn't resolve. I have set up membership as most of tutorial instructed, and I am able to log on, but cannot stay log on for some reason. ex: when I log on, the log in become log on, but when I access the protected page, it still prompt me for log in.
I'm rather new to ASP and am having trouble with implementing a group membership check in one of my functions. I have this function which I use for authentication pass-through: Code:
I'd like to have a frequently used link page on our intranet that displays the urls' based on a users's ad group membership, i.e. if from accounting show general ledger reports, if from loans, show credit report. I'm not much worried about hiding from enterprising users, i'd just like to make it simpler rather than having people have to scroll through pages of links.
test my app? it's still in development but it's very much usable. i'm looking for few good object oriented souls that can look at this. i'm still adding few functions so don't be surprised if it goes down for a VERY short time (minutes really).
I notice that when you have the defualt setup of 404 error pages the IIS 5.0 log tracks the page the user was trying to get to and the page they where at when they tryed to get to the now missing page. I recently wrote my own 404 error page to make it match my site but when I set IIS to use my custom page it no longer traks the page that the user was trying to get.
I was told I needed to add some code to my page to fix this, but I don't know what code to add. Can someone tell me? (I am useing ASP on the custom 404 error page) I am returning a 404 error response, everything works fine it is just that IIS does not log what page the user was trying to get to.
I created my own custom 404 handler and it works, so when I put in
http://www.domain.com/badxxx.html it produces the correct 404 error and you see http://www.domain.com/badxxx.html in the url still which is fine.
But when I put in http://www.domain.com/asdf
it redirects to http://www.domain.com/index.html
it gives a 302 (moved temporarily) as well as the 404 error. Why does it do this for not .html files? I dont redirect it at all, and am using thestring = Request.ServerVariables("QUERY_STRING") to get the url
but thestring sometimes does not display the asdf depending what I do after this command, very odd.
does anybody have anyideas as to how to preserve this http://www.domain.com/asdf in the url and avoid the 302?
i have a table that users are inserting custom tages ,it looks like :
user_id type value 1 99 television 2 98 beach 3 99 coldplay
etc. now i have to make a search which will show all the users that typed the same value from the same type .i dont want the query to be a textual query (slow ...)what is the right way to do it ?how can i make a query that JOINs to tables from 2 different databases?
When you have a custom HTTP 500 error handler, how do you go about making sure all your previously opened recordsets/objects/connections/etc.are closed properly?
It would seem to me that once you hit a 500 error, you have no opportunity to close any of the previously opened objects, eventually causing memory leaks.
I'm developing an application that uses a custom 404 page to deliver all of my site's content. However, doing things this way renders IIS's regular log files pretty much useless.
Are there any established "best practices" for creating your own logging system? I know that others use this technique and I'm hoping someone has some ideas they can pass along. For example, do you log every single page request or do you just log totals per day, week, or month? How do you deal with the increasing volumes of data? Do you collect referrer data, etc.?
I asked my hosting service to setup a custom 404 page for me. They did, but when purposely calling a non-existing page with XMLHTTP, the new 404 page returns a 200 / OK status.
They seem to be taking their time trying to fix this, so I wonder if a custom 404 page that truly returns 404 status is a hard thing to set up for individual domains hosted on IIS. I hope my question makes sense to the readers.
im interested in replicating how moonpig.com 's card editor works. in particular how you can display a custom server side font in a wysiwyg editor. i know moonpig uses .net but can this be accomplished using plain ol' asp ?
I need to revisit cookie testing. On the home page and every product page I write a cookie. I do this because some users enter by direct links to product pages.
<% Response.Cookies("cookietest") = ("49") Response.Cookies("cookietest").Expires = Date + 2 %>
On the cart page I test for the cookie...
<% If Request.Cookies("cookietest") <"49" Then Response.Redirect("err.asp?e=1") End If %>
I have a user that insists he has cookies enabled, yet he keeps getting redirected to my error page which suggests he does not have cookies enabled. What could cause this? Is the above too simple for all circumstances?
Is there more extensive code that I could setup on a hidden page where I can send users to get read out on how they actually have their browsers setup? i.e. Run a test on their browser and the results are emailed to me.
I know very little about ASP and ASPX pagfes but i inherited a web site done by a guy who knew just a little more than me and I've worked around things with my knowledge of HTML and Javascript, as well as added on to the web site using Cold Fusion. But I am at a point that I need to be able to do more.
I have a ASPX page with a Log In button that I don't want see if a certain cookie exists. Is there a way to test for that cookie on the page and display or not display something based on that test?
my system is at testing phase. how do i test my system to check its security especially at the login page? i am running it at localhost. i have tried sql injection but nothing happened. i just saw the invalid login username or password error only.
I have created a page that will allow all web based errors generated to be logged, like IIS errors 404, 403,401, 400.
I am now testing to see if the correct files are being displayed when the errors occur. I am able to replicate the 404 err as well as the 403 error, bu I cannot test the 401 or 400 errors. Does anyone know how to do this?
I tried using err.raise, but it doesnt seem to work, unless i m doing something wrong.
I need to test ASP pages at home before uploading them (no net connectiona t home, only here at uni and I need the site owrking before I transfer it). The ASP pages are written, PWS is installed (except for some file that had an error - but that didn't install last time and everything worked fine then). Where do I put the ASP pages and DB and how do I set up a connection between them? The pages run in IE at the moment but no data is pulled onto them from the DB.
I've been given a task to develop an automated unit testing framework for a project I'm workin on...
I've spotted ASPUnit on sourcesafe... but it doesn't seem to handle situations when we have global variables, session stuff etc...
I was thinking of doing something to a screenscrape and just do a file comparison... actually, there ARE ways to do this aren't there? I've heard/read about that before.. some HTTP objects or something that would allow me to call an asp page, and grab the output as a string.. rather than have the output go to a screen... anyone able to point me i the direction of this kinda stuff?
I need to test if cookies are enabled in the browser. I disabled cookies in my browser and rebooted my browser, yet the below code still writes a cookie and reads it correctly.
<% Response.Cookies("smcookietest") = ("8") Response.Cookies("smcookietest").Expires = Date + 2 %> <% If Request.Cookies("smcookietest") <> "8" Then Response.Redirect("error.asp?error=19") End If %> <%=Request.Cookies("smcookietest")%>
I am developing a Testing Checklist for the Programmers in my company. As i am not a programmer, Can you guys help me.
I am looking for some common Code testing steps which a programmer should do when he is testing his web application
These testing checklist could include common mistakes programmers do or any special coding error which they might receive when they are testing their web application.
I had a mild hack of the default windows web page in inetpub because I was running IIS whilst my DSL connection was on. Ever since,I have disconnected the DSL before running IIS.
Could anyone give me advice on running IIS safely as a local testing server (for asp pages) whilst online? I have to admit that I run an admin account (win2000) so I know this is one thing I should change