Jump to content
Xtreme .Net Talk

eramgarden

Avatar/Signature
  • Posts

    583
  • Joined

  • Last visited

Everything posted by eramgarden

  1. I do that with Javascript: http://www.ondotnet.com/pub/a/dotnet/2003/09/15/aspnet.html http://www.syncfusion.com/FAQ/aspnet/WEB_c15c.aspx#q221q
  2. We have a test webserver. It points to our test database. I compile the code in "release" mode and have it on the server. Only maybe 10 people use this test server. From time to time, we get errors like "page cannot be loaded" or "server is not available". If we keep retrying, then it connects. If I delete the "asp.net" folder, recompile, reboot..it acts normal for couple of days and then it restarts the errors.. What do I need to do?
  3. we added the ASp.net user per this blog if anyone else is interested: http://blog.magenic.com/andym/archive/2005/05/02/732.aspx
  4. We moved our ASP.Net app to Windows2003. There are no custom error pages done in this app so users always get the ASP.Net actual errors... Anyway, with 2003..users get a generic "run time" error instead of the actual error. So it's hard to tell where/why the error is happening.. We have customError in webconfig to "off". We also had it to "on" but makes no difference.. is there a security setting somewhere we could set to display the actuall error msg and not the generic "run time"?
  5. We moved our ASP.Net from Windows2000 to Windows2003. There are pages that have performance counters. We have "Anonymous Access" UNCHECKED for the site. We also have "Server" instead of "Machine" in machine.config. Users are getting this error: System.ComponentModel.Win32Exception: Access is denied If we reset IIS the error goes away. What's going on?? I found this site that talks about creating another ASP.Net app on the server but not sure if this is the answer: http://aspnet.4guysfromrolla.com/articles/041002-1.aspx
  6. Using XP. It's XP on both laptops but one works, the other doesnt. I will try what u said.
  7. How do I check this?? make sure user "aspnet" has read permissions on the directory.
  8. I ran the CLRProfiler on my laptop. I changed "machine" name to "server". Everything ran fine... I have another laptop..i downloaded CLRProfiler, changed "machine" to "server", started CLRProfiler, started my website but i got an error that application is not available and to look in Event Viewer.. I looked in Event Viewer and this is the error msg: aspnet_wp.exe could not be started. The error code for the failure is 80004005. This error can be caused when the worker process account has insufficient rights to read the .NET Framework files. Please ensure that the .NET Framework is correctly installed and that the ACLs on the installation directory allow access to the configured account. If I reboot, the website comes back up but wont work with CLRProfiler. What to do??
  9. We have an "expert" looking at our app. Our app is running on Windows2000 now and wanted to upgrade to 2003 and she says Dataset.Select statements are being used in the app but are not supported on Server 2003 I googled but cant find info on this. Before i ask him, anyone knows what she means?
  10. They brought a guy to look at Garbage Collection stuff in the code... Meanwhile, one of their developers said this: we found evidence that upgrading to Windows 2003 would allow the ASPNet worker process to access even more memory, as much as 1.8Gb (assuming we had that much available on the machine for IIS, after the OS and other services started). is this correct?
  11. I downloaded CRProfiler. I have it in c:clrprofiler directory. 1.I double click on it. 2. The interface comes up 3. I go to "File" and click on "Profile ASP.Net" 4. Command line comes up saying IIS is being stopped, then it's restated. 5. Then get a pop-up msg : Waiting for ASP.Net to start. And it has a "cancel" button. 6. I start my page "http://whatever". Go thru some pages 7. Then what? I read somewhere , i would get "kill app" msg but I dont. what am I missing?
  12. Thanks. Will check that too. We did ask the user. She couldnt remember. As she reported the error, I went to the search page, clicked and got the out of memory error. Then other users started reporting it. I know that page calls a stored proc. Should I follow that lead?? Or do I need to know what caused THE FIRST out of memory error(ie, the first reported out of memory of the day) and follow that lead. It was fixed when we rebooted the machine. Let me also check the "in proc" session state.
  13. I forgot, we have Deadlocks too :D
  14. Someone even got " Internal Connection Fatal Error But some people were working fine, and some were getting memroy exception, this user got the error above. This is the worst app I've worked with. What surprises me is that the developers who worked on it have all sorts of MicrosSoft certifications!
  15. Yeah, we just got "out of memory execption" again. I cant tell if it happens right away or not but for example, we have a search page, calls a stored proc..User clicked on "search" button and got the out of memory. She waited for a min, tried it again and it worked fine. Why they have the stuff in memory for so long? I dont know why they designed it this way. This is a financial/invoicing system. Users are doing something, get on the phone, come back 30 mins/1 hour later..they want their session/cache stuff there for them. That Machine.Config change seems like didnt help either. They might bring an outside person to do a code review I do agree totally with you guys. I have started looking into CLRProfiler and will look at other 3rd party tools as well.
  16. There's an ascx page with lots of javascripts behind it... The page has a dropdownlist. Two of the values in it are added using Javascript. The rest are read from database and added via asp.net/vb.net. When [None] is selected, the 2 corresponding textboxes are cleared. I dont see any "Change Click" even in the ASP.Net. It's somehow done in the Javascript. I put debug steps, choose [None], but it doesnt hit the code. I put "alert" in various places of Javascript, Choose [None] but nothing pops up... I cant right click on the page and do "View Source". This is a ASP.Net pop-up. How can I trace this??
  17. No COM objects. Since I'm new at this job, the team only listens to what the other company says(the company that developed the app for the company I'm working for)... If they dont keep it in cache, what should they be doing. I know they tried Session The other company asked us to move to "Windows 2003" and they also asked us to do this : We need to change the setting for memoryLimit in machine.config from 30 to 60 on the production web server. This will increase the amount of memory the asp worker process can consume before throwing an �out of memory� exception. The limit was changed to 30 in the mistaken belief that there was 4GB of memory on the server. For 2G of memory, the optimal setting is the default of 60. Any thoughts on that? ( I really do believe what u guys say over what the other company is saying. I think they're just covering for themselves).
  18. I ordered the book...Thanks.. The company who did the app for us is looking into "hardware" issues and buying more memory to solve the "out of memory error". Based on what you guys said..this isnt hardware related and we should look at the code/implementation...Anyway, before I open my mouth and say something to my manager ..this is the hardware config we have right now.. would buying hardware fix the "out of memory" make any diff?? -- Web server Model: Dell PowerEdge 2600 CPU: 2 x 2.0 GHz Intel Xeon, Hyperthreading ON RAM: 2Gb HDD: 2 SCSI channels, RAID1 16GB and RAID5 33GB, respectively OS: Windows 2000 Server, SP4 SQL Server Model: Dell PowerEdge 6650 CPU: 4 x 2.7GHz Intel Xeon, Hyperthreading OFF(?) RAM: 4Gb HDD: 3 RAID0 arrays, separating tempdb, application data, and transaction logs OS: Windows 2000 Server, SP4
  19. #2. The orig system was done in VAX. Users had issues with that because they couldnt keep their sessions for long period of time. The company that developed the app told them it's doable and it's going to be one of the features!
  20. 2 last questions, then I'm going to look into the Book and CLRProfiler.. Love your #4 answer :D I mentioned that to the manager yesterday and he defended the app like he wrote it or something! I call it misplaced loyalty.. :) Anyway- 1. "There are no memory issues in .NET".. do you mean that .net takes care if memory management and garbage collection by itself UNLESS (as PD mentioned) app is stuffing things in application vars and never deleting them? 2. Users want to keep their session for like 4 or 5 hours (maybe even the entire day)..That's why datasets are held in Cache and "cache expiration" value is increased from 10 min to 20 mins. (This increase caused memory error :D ). What's the solution to giving the users the option to keep their session open all day?
  21. #2..they said there's a leak in "Enterprise Library" and they got a patch from Microsoft's site. This is part of it; The Enterprise Library team recently became aware of a memory leak issue in the Configuration Application Block, which is used by all other blocks in Enterprise Library. This zip file contains a fix to the issue. I did apply it to the production but we still got the error. For example yesterday, memory consumption reached 695Mb and no one could access the app. They changed the cache setting in web.config to 1200. Any thoughts on this? for #1 So that error happens when data is lost in cache?? for #4 How can I identify the bad implementations? is there a website about good Dotnet practices that I can compare with what they've done? last question Someone in the meetings said that lots of companies who use dotnet have these issues! I dont believe that and they said with the next release of dotnet, most of these memory and cache issues will be resolve. Any thoughts on that?
  22. At this new job of mine, I'm working with a asp.net application that was done by another company... 1.# of users..maybe 200 2. It went Live, 5 months ago I'm new at this job but some stuff I've noticed: 1. They keep datasets in cache (they used to keep them in session). Users get "failed to load page from cache" from time to time 2. We got "out of memory exception" 5 or 6 times last week 3. Developers "throw" the errors instead of trapping them. Users get asp.net pink error pages 4. The code is layered into "facade", data layer and then the presentation layer. 5. Everything is in stored procs...maybe 1070 stored procs. now I told my managers that this is the slowest and buggiest application I've ever worked with. They defended the other company!. My questions What is a good asp.net application? shouldnt an ASP.net app support 10,000 users (someone told me that) without cache and memory issues?? And i think the app has many bugs but the manager didnt like it when i said it.
  23. we have an HTML page with this on the top of the page <meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> <meta HTTP-EQUIV="Expires" CONTENT="-1"> But it still caches the page from time to time and users have to "delete files". Any ideas what we're missing?
  24. for example, if there are 3 textboxes: Firstbox --> user enters a value second box ---> user enters nothing third box ---> user enters nothing Clicks Search. Code calls Stored Proc. In the "where" clause of the SQL, they also have "second box" and "third box" as critieria. Instead of only searching based on what the user entered...they search by whatever textboxes there are on the screen and default the empty textboxes to a value.. For example, if users dont enter a date range, they dafault the date to 1900-2999. I want to change that to only search based on what the user has entered and ignore the empty textboxes. I guess that would requre a dynamic SQL and building of the search string up-front in the code??
  25. OK, this app i'm working with has "search" pages. For example, a page has 10 textboxes on it and users can fillout only one box. It calls a stored proc and the stored proc takes into account the text boxes that were left blank So, it puts defaults values in there. For example, it defaults the date range from 1900 to 2999! Has anyone else done "search" pages? What's the best way to do build a search criteria and pass it to the database?
×
×
  • Create New...