Is there an easy way to generate a log file that will trace at runtime the path through the code? I would like to see every controller, action, and view that was executed as my program runs. Can this be done without having to add logging code to every controller, action, and view?
i am asking very little bit confused 1 What is difference b/w tracing and debug in asp.net 2. what is tracing, why we used tracingPlz Dont Me Post, Give Me Suitable Answer because i am doing Prepratio
I have a page (not online but only on my mashine - and it is on all pages in the application ) when I load that page in IE and look at the clock I can see, that it use about 1 second to load the pageNow I load the page in Firefox or GoogleCrome and again I look at the clock and can see, it takes about 5 seconds to load the page.Then I thought I could use Trace=true on the page to see, where it hangs when loading the page in Firefox or GoogleCrome by comparing with the trace log from the IE page......But the only time differences I can see is, that Firefox uses LESS time than IE to load page.
I want to be able to track the amount of data that is being transfered from my web site to each user that accesses the site. I can do this for file downloads and such but what about the pure html content itself.
How can I track the output size of a page (or the data that's trasnfered via an AJAX call) to the client and log it against a particular users session?
Also how would this differ when GZip is used in IIS 6.0?
I have a question regarding a situation that occurs with GridView, ObjectDataSource in ASP .NET application. The GridView is linked to the ObjectDataSource and both are included within an UpdatePanel letting the GridView to fill in an asynchronous way from a form in the same page so it gets more rows as the user enters the data:
I start the project with Visual Studio 2008, fill the form and it works correctly. Then I stop the execution: rerun again and the data I entered in the previous run is in the GridView. Is like some sort of cache saved the data from the session before. I checked that EnableCaching property is set to false for the ObjectDataSource. If I Rebuild Web Site in Visual Studio (not just Build) then it works corretly leaving the GridView empty. Is this caused just becuase of Visual Studio? Can it be turned off? And will it happen in the final IIS it will run on?
I want to build a survey system where you can build a form with questions and some answers to these questions and then members who will log in will be able to take the test.
Then i want to present the different results from the test in some diagram or something like that.
I have a web service that I developed on my local machine using the Enterprise Library for database access and exception logging. This all works fine on my machine but not on my server. I get the following error and i do not know why. Tracing to LogSource 'General' failed. Processing for other sources will continue. See summary information below for more information. Should this problem persist, stop the service and check the configuration file(s) for possible error(s) in the configuration of the categories and sinks. I do not see any errors in the configuration. I can get it to log to a flat file but not to the event log or an email it is to send. This is on a Windows Server 2008. Is there any special permissions I need to set? I hope this is the correct place to post a message such as this, if not let me know where to post it to.
I wanted to use tracing to capture errors and programmatically send reports via email and text message...that if the ADMIN is eating out at a restaurant on a saturday nite he can see the text message/email to notify and capture..any way to do this??
I have a TFS build set up to deploy an ASP.net project to a test server.The build works great, and deploys to the test server fine, but instead of putting it into the Website directory that my IIS webserver is configured for, it puts the build into Website_20100511.6
Why is the date suffixed to the directory name? Is there a way to turn that off so I can publish directly to the Website?
I need to build web application that will do:1 - build web pages. 1a - build template for page. 2 - add module(by module I mean ContacUs form, Search, Billing System...). Each module can be constructed by submodules or diveded to submodules 2a - build module(add form, textbox, button...) and that all entered data by user could be saved in dbCan you advise me a DB structure that will contain it allI looked some cms db, but it's NOT this. Please, don't ask why I mess with it. I just need to build it.
I'm trying to pinpoint an ASP.NET page performance issue and I'm running tracing. As Look at the value returned the "Begin Init" value larger than "End Render". Shouldn't the number of seconds increase for each event listed?
Here is the output example:
Category Message From First(s) From Last(s) aspx.page Begin PreInit aspx.page End PreInit 1.34734832226262E-05 0.000013 aspx.page Begin Init 3.04115764167849E-05 0.000017 aspx.page End Init 0.000133579962235751 0.000103 aspx.page Begin InitComplete 0.000148208315448888 0.000015 aspx.page End InitComplete 0.000158602145363486 0.000010 aspx.page Begin PreLoad 0.000167841105287572 0.000009 aspx.page End PreLoad 0.000180544675183191 0.000013 aspx.page Begin Load 0.000189783635107278 0.000009 aspx.page End Load 1.11670230723776 1.116513 aspx.page Begin LoadComplete 1.11673502855416 0.000033 aspx.page End LoadComplete 1.11674580734074 0.000011 aspx.page Begin PreRender 1.116754661344 0.000009 aspx.page End PreRender 1.1210065076924 0.004252 aspx.page Begin PreRenderComplete 1.12102498561224 0.000018 aspx.page End PreRenderComplete 1.12108927337505 0.000064 aspx.page Begin SaveState 1.12280194557098 0.001713 aspx.page End SaveState 1.12307988428203 0.000278 aspx.page Begin SaveStateComplete 1.1230991321152 0.000019 aspx.page End SaveStateComplete 1.12311029585844 0.000011 aspx.page Begin Render 1.12311876490504 0.000008 aspx.page End Render 1.12626309093254 0.003144
I am trying to add Failed Request Tracing to my IIS 7/ASP.NET server.
First, I create failed request tracing for "all content, error codes 400-999" because want to save all errors.
Then, I try to create a trace for "all content, time: 5 seconds" because I want to trace all "long" requests. However, IIS 7 gives me an error: "A failed request trace for this content already exists".How can I add this second trace for all content that takes > 5 seconds?
I'm thinking about building my own web server, from scratch, to host websites on the interweb. What recomendations could you consider before starting? Or, is it a dumba$$ thing to do, and not worth it? The reason I am even considering it, is because I have seen ALOT of .NET jobs that require Windows Server/MSSQL Server (DBA) experience. Hey, why hire 2 people, when one can do it all. Just trying to kill all birds with a bazooka, before making a profit with a corporation.
1 - build web pages. 1a - build template for page. 2 - add module(by module I mean ContacUs form, Search, Billing System...). Each module can be constructed by submodules or diveded to submodules 2a - build module(add form, textbox, button...) and that all entered data by user could be saved in dbDB structure that will contain it allI looked some cms db, but it's NOT this.lease, don't ask why I mess with it. I just need to build it.
I have project using MVC and I have created a menu bar using the <div> tag just below my header.
These items would be ones like; Contact, Home, FAQ, Search, Clients, About Us, Our Services
I have a single homecontroller displaying the main content in its view and I have a .master file displaying the header, menu bar, and footer. I have created a navigation controller which will call the code below in Site.Master
comment: if u answer , please split your answer into numbers (like the questions) in order to avoid misunderstanding, thx :)
Hey. I'm going to finish read the book "Beginning ASP.NET 3.5 in C# 2008".
And I'm going rebuild my html gaming website (flash games website) www.gamesff.com
In the future site, There are 3 main pages:
Homepage (Present all the New games etc...) Category Page (There are 9 games categories , it's present the games of each category)Game Page - in this page people can play the game, and see description of the game like description, date added, rating, etc... They can vote for this game too
Before I'm starting build it I have some questions.
1. I want the same Header, Footer and Menu in all the pages of my website.
How to do it: With Master Page?
2. In the Homepage I have:
Links + Pictures + Description of The 12 newest games of all the categories. Links + Pictures + Description or of The Most Popular games of the Last week. Links + Pictures + Description of the Last (newest) 6 Games of each category (there are 9 categories: action, shooting, sports etc...). But not games that existing in the (Newest Games section (the first section in this list).
How to do it? : With DataSet using TOP sql property??? What is the best way (for Optimum Performance)
And how to do the third section in the list, how can I insert the top games of all the categories, but not Games that presented in the first section? (I can't use normal sql SELECT because it will present the games that in the first section.
3. In the Category Page people can see the games of each category (there are 9 categories pages - for each category)... and people can order the games (date added, ratings, and popular games) by using "DropDownList".
And people can see only 30 games per page. So there are buttons of: next, 1, 2, 3 etc... (Of each order)
How to do it?? For example if I want the Action Category page order by poplar: using sql: SELECT top (30) ..... where Category='Actoin' ORDERBY Visitor_Count ??
How to do the paging?
What to use DataSet? DataReader? DataBinding?
4. And how to make the game page?
Using Query String? And select details from the database By the Game_ID of the Query String??
What to do if I want nice game's Url address? (from example the game Batman)
Address Like this http://www.gamesff.com/action/Batman
5. in the game page, the code of the flash is like this:
How can I embed the address of the game from the database to this code?
Using Data binding of <%# GameAddress %> for example.. ?
6. I want count the number of the visitor per page. I know How to do it. But how Can I avoid from double counting of each user per day?
What to do? use database table for list of ip address and this list will clear once a day ? (But if I have thousand of visitor per day can it reduce the performance of the server if the server connect to the database for using ip address for each time that someone visits any game?
I am new to ASP.NET MVC, and the ASP.NET technology in general, so, please, excuse the stupidity of my questions. I have a lot of experience with php development and CMS customization (Drupal and Wordpress mainly), and I wanted to know whether some techniques could be applied in asp.net mvc. I want to know what exactly could be modified without recompiling an already built application
Can I edit the views without recompiling the app. Can I create custom themes ?Can I add plugins compiled as dlls and use them at runtime. Can I "mark" the assembly in such a way that the web application will check on the next request and will reference it, without me manually adding it to the project and recompiling. I've heard that this is possible.
I will make sure to add more when something comes up. The reason I am asking is because I'd like to try and develop a Drupal-like CMS (custom types, views, etc) in asp.net mvc. The dynamism of php will be quite a challenge to replicate in a compiled technology, yet I am ready to try.