Iis - CLR Profile Be Used For Profiling Applications?
Mar 3, 2011Title says it all but since requirement is that body must be atleast 30 characters, let me copy paste it.Can CLR Profile be used for profiling ASP.NET applications?
View 1 RepliesTitle says it all but since requirement is that body must be atleast 30 characters, let me copy paste it.Can CLR Profile be used for profiling ASP.NET applications?
View 1 RepliesJust an FYI for those trying to use the SqlTableProfileProvider in a Web application project. Here's my article:
Using the SQL Table Profile Provider in ASP.NET 4 Web Applications (C# & VB)
[URL]
The complete projects are here:
[URL]
I have a .NET web application running on a server that is suffering and eventually failing under load. Is there any kind of profiler I can run without having access to the code?
View 2 RepliesConsider a website that uses master pages and web user controls excessively.
(1)Master -> (2)page - > (3)web control > (4)web control -> (5)web control
this example of five levels may contain multiple web controls at each level.
Either way I want to add a simple timer on each master/page/web-user-control, so that i can TIME in milliseconds the time it takes to load.
DateTime dbg = DateTime.Now;
//...
if (!String.IsNullOrEmpty(Request.QueryString["dbg"])) Response.Write("<b>partial className:</b> " + DateTime.Now.Subtract(dbg).TotalMilliseconds + "<hr />");
The site is way too massive to do manually.Is there a way i can do this centrally, just for debugging/profiling reasons?
I am using profile services to store some attributes of users registered in the website. Now I am making a display profile page for a user. The problem is that the profile loads easily when I am running the site from VS 2010, but it gives the following error when I run it from IIS7 on my local machine:
System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
[Code]....
[code]....
I've been worked with web services so far, and I'm interested in expanding my services to console applications as well so I started digging up with WCF but I'm conserned that I won't be able to use the HttpContext collection that I've been used to do with web services one important thing which is to generate a random value from HttpContext.Current.Request.ServerVariables["ALL_HTTP"] that I need to reckon if it's the same or at least near what machine that is calling my service. How can I overcome this problem?
I need to know what machine is calling to count the number of attempts to login into my system for example. So must do it inside of the svc code otherwise if I let the client inform what ip address or what computer he is using, anyone could forge this argument and surpass by another machine. May be I'm approaching this matter wrongly. And I should count the number of attempts per state session, but how is it done?
I'm trying to update/create the user profile for a specific user that will not be the logged on user of the moment. I'm able to do this with the following code:
'Dim p As ProfileBase = ProfileBase.Create(Email, False)
I am logged in as user1, and while creating a user in which I have additional information which would store first and last name into the profile database. I have the following code
[Code]....
But because I just have profile like that, it is updating the profile of user1 not the new user i just created
[Code]....
Our corporate intranet is designed so that each web application is a child application in the primary application.. Everything has worked fine with Visual Studio 2008 and even in 2010 running the website locally works great, the output directory for the child apps is ..in and the ProjectName.dll copies to that directory.. When I do a publish however it does not and I have to manually copy the dll from the bin folder in the project folder to the parent bin folder, this isn't hard of course but more of a pain in the butt each time I need to publish something. I made sure the output directory is correct for both debug and release yet on publish is just copies it to the child bin and not the parent bin as needed.
View 2 RepliesI'm being stupid but don't know what I'm missing.I want to use asp.net profile and have a profile property.So in the webconfig for my site I've added:
<profile>
<properties>
<add name="Name"/>
</properties>
</profile>
But in the code behind a page I cannot use Profile.Visual Studio is just saying the Profile is not known in the current context.Thus I cannot do
Profile.Name = ....
or
x = Profile.GetPropertyValue(....)
I got the followig task.Create a website (Profile.aspx) in which the User can create and edit his profile.Well, I know how to write in a database, but how do I get the UserName oder the UserID to make a PrimaryKey?If the user is logged in a session will be started. In this session is the UserName but I don't know how to read out the UserName with ASP.NET to make an PrimaryKey. If I would try to read out the UserName with C# I must save it in an variable and give it somehow to my form.
asp:sqldatasource id="SqlDataSource1" runat="server"
connectionstring="<%$
ConnectionStrings:MyConnectionString %>"[code]....
Am i right in thinking that the greatest use of XML is for web services ? are there any other major benefits of using XML within web applications ?
View 7 RepliesI am looking for ASP.NET applications that I can deploy to my local server. suggest a link for open source .NET applications or any book?
View 1 Repliesi am working on a web application that now requires a CMS.
Could you suggest me a product that grant integration with my existing application.
The latter is implemented using .Net framework 3.5 Linq to sql and SQL Server 2008
I may consider even not open source product (affordable price)
i want to create a Master page and allow the application's users to modify the content.
Ideally give them the ability to add controls such as image sliders (but this is not the main scope)
Main objective is the ability to modify the content usually text. Bu more is always better.
HiMy web site uses 2 unmanaged DLLs (gsl.dll, cblas.dll). I put these dll's in the bin folder along with some other managed dll's. On my development system everything is fine when using the built-in dev server in Visual Studio 2010. However, when I run the site through my dev system's IIS instead of the Visual Studio server I get the following error:'C:<absolute path to bin folder>ingsl.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
View 8 RepliesI'm looking for nice icons for my webapplications. Some of these applications are commercial applications. I want to polish them up by using nice looking icons, but where do I find specific icons/grafics?Does anybody know a icon shop, that allows me to buy single icons for commercial use?
View 7 RepliesAfter some trial and error I'm stuck with some applications in my database. I tried to delete them, but wound up with error about referential integrity. Is there any way to delete all of this?
View 2 RepliesNumber of records used in pagination & other UI parametersCache duration for web-pages & timeouts Route maps & site structureThere are many approaches to store all this information also:AppSettings (web.config)Custom sections (web.config)External xml/text files referred from web.configInternal static class(es) of constants Database table(s) ...
View 1 RepliesIf I want to develop web applications using ASP.NET and C#, then do I really need to learn Silverlight?!
View 2 RepliesWe have several web applications that create a shopping cart, save it to a database, then redirect to a centralized web application to process and accept payment for the shopping cart. Right now, we are using GUIDs for the shopping cart IDs and passing those GUIDs in the querystring to the payment application. We are using GUIDs so that a user cannot easily guess the shopping cart ID of another user and simply plug that ID into the URL.
Now, using GUIDs in the database is bad for indexing and using GUIDs in the URL does not truly prevent a user from accessing another cart. However, using passing integers around would make it too easy.
What is the best and most secure way to pass the IDs from the individual applications to the centralized payment application?
I know that some people may say, "Who cares if someone else wants to pay for someone else's shopping cart?" However, we have the same concern when passing IDs to the page that displays the receipt and that page includes the customer's name.
A few months ago I was interviewing for a job inside the company I am currently in, I dont have a strong web development background, but one of the questions he posed to me was how could you improve this block of code.I dont remember the code block perfectly but to sum it up it was a web hit counter, and he used lock on the hitcounter.
lock(HitCounter)
{
// Bla...
}
However after some discussion he said, lock is good but never use it in web applications!What is the basis behind his statement? Why shouldnt I use lock in web applications?
After IIS reset,first hit taking a long time because App Pool is starting and other NET components,DB connections are initializing. What would be the best way to warm up IIS applications and preload required components (e.g. GAC Assemblies, WCF, WWF libraries).
View 5 RepliesI am creating an ASP.NET MVC application. Now I see that it is slow. How can I profile it to see where the problem lies?
View 4 RepliesI am using RPX for authentication. Now I get the user profile with identifier. What to do next to set authentication cookie and other things? Also the logout feature. in ASP.net 3.5 and C#.
View 2 Repliesi want to use the Profile to store some informations about the user , but i don't know how cause i am using a web applicatio not a web site. In fact, i want to store data after that the user click on a button.
I use C#