Total comments: 20

Page: 1 of 1 showing comments 1-20

1 Next > Last >>

Peter Griffith

Wrote: Tim, Thanks for this simple solution. Being only an occasional SQL user, was driving me mad how to delete 3 orphan uses. PG

On: 21/01/2010

About:How to: Remove users from the ASP.Net membership database

Vlado

Wrote: Thanks a lot! I'm just missing Validation there.

On: 11/01/2010

About:Complete Lifecycle of an ASP.Net page and controls

Tim

Wrote: Thanks! Looks like this post is a gift that keeps on giving.

On: 28/12/2009

About:String.Format and Input string was not in a correct format Error

Time and Attendance

Wrote: Crown Computing, the UK's leading software solutions workforce planning, Time and Attendance, and Time Accounting companies

On: 08/12/2009

About:Crazy Job Advert

Dan Evans

Wrote: I think there is a problem with my DB. Using the SQL above i get some duplicate files (possibly different versions?). Would that be why it's erroring? Also, it wants to delete thumbnails when it shouldn't unless the main file isn't used. Thanks Dan

On: 03/12/2009

About:Clean out unused media items from Umbraco media folder

Tim Gaunt

Wrote: I've just updated it, looking at the code that should have only happened if you changed your db string without reloading the form. Let me know how you get on Tim

On: 02/12/2009

About:Clean out unused media items from Umbraco media folder

Dan Evans

Wrote: Hi Tim Any chance you've fixed the bug in my post above? Or can i get the source code for this project please? Thanks Dan

On: 02/12/2009

About:Clean out unused media items from Umbraco media folder

Jesper Wilfing

Wrote: Sweet!!

On: 18/11/2009

About:String.Format and Input string was not in a correct format Error

AtlasRider

Wrote: This did help me, thanks!

On: 16/11/2009

About:Store common AppSettings in the web.config and an external file (configSource vs. file)

Adick

Wrote: Bingo!. Thanks.

On: 05/11/2009

About:String.Format and Input string was not in a correct format Error

bob munton

Wrote: great app! thanks

On: 16/10/2009

About:Excel change case -sentance, proper, lower and upper

Decode

Wrote: Hi, Great tip I used it just the other day. I also found some hardcoded values for the speech bubbles in Umbraco. YOu know the once that appears in the lower right corner when for instance you save a document. - umrbaco/css/umbracoGui.css - umbraco/js/UmbracoSpeechBubble.js

On: 14/10/2009

About:Fix missing JavaScript file when you rename the Umbraco admin directory

Yep

Wrote: That is precicely the situation I found myself in- 10 min past "should have left already", stairing blankly at an empty directory clawing my eyes out yelling "It doesn't exist already! I'm looking RIGHT AT THE FOLDER AND ITS EMPTY!"

On: 13/10/2009

About:C# FileInfo.MoveTo Cannot create a file when that file already exists exception

Интернет Маркетинг

Wrote: Thanks mate!I was looking for that solution nearly all day!I love your blog,awesome!!!

On: 04/10/2009

About:Fix missing JavaScript file when you rename the Umbraco admin directory

Aatish

Wrote: Hey, Thanks a lot. Originally, I was getting this System.IO.DirectoryNotFoundException (I still don't know how to fix that). Then, I moved my code to a dff machine. Now, I was getting this, "Cannot create a file when that file already exists". Thankfully, I fixed it! If you know the answer to DirectoryNotFoundException then please let me know. Thanks, Aatish

On: 29/09/2009

About:C# FileInfo.MoveTo Cannot create a file when that file already exists exception

vnd

Wrote: thanks for your post! It is useful for me! but it is more useful if you add more detail, such as where each step happen (server side or client side) -- sorry about my bad English--

On: 29/09/2009

About:Complete Lifecycle of an ASP.Net page and controls

Sandeep

Wrote: Hi Tim, This is an amazing work and very useful. Thanks for posting.

On: 13/09/2009

About:Complete Lifecycle of an ASP.Net page and controls

Alex

Wrote: Thanks! I tried to uninstall through control panel Management Studio Express, but that isn't worked!

On: 01/09/2009

About:SQL Server Management Studio won't install over SQL Server Management Studio Express

Pierre Marmignon

Wrote: Dear All, Here is an adapted version to clean all Logs found in 1-Level subfolders below the Root Folder. It'll also log in the EventLog instead of msgbox (or console) for better scheduled task compliance. Option Explicit On Error Resume Next Dim intDaysOld, strObjTopFolderPath, strLogFIleSuffix, ObjFS, ObjTopFolder, objShell, tmpObjFileName Dim ObjLogFolder, ObjW3SvcFolder, ObjSubFolder, ObjLogFile, ObjFile intDaysOld = 1 'Number of days to retain on the server strObjTopFolderPath = "C:\WINDOWS\system32\LogFiles" 'The location of your log files strLogFileSuffix = ".log" 'The suffix of your log files Set ObjFS = CreateObject("Scripting.FileSystemObject") Set ObjTopFolder = ObjFS.GetFolder(strObjTopFolderPath) Set objShell = Wscript.CreateObject("Wscript.Shell") PurgeLogs() Sub PurgeLogs() WriteLog 0,"Purge Logs Script Starting with Root Folder: " & ObjTopFolder.Path For Each ObjLogFolder in ObjTopFolder.SubFolders WriteLog 0,"Purge Logs Script Parsing SubFolder: " & ObjLogFolder.name Set ObjSubFolder = ObjFS.GetFolder(ObjLogFolder) For each ObjLogFile in ObjSubFolder.files On Error Resume Next Err.Clear Set ObjFile = ObjFS.GetFile(ObjLogFile) If datediff("d",ObjFile.DateLastModified,Date()) > intDaysOld and lcase(right(ObjLogFile,4))=strLogFileSuffix then tmpObjFileName = ObjFile.Name '***************************************************** 'DON'T UNCOMMENT THIS UNTIL YOU KNOW IT WORKS PROPERLY!!! 'ObjFile.Delete '***************************************************** If Not Err then WriteLog 8," Purge Logs Script has Deleted SucessFully " & ObjSubFolder.name & "\" & tmpObjFileName Else WriteLog 16,"Purge Logs Script Error While Deleting " & ObjSubFolder.name & "\" & tmpObjFileName End If End If Set ObjFile = nothing Next Set ObjSubFolder = nothing Next Set ObjTopFolder = nothing Set ObjFS = nothing End Sub Sub WriteLog(evType,msg) on error resume next Err.Clear objShell.LogEvent evType, msg End Sub

On: 29/08/2009

About:Automatically delete old IIS log files

Craig

Wrote: Nice one! Was exactly the problem.

On: 17/08/2009

About:String.Format and Input string was not in a correct format Error

Total comments: 20

Request Details

Session Id:gqp34q45jjfdyy55n2deee45Request Type:GET
Time of Request:15/03/2010 05:26:53Status Code:200
Request Encoding:Unicode (UTF-8)Response Encoding:Unicode (UTF-8)

Trace Information

CategoryMessageFrom First(s)From Last(s)
aspx.pageBegin PreInit
aspx.pageEnd PreInit0.0001083936645579260.000108
aspx.pageBegin Init0.0001505777968987680.000042
aspx.pageEnd Init0.001140368398776940.000990
aspx.pageBegin InitComplete0.00118059697531390.000040
aspx.pageEnd InitComplete0.00121691444024310.000036
aspx.pageBegin PreLoad0.001255466826091030.000039
aspx.pageEnd PreLoad0.001294019211938950.000039
aspx.pageBegin Load0.001328381121064270.000034
PageIndex: 10.001450463676249360.000122
PageSize: 200.001487619236523080.000037
PageCount: 10.001564724008218920.000077
startComment: 10.001623111317220480.000058
endComment: 200.001659708147264530.000037
comments: 200.001698819263342130.000039
Comments Removed0.001734577998041650.000036
allComments.Count: 200.001769219272281810.000035
Comments Removed 20.001813358960426530.000044
allComments.Count: 200.00184939706024090.000036
aspx.pageEnd Load0.1054930165705420.103644
aspx.pageBegin LoadComplete0.1056120261094640.000119
aspx.pageEnd LoadComplete0.1056522546860010.000040
aspx.pageBegin PreRender0.1056888515160450.000037
aspx.pageEnd PreRender0.1057477975552760.000059
aspx.pageBegin PreRenderComplete0.1057863499411240.000039
aspx.pageEnd PreRenderComplete0.1058221086758230.000036
aspx.pageBegin SaveState0.1076927374847920.001871
aspx.pageEnd SaveState0.1078991883046590.000206
aspx.pageBegin SaveStateComplete0.1079396962463110.000041
aspx.pageEnd SaveStateComplete0.107976013711240.000036
aspx.pageBegin Render0.108011213715710.000035
aspx.pageEnd Render0.1090457027359620.001034

Control Tree

Control UniqueIDTypeRender Size Bytes (including children)ViewState Size Bytes (excluding children)ControlState Size Bytes (excluding children)
__PageASP.allcomments_aspx14848400
    _ctl2System.Web.UI.LiteralControl17100
    _ctl0System.Web.UI.HtmlControls.HtmlHead5600
        _ctl1System.Web.UI.HtmlControls.HtmlTitle4300
    _ctl3System.Web.UI.LiteralControl1400
    form1System.Web.UI.HtmlControls.HtmlForm1458700
        _ctl4System.Web.UI.LiteralControl1700
        litCommentCountTopSystem.Web.UI.WebControls.Literal37680
        _ctl5System.Web.UI.LiteralControl600
        litPagenationSystem.Web.UI.WebControls.Literal1442120
        _ctl6System.Web.UI.LiteralControl600
        dtgCommentsSystem.Web.UI.WebControls.GridView141065616
            dtgComments$_ctl0System.Web.UI.WebControls.ChildTable000
                dtgComments$_ctl1System.Web.UI.WebControls.GridViewRow0240
                    dtgComments$_ctl1$_ctl0System.Web.UI.WebControls.DataControlFieldHeaderCell000
                dtgComments$_ctl2System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl2$_ctl0System.Web.UI.WebControls.DataControlFieldCell54800
                        dtgComments$_ctl2$_ctl1System.Web.UI.DataBoundLiteralControl5344760
                dtgComments$_ctl3System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl3$_ctl0System.Web.UI.WebControls.DataControlFieldCell44700
                        dtgComments$_ctl3$_ctl1System.Web.UI.DataBoundLiteralControl4333400
                dtgComments$_ctl4System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl4$_ctl0System.Web.UI.WebControls.DataControlFieldCell47200
                        dtgComments$_ctl4$_ctl1System.Web.UI.DataBoundLiteralControl4583760
                dtgComments$_ctl5System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl5$_ctl0System.Web.UI.WebControls.DataControlFieldCell50600
                        dtgComments$_ctl5$_ctl1System.Web.UI.DataBoundLiteralControl4924200
                dtgComments$_ctl6System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl6$_ctl0System.Web.UI.WebControls.DataControlFieldCell65800
                        dtgComments$_ctl6$_ctl1System.Web.UI.DataBoundLiteralControl6446240
                dtgComments$_ctl7System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl7$_ctl0System.Web.UI.WebControls.DataControlFieldCell57000
                        dtgComments$_ctl7$_ctl1System.Web.UI.DataBoundLiteralControl5565080
                dtgComments$_ctl8System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl8$_ctl0System.Web.UI.WebControls.DataControlFieldCell53100
                        dtgComments$_ctl8$_ctl1System.Web.UI.DataBoundLiteralControl5174520
                dtgComments$_ctl9System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl9$_ctl0System.Web.UI.WebControls.DataControlFieldCell42900
                        dtgComments$_ctl9$_ctl1System.Web.UI.DataBoundLiteralControl4153160
                dtgComments$_ctl10System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl10$_ctl0System.Web.UI.WebControls.DataControlFieldCell46600
                        dtgComments$_ctl10$_ctl1System.Web.UI.DataBoundLiteralControl4523680
                dtgComments$_ctl11System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl11$_ctl0System.Web.UI.WebControls.DataControlFieldCell42800
                        dtgComments$_ctl11$_ctl1System.Web.UI.DataBoundLiteralControl4143160
                dtgComments$_ctl12System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl12$_ctl0System.Web.UI.WebControls.DataControlFieldCell42300
                        dtgComments$_ctl12$_ctl1System.Web.UI.DataBoundLiteralControl4093080
                dtgComments$_ctl13System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl13$_ctl0System.Web.UI.WebControls.DataControlFieldCell69700
                        dtgComments$_ctl13$_ctl1System.Web.UI.DataBoundLiteralControl6836760
                dtgComments$_ctl14System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl14$_ctl0System.Web.UI.WebControls.DataControlFieldCell67900
                        dtgComments$_ctl14$_ctl1System.Web.UI.DataBoundLiteralControl6656520
                dtgComments$_ctl15System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl15$_ctl0System.Web.UI.WebControls.DataControlFieldCell53600
                        dtgComments$_ctl15$_ctl1System.Web.UI.DataBoundLiteralControl5224600
                dtgComments$_ctl16System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl16$_ctl0System.Web.UI.WebControls.DataControlFieldCell80500
                        dtgComments$_ctl16$_ctl1System.Web.UI.DataBoundLiteralControl7918200
                dtgComments$_ctl17System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl17$_ctl0System.Web.UI.WebControls.DataControlFieldCell57700
                        dtgComments$_ctl17$_ctl1System.Web.UI.DataBoundLiteralControl5635160
                dtgComments$_ctl18System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl18$_ctl0System.Web.UI.WebControls.DataControlFieldCell46900
                        dtgComments$_ctl18$_ctl1System.Web.UI.DataBoundLiteralControl4553720
                dtgComments$_ctl19System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl19$_ctl0System.Web.UI.WebControls.DataControlFieldCell53200
                        dtgComments$_ctl19$_ctl1System.Web.UI.DataBoundLiteralControl5184560
                dtgComments$_ctl20System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl20$_ctl0System.Web.UI.WebControls.DataControlFieldCell263700
                        dtgComments$_ctl20$_ctl1System.Web.UI.DataBoundLiteralControl262332640
                dtgComments$_ctl21System.Web.UI.WebControls.GridViewRow000
                    dtgComments$_ctl21$_ctl0System.Web.UI.WebControls.DataControlFieldCell44800
                        dtgComments$_ctl21$_ctl1System.Web.UI.DataBoundLiteralControl4343440
                dtgComments$_ctl22System.Web.UI.WebControls.GridViewRow0240
                    dtgComments$_ctl22$_ctl0System.Web.UI.WebControls.DataControlFieldCell000
        _ctl7System.Web.UI.LiteralControl600
        litCommentCountBottomSystem.Web.UI.WebControls.Literal37680
        _ctl8System.Web.UI.LiteralControl1800
    _ctl9System.Web.UI.LiteralControl2000

Session State

Session KeyTypeValue
RequestCollectionTheSiteDoctor.ErrorHandling.RequestCollectionTheSiteDoctor.ErrorHandling.RequestCollection
__$stateManagingPagesuserThemeSystem.StringTSD
__VIEWSTATEQUEUESystem.Collections.QueueSystem.Collections.Queue
__SESSIONVIEWSTATE8cc9216a8fe5b0dSystem.Web.UI.PairSystem.Web.UI.Pair
__SESSIONVIEWSTATE8cc9216ac15fdd1System.Web.UI.PairSystem.Web.UI.Pair
__SESSIONVIEWSTATE8cc9216b5a46ea7System.Web.UI.PairSystem.Web.UI.Pair
__SESSIONVIEWSTATE8cc9216cf5258feSystem.Web.UI.PairSystem.Web.UI.Pair
__SESSIONVIEWSTATE8cc9217217462a4System.Web.UI.PairSystem.Web.UI.Pair
__SESSIONVIEWSTATE8cc921732d824fdSystem.Web.UI.PairSystem.Web.UI.Pair
__SESSIONVIEWSTATE8cc921739eeb510System.Web.UI.PairSystem.Web.UI.Pair
__SESSIONVIEWSTATE8cc92173e568cc3System.Web.UI.PairSystem.Web.UI.Pair
__SESSIONVIEWSTATE8cc921741b0f33bSystem.Web.UI.PairSystem.Web.UI.Pair

Application State

Application KeyTypeValue

Request Cookies Collection

NameValueSize
ASP.NET_SessionIdgqp34q45jjfdyy55n2deee4542

Response Cookies Collection

NameValueSize

Headers Collection

NameValue
Cache-Controlno-cache
Connectionclose
Pragmano-cache
Accepttext/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encodinggzip
Accept-Languageen-us,en;q=0.5
CookieASP.NET_SessionId=gqp34q45jjfdyy55n2deee45
Hostblogs.thesitedoctor.co.uk
User-AgentCCBot/1.0 (+http://www.commoncrawl.org/bot.html)
x-cc-idccc03-01
X-REWRITE-URL/tim/allcomments.aspx

Response Headers Collection

NameValue
X-AspNet-Version2.0.50727
Cache-Controlprivate
Content-Typetext/html

Form Collection

NameValue

Querystring Collection

NameValue

Server Variables

NameValue
ALL_HTTPHTTP_CACHE_CONTROL:no-cache HTTP_CONNECTION:close HTTP_PRAGMA:no-cache HTTP_ACCEPT:text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 HTTP_ACCEPT_CHARSET:ISO-8859-1,utf-8;q=0.7,*;q=0.7 HTTP_ACCEPT_ENCODING:gzip HTTP_ACCEPT_LANGUAGE:en-us,en;q=0.5 HTTP_COOKIE:ASP.NET_SessionId=gqp34q45jjfdyy55n2deee45 HTTP_HOST:blogs.thesitedoctor.co.uk HTTP_USER_AGENT:CCBot/1.0 (+http://www.commoncrawl.org/bot.html) HTTP_X_CC_ID:ccc03-01 HTTP_X_REWRITE_URL:/tim/allcomments.aspx
ALL_RAWCache-Control: no-cache Connection: close Pragma: no-cache Accept: text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Accept-Encoding: gzip Accept-Language: en-us,en;q=0.5 Cookie: ASP.NET_SessionId=gqp34q45jjfdyy55n2deee45 Host: blogs.thesitedoctor.co.uk User-Agent: CCBot/1.0 (+http://www.commoncrawl.org/bot.html) x-cc-id: ccc03-01 X-REWRITE-URL: /tim/allcomments.aspx
APPL_MD_PATH/LM/W3SVC/60559365/Root/Tim
APPL_PHYSICAL_PATHD:\Websites\thesitedoctor.co.uk\blogs\Tim\
AUTH_TYPE 
AUTH_USER 
AUTH_PASSWORD 
LOGON_USER 
REMOTE_USER 
CERT_COOKIE 
CERT_FLAGS 
CERT_ISSUER 
CERT_KEYSIZE 
CERT_SECRETKEYSIZE 
CERT_SERIALNUMBER 
CERT_SERVER_ISSUER 
CERT_SERVER_SUBJECT 
CERT_SUBJECT 
CONTENT_LENGTH0
CONTENT_TYPE 
GATEWAY_INTERFACECGI/1.1
HTTPSoff
HTTPS_KEYSIZE 
HTTPS_SECRETKEYSIZE 
HTTPS_SERVER_ISSUER 
HTTPS_SERVER_SUBJECT 
INSTANCE_ID60559365
INSTANCE_META_PATH/LM/W3SVC/60559365
LOCAL_ADDR192.168.100.65
PATH_INFO/tim/allcomments.aspx
PATH_TRANSLATEDD:\Websites\thesitedoctor.co.uk\blogs\Tim\allcomments.aspx
QUERY_STRING 
REMOTE_ADDR38.107.191.113
REMOTE_HOST38.107.191.113
REMOTE_PORT35264
REQUEST_METHODGET
SCRIPT_NAME/tim/allcomments.aspx
SERVER_NAMEblogs.thesitedoctor.co.uk
SERVER_PORT80
SERVER_PORT_SECURE0
SERVER_PROTOCOLHTTP/1.1
SERVER_SOFTWAREMicrosoft-IIS/6.0
URL/tim/allcomments.aspx
HTTP_CACHE_CONTROLno-cache
HTTP_CONNECTIONclose
HTTP_PRAGMAno-cache
HTTP_ACCEPTtext/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSETISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODINGgzip
HTTP_ACCEPT_LANGUAGEen-us,en;q=0.5
HTTP_COOKIEASP.NET_SessionId=gqp34q45jjfdyy55n2deee45
HTTP_HOSTblogs.thesitedoctor.co.uk
HTTP_USER_AGENTCCBot/1.0 (+http://www.commoncrawl.org/bot.html)
HTTP_X_CC_IDccc03-01
HTTP_X_REWRITE_URL/tim/allcomments.aspx

Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053