blog@mcZen

Software, life, and leisure

Where is my script explorer?

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

September 19, 2007 6:04 AM

mike

I just recently changed from one domain to another. I don't really care much about my settings, since I sometimes like a fresh new start. It's kind of like cleaning out the closet. You take everything you don't wear anymore and throw it in a box in the attic. If you ever need it, you just go into the attic and get it. If it sits there until the next garage sale, you probably don't need it, so get rid of it. Now I get to have a nice fresh desktop - clutter free. If I need any of the files, I can just go into the "attic" and get it.

One thing that I lost was my visual studio settings. In particular, "Script Explorer" is gone. This tool is very handy to see what is currently loaded into Internet Explorer. You can also set break points in javascript and step through the code (by refreshing the page.) I live by it and wish I could afford to run the vs2008 version! Anyway, here is how you can get it back or get it in the first place:

Goto: Tools > Import and Export Setting...
Select: Reset all settings.
Click: Next

Obviously I don't care about my old settings...
Click: favorite option here
Click: Next

This next dialog can be overwelming...
Select: General Development Settings
Click: Finish
Click: Close

And there you have it. After attaching to IE, you can find the said Script Explorer under:
Debug > Windows > Script Explorer

Of course, we can't have a quick tutorial without some fun. Go Ahead and attach to IE with Debug > Attach to Process.... After Attaching, open up Debug > Windows > Memory1

Can someone give me the definition of "Debuggee"?

IISReset on a remote machine

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

September 16, 2007 5:17 AM

mike

When touching a web.config file isn't enough to allow you to swap out some dlls that you need to replace, iisreset will often do the trick. But when you're testing on a remote machine, this can be tedious and time consuming, especially when you have to remote desktop into the machine to reset iis and copy the dlls because there was a sharing violation.

Well, we are in luck because of runas. Runas allows you to login as someone else somewhere else. Note: this is not the same as "Run as Administrator" on VISTA/XP!

C:\>runas /noprofile /netonly /user:[username@domain] cmd
Enter the password for username@domain:
Attempting to start cmd as user "username@domain"

*NEW WINDOW*

C:\>iisreset MachineName

Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted

C:\>xcopy /Y my.dll \\MachineName\C$\inetpub\app_bin\
...
1 File(s) copied

Another fine utility is touch. I remember this from my UNIX days as being worthy as a windows utility. It allows you to "Touch" the file as if it has been modified. Touching the file may allow you to replace the dlls in the app_bin folder. (As a side note, in general, the app_bin folder is just a temp folder as the dlls get pushed down into the windows directory, but this is not necessarily true for all occasions, Sharepoint 2007 in particular.)

Here is a link for a touch program I found in 2 seconds on google... There are many out there and this is probably easy to write on your own if you're wanting to learn. Freeware! FMX Touch (for MS Windows) by Gregory Braun. If you're more into how than why, go download the commandline utility from code project: Touch for Windows.

Powered by BlogEngine.NET 1.4.5.7