Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:679346
More Search Options
RSS Available
Matching Posts
Website shut down - too much CPU being used
My website was shut down yesterday because of too much CPU usage. In the last month I have begun testing web services and I'm pretty sure that is what caused the problems. Here is a sample of a web service I'm using: [WebMethod] public DataSet Addition( int Qty, int Min, int Max) { DataSet ds = new DataSet(); ds.Tables.Add("MathData"); ds.Tables[0].Columns.Add("ID"); ds.Tables[0].Columns.Add("n1"); ds.Tables[0].Columns.Add("n2"); ds.Tables[0].Columns
Posted to
XML Web Services
(Forum)
by
alockrem
on 11/4/2009
Re: Website shut down - too much CPU being used
Thank you for your help. The random class is already using a class level variable (see below). public class _Random { private static Random randomSeed = new Random(); public static int RandomNumber(int Minimal, int Maximal) { return randomSeed.Next(Minimal, Maximal); } } I understand what you mean about the unnecessary conversions. I don't disagree, but that shouldn't impact the CPU usage enough to make the web host shut it down should it?
Posted to
XML Web Services
(Forum)
by
alockrem
on 11/4/2009
Re: Website shut down - too much CPU being used
I'm not sure what I can do to stop denial of service attacks. My website provides free math tests to elementary students so hopefully I don't have many enemies wanting to shut me down. I can't run any debug tests until I move to a new host. I have agreed to not use the web services until I move my site to a new host. They are keeping the old code in place while I'm searching. Hosting suggestions?
Posted to
XML Web Services
(Forum)
by
alockrem
on 11/4/2009
Re: Website shut down - too much CPU being used
Thank you for the responses. I'm pretty sure I don't have access to the IIS logs. I'm on shared hosting. If I do I have no idea how to find them. The host specifically stated CPU usage. "This site was suspended due to consistent heavy cpu usage on the web server." The qty limitation is a good point. I am the only person testing right now and I know I have never set the qty to more than 10.
Posted to
XML Web Services
(Forum)
by
alockrem
on 11/4/2009
What is the best way to dynamically create objects?
I am creating a wizard application in c#. On each wizard step the administrator can add drop-down boxes, buttons, etc. The object data is stored in a database and displayed when the specific wizard step is requested. Note: I am not using the asp:wizard functionality. I would like to call a method stored in a class file to perform the logic and return the object. I am struggling with the following items: 1. The function requires that I specify the type of object being returned while defining the function
Posted to
Web Forms
(Forum)
by
alockrem
on 8/6/2009
c# best practices - code behind & add_code files
I am working on a project where quite a few controls are programmatically added to a placeholder. I am currently sending the placeholder and a few variables to a function in the app_code folder in an effort to keep the code behind page as clean as possible. I found a problem, though. If I want to create a button the event handler needs to call a function from the code behind page. Since I found this issue I have questioned if my original design is poor. It works great for most scenarios but doesn't
Posted to
Getting Started
(Forum)
by
alockrem
on 7/8/2009
c# - AddHandler in App_Code
I have a class file in the App_Code folder that creates objects on pages. The page passes a placeholder and a few values and the controls are programmatically added to the placeholder. One of the objects being created is a button. I believe I have to add an event handler to the button, but I'm having some problems. The method called is in the code behind page which is generating an error. btn.Click += new EventHandler(btnNext_Click); The error is: The name 'btnNext_Click' does not exist
Posted to
Getting Started
(Forum)
by
alockrem
on 7/7/2009
Re: Need help accessing dynamically loaded user control's public property
That fix is correct. Here is why that is happening and why the cast is required... In your original post you are loading the control as a "Control" instead of "MyUC". Since "MyNumber" is not a property of a standard control it isn't working for you. MyUC, which is your custom user control, does have a property of "MyNumber". By casting the control as MyUC you are allowed to define values for standard control properties and custom properties you have defined
Posted to
Web Forms
(Forum)
by
alockrem
on 6/26/2009
Re: Getting borders or rules in a table?
You will also probably want to include a border-color tag.
Posted to
Web Forms
(Forum)
by
alockrem
on 6/26/2009
Re: WCF - Service could not be activated
No. I stopped working with WCF because nobody could help
Posted to
Configuration and Deployment
(Forum)
by
alockrem
on 4/8/2009
Page 1 of 20 (197 items) 1
2
3
4
5
Next >
...
Last »
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Channel 10:
Bing's Top Searches Reveal Our Celeb Obsessions
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Silverlight:
Building extensible Silverlight applications with MEF
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
ASP.NET:
Script# Update - v0.5.5.0
Channel 10:
Difference between DirectX 10 and DirectX 11
Channel 10:
WHS Power Pack 3 Arrives
Channel 10:
ASUS Brings GUI to BIOS
ASP.NET:
Microsoft AJAX CDN – Now with SSL Support
Channel 9:
TWC9: XAML tools, Silverlight for Live Writer, Surface SDK,
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online