Automatically refresh page after some interval...

Description

Refresh page using JavaScript.

Code

<html>
<head>
<title>Refresh page using Javascript</title>
<script type="text/JavaScript">
 function RefreshPage(Period) 
 {
  setTimeout("location.reload(true);", Period);
 }
/* Optional code */
 var Today = new Date();
 var day = Today.getDate();
 var month = Today.getMonth();
 var year = Today.getFullYear();
 var hours = Today.getHours();
 var minutes = Today.getMinutes();
 var seconds = Today.getSeconds();
 document.write(day + "/" + month + "/" + year + " " + hours + ":" + minutes + ":" + seconds)
/* End of Optional code */
</script>
</head>
<body  önload="javaScript:RefreshPage(1000);">
</body>
</html>

Browser Compatibility

I have tested this script in the following Web browsers:
  • Internet Explorer
  • Mozilla Firefox
  • Google Chrome
  • Safari
  • Opera

Output

20/5/2011 17:56:51
You can see the running date-time of today on page refresh. Here I gave 1000 milliseconds (1 sec) in the code (for page refresh) and you can change the value based on your requirement.

SqlMetal.exe (Code Generation Tool)

https://msdn.microsoft.com/en-us/library/bb386987(v=vs.110).aspx

Project Dependencies and Build Orders. (Visual studio - getting error “Metadata file 'XYZ' could not be found”)

http://stackoverflow.com/questions/20490857/visual-studio-getting-error-metadata-file-xyz-could-not-be-found-after-edi


Well, my answer is not just the summary of all the solutions, but it offers more than that.

Section (1):

In general solutions:

I had 4 errors of this kind (‘metadata file could not be found’) along with 1 error saying 'Source File Could Not Be Opened (‘Unspecified error ‘)'.

I tried to get rid of ‘metadata file could not be found’ error. For that, I read many posts, blogs etc and found these solutions may be effective (summarizing them over here):

Restart VS and try building again.

Go to 'Solution Explorer'. Right click on Solution. Go to Properties. Go to 'Configuration Manager'. Check if the checkboxes under 'Build' are checked or not. If any or all of them are unchecked, then check them and try building again.

If the above solution(s) do not work, then follow sequence mentioned in step 2 above, and even if all the checkboxes are checked, uncheck them, check again and try to build again.

Build Order and Project Dependencies:

Go to 'Solution Explorer'. Right click on Solution. Go to 'Project Dependencies...'. You will see 2 tabs: 'Dependencies' and 'Build Order'. This build order is the one in which solution builds. Check the project dependencies and the build order to verify if some project (say 'project1') which is dependent on other (say 'project2') is trying to build before that one (project2). This might be the cause for the error.

Check the path of the missing .dll:

Check the path of the missing .dll. If the path contains space or any other invalid path character, remove it and try building again.

If this is the cause, then adjust the build order.

Section (2):

My particular case:

I tried all the steps above with various permutations and combinations with restarting VS few times. But, it did not help me.

So, I decided to get rid of other error I was coming across ('Source File Could Not Be Opened (‘Unspecified error ‘)').

I came across a blog: http://www.anujvarma.com/tfs-errorsource-file-could-not-be-opened-unspecified-error/#comment-1539

I tried the steps mentioned in that blog and I got rid of the error 'Source File Could Not Be Opened (‘Unspecified error ‘)' and surprisingly I got rid of other errors (‘metadata file could not be found’) as well.

Section (3):

Moral of the story:

Try all solutions as mentioned in section (1) above (and any other solutions) for getting rid of the error. If nothing works out, as per the blog mentioned in section (2) above, delete the entries of all source files which are no longer present in the source control and the file system from your .csproj file.

Smart Card Magic.NET

http://www.smartcard-magic.net/en/

http://www.elektor.com/

What's new in Team Foundation Build

https://msdn.microsoft.com/en-us/library/hh977160.aspx

Use Team Foundation Version Control

https://msdn.microsoft.com/en-us/library/ms181237.aspx