| |
| |
| |
|
Comments:
<0> why would this code not work ? http://www.nomorepasting.com/paste.php?pasteID=68597 <0> with just one no_scroll_div it works ?? <0> If I put the second div-thing to TOP it works, but bottom not ?? <1> hi all <1> any body here help me ? <1> i had make web appl in asp.net2005 but when i upload my website on web server when open my index page some error appearing <1> this error is : <1> Runtime Error <1> Description: 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 remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. <1> Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off". <1> <!-- Web.Config Configuration File --> <1> mm sorry all <1> any on can help
<2> hiya <2> anyone actually awake here? <3> Nop <4> I am but I can't read. <2> oh well <2> I have just wondered <2> if I have an ASP script <2> that can read a number from the db <2> or write one to the db, depending on the parameters p***ed <2> and then I've got an application <2> that reads that number through the asp script <2> increments it <2> and calls the asp script again to update the db <2> and, say, a 100 copies of the application are running <2> and all of them want to increment that number <2> how do I make sure that IIS makes them get in a "queue"? <2> will Application.Lock do the job? <3> This is called a 'race condition', and it is a very common problem with application development <4> you bed over backwards. <3> no, IIS has no idea what the script does, nor does it care <4> *bend <4> Use your DB <4> let the db worry about that. <3> If the script tries to write the same field at the same time, there will be deadlocks <3> likely, you'll just get wacky**** data <3> it is, though, the job of the database engine <2> that's not what bothers me actually <2> what bothers me is that there's obviously a delay between getting the data and writing it <3> of course <3> there's a delay with everything <2> so I don't want 2 apps to get the same number, increment it and write it back <2> so that the num gets incremented only once instead of twice <3> Then you will need some type of mutex or semaphore <2> exactly <3> that way, you'll know that the value is really 'free', and is not waiting on another process <2> I want my asp script to manage the access <5> hi <3> then create a mutex or semaphore <2> so, I wonder if Application.Lock only locks the data in the "Application" object or if it actually stops everyone else from running the script while it's locked <3> application.lock only prevents other scripts from modifying application properties/variables <3> it does not halt scripts <3> You would, in your script, have to wait until it's unlocked, lock it, make the request/change, then unlock it <4> use a boolean <4> hmm... vbscript eh? <2> nope, JScript <4> worse <2> vb scares me <2> why? <4> coz I dont know it. <2> well
<2> not a big difference anyway <4> why can't you use the db to increment it? <2> only syntaxis <2> cause it's not exactly just "incremented" <2> I just used the word to try to explain the situation <3> D^D: the race is from his application, not the script or database <4> ohh... <3> application <-> script <-> database <2> yep <3> why it's an intermediary, I don't know <4> so you've got multiple application instances using another independent script to increment and add to db? <2> let me explain <4> if thats the case, it makes sense. <2> the application requests the script to give it the data <2> the script gets the data from the db, returns it to the app <3> why are you using the script? <2> the app modifies the data, p***es it to the script and asks to write it back <3> Why cannot the application modify the database? <2> so the script does that <4> Teycho it would make more sense to use the script <4> as an independent layer <2> the thing's, the installation and configuration of the application needs to be as simple as possible <2> and this way, only the script needs to be set up to access the db <4> are the 100 instances of the application using the same script? <2> yes <4> same script as in, the same one instance. <4> [Ap1|Ap2|Apn] ->Script -> Db <2> yes, it's only one server and one script <2> exactly <4> and where is the number generation logic? <2> in the applications <4> ok..... <2> to make it more difficult for people to reverse <4> you're going to have to change your script and the application to handle the locking. <4> send the script a key and the number from the app <4> note the key in the db as key-bool-number <4> in the application accept a bool value as true or false if the number has been updated or not <2> why not just have an "application" bool var in the script <4> in application While(!UpdateNumber(intNumber,strKey)) <4> in your script <2> that sets to 1 when the data has been given to the app but has not yet been written <2> and put all the incoming requests to get the data in a loop, waiting for the "application" bool variable to equal 0 <2> that would mean that only minor modification in the script would be neccessary <2> am I missing anything here? <4> I might be over thinking **** here. <4> yeah. <4> use a Application Var <2> what is it? <4> but the server restart will **** things up a little. <2> ah, ok <2> when the server restarts no applications would be running on the clients <4> not true. <4> think it over. <4> I personally would make it a little more solid then just a Application Var <4> but it will do. <4> time for me to leave. <4> laterz <2> ok, cool <2> thank you for help
Return to
#asp or Go to some related
logs:
#allnitecafe xdmpc fedora core 5 #chat-world pohaca i hate stingrays beauty-hse my page 20yo #allnitecafe #netcafe #allnitecafe
|
|