Adsense

Monday, November 16, 2009

Visual Studio – Disable the Attach Security Warning

After installing Windows 7 I started to encounter a new popup when trying to debug the web application that I am currently working with.

Warning

This extra step is fairly annoying when you are debugging frequently. I heard rumor about a Registry Setting that could be updated or changed to get rid of this but could never track down the exact key or value. Luckily, there is a much simpler solution to getting rid of this error.

Navigate to: Control Panel->Administrative Tools->Local Security Policy->Security Settings->Local Policies->User Rights Assignment

Setting

Double click on Debug Programs and you’ll see the following screen where you can add your user. By adding your user, you will be a member of the debug programs group and this annoying error should disappear.

Setting2

Friday, October 16, 2009

The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020) – IIS 7 – Internet Information Se

In IIS7 I was trying to start my Default Web Site and was getting the following error screen.
IIS - Skype - Error
The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)
A quick Google search turned up the following Microsoft Support Topic. Ok. Lets take a look at netstat and see what might be causing problems. Open a command prompt ([Windows Key + R] and enter cmd) and enter the command. After running netstat -ano, I noticed that there was indeed another process (with a process id of 796) accessing port 80. (You can enter netstat /? to see what the –ano flags are doing.)
netstat
The offending process that is using port 80 has a process id of 796. Now, how to find out what that process 796 is?
Using the tasklist command will show a list of all processes running in windows. You can use the /fi flags to filter the results. In this case I’m using a filter that will only show processes with a PID that equals 796. tasklist /fi “PID eq 796”
Tasklist Filter Command
The process with process id is Skype. Makes sense that it would be using port 80. I promptly closed down Skype and was then able to start my Default Web Site in IIS Manager. Hope this helps someone.

Monday, September 07, 2009

Adding a 2nd blog account in Windows Live Writer in Windows 7 gets stuck on “Detecting blog icon”

I’m currently running Windows 7 and I tried to add my 2nd blog account to Windows Live Writer today. Unfortunately, Live Writer would get stuck on the “Detecting blog icon…” message when setting up the new account.

I did a bit of poking around on Google and found a couple of posts about this same issue.

This post mentions that running Live Writer as Administrator fixed the issue for them. (You can do this by right clicking on the Live Writer icon and choosing Run as administrator, btw.) Running live writer as Administrator did not work for me. I still got stuck on the “Detecting blog icon…” message,

This answer from Yahoo Answers mentions trying to close Live Writer and re-open it. Closing and Reopening Live Writer didn’t solve the problem for me. The next suggestion on this question was to reboot windows.

After rebooting Windows 7, I was able to successfully add my 2nd live writer blog account.

Directory "X" associated with feature 'XXX’ in the solution is used by feature 'XXX' installed in the farm. All features must have unique directories

I copy and pasted a feature/module in my VWeWSS solution and updated the module.xml file. Unfortunately, I missed an edit in the file and caused  a problem. After fixing my module.xml file, I got the following error message in visual studio.

Directory "X" associated with feature ‘GUID1’ in the solution is used by feature ‘GUID2’ installed in the farm. All features must have unique directories to avoid overwriting files.”

This seemed like a straight forward error, but I had a bit of trouble tracking down what exactly to do to be able to use the Deploy command again. I was able to fix the error eventually by retracting my solution. You can retract a solution by performing the following step.

  1. Go to Central Administration
  2. Click on Operations
  3. Click on Solution Management under Global Configuration
  4. Click on the name of the problem solution
  5. Click on Retract Solution
  6. Choose Now for Rectract When?
  7. Click OK
  8. Wait for the retraction to complete and then try to deploy again from VWeWSS

Hope this can save someone a bit of time.

Friday, September 04, 2009

“Value does not fall within the expected range” when deploying WSP with VSeWSS's deploy command

I started to get a Value does not fall within the expected range error when trying to use the VSeWSS Deploy command from within Visual Studio 2008.
Error
Value does not fall within the expected range.
I spent almost an hour trying to track down what exactly was causing my problem. There are tons of posts about this error message, but it seems like there can be many causes. Unfortunately, none of these solutions worked for me.
After banging my head on my keyboard for a while longer, I started to systematically exclude elements/folders of my VSeWSS project and then trying to run the Deploy command again. Seems desperate, I know, but it ended up helping me find out what exactly was causing this error. Excluding my project Features didn’t fix the error, but by excluding the whole TEMPLATES folder the error went away. I was onto something. I started to exclude sub folders and after playing around with this for a while, I narrowed the problem down to the nav folder within my IMAGES folder. After looking in the folder, the cause was obvious… /Facepalm.
Cause
Earlier this morning I had recreated some of my navigation images and replaced the old jpgs with pngs. Unfortunately, my project was still referencing the missing files. By removing the missing references, the error went away. Too bad the error wasn’t a tad-bit more helpful instead of being completely obscure.
In conclusion. If you’re experiencing the Value does not fall within the expected range error. Double-check your VSeWSS project for any references files or folders that no longer exist or any that exist in your folders but are not referenced by your project. Remove any that you find and it might solve your problems.

Thursday, September 03, 2009

“A World Wide Web browser, such as Windows Internet Explorer, is required to use this feature” in Microsoft Office SharePoint Designer

In Microsoft Office SharePoint Designer when I Check In a file to my website and choose to Publish a Major Version.

Save Dialog

SharePoint Designer shows the following Dialog.

Approval Status dialog

This document requires content approval. Do you want to view or modify its approval status?

When I click Yes, I get the following error dialog.

Error Dialog

A world Wide Web browser, such as Windows Internet Explorer, is required to use this feature.

My first instinct was to make Internet Explorer my default browser *shudder*. I did this by opening Internet Explorer, clicking on Tools and selecting Internet Option. I then clicked the Programs tab and clicked on Make Default. Unfortunately, it didn’t make this silly error go away.

A little more digging into the issue presented something interesting. By bringing up Default Programs (Press your Windows Key and enter Default Programs into the search box) and then clicking on Set your default programs, you can see settings for Firefox, Chrome and Internet Explorer web browsers.

By selecting and application on the left, you can set it to be the default program by clicking Set this program as default (clicking this for Internet Explorer didn’t work either, btw) or you can choose some specific defaults for the selected application by clicking on Choose defaults for this program. The latter is basically managing the extensions and protocols associated with the program.

The list of default settings for my web browser are displayed in the 3 images below.

Chrome Default Settings Chrome Associations

FireFox default settings

Firefox Associations

IE Default Settings

Internet Explorer 8 Associations

Looking at the differences between the associated extensions, Internet Explorer doesn’t have entries for .shtml, .xht, or .xhtml by default while both Firefox and Chrome do. Thought I’d try to manually associate these three extensions with Internet Explorer to see if it fixed the issue, thinking that one of these extensions was being routed to Firefox or Chrome even with Internet Explorer set to be the default browser. You can do this by going back to Default Programs and clicking on Associate a file type or protocol with a program. Unfortunately, the error wasn’t affected by this change.

To get rid of this error, I actually had to uninstall Firefox and Chrome. I was able to re-install Firefox without checking the Make my default browser checkbox and the error was still gone, but any installation of Chrome would cause the error to come back.

It looks like the only fix for this is to remove Firefox and Chrome if they are installed. If anyone else knows of a valid work-around that allows you to keep Chrome installed, please let me know.

Thanks.

Thursday, August 27, 2009

Minimum configuration to get ride of 'Server farm configuration not complete' message in SharePoint 2007

Setup SharePoint for the 1st time today and was annoyed to see the following message staring at me with no clear idea of what I was expected to do to get rid of it.

! Server farm configuration not complete !

So. My obvious question was what needs to be configured to get ride of this message. It wasn’t until I had completed the following from Central Administration that the message disappeared.

  1. Clicked  on Shared Services Administration and added configured my Shared Services Providers
    1. This required me to create an associated Web Application (if your web application list is empty after creating a new one, see This Post about a potential fix.)
  2. Configuring and starting the services below from the Central Administration –> Operations -> Topology and Services -> Services on Server screen
    1. Office SharePoint Server Search
    2. Windows SharePoint Services Help Search
  3. Setup Outgoing Email Settings from the Central Administration –> Operations -> Topology and Services –> Outgoing e-mail settings

After configuring the above items, the message went away.

Web Application list is empty in SharePoint 2007 – New Shared Services Provider and Application Pool identity

After creating a web application in SharePoint and then trying to configure a new Shared Service Provider (SSP), I was dismayed to find my web application list was empty. Because of this, there was no way to select my my web application and I was unable to create a new SSP.

After doing some digging I found out that the list will not show web applications that have a built-in account (such as Network Service) associated with the application pool assigned to the web application. After configuring the application pool associated with my web application to use my domain user account instead, the Web Application list on the Shared Services Provider screen was correctly showing my web applications. I was then able to successfully create my new SSP.

Tuesday, August 25, 2009

'HTTP Error 503. The service is unavailable' message in IIS7 – Application Pools

One of my IIS7 virtual directories wigged out today and started to give me the following error screen.
Error Screen
Service Unavailable – HTTP Error 503. The service is unavailable.
I found a post from Rich Strahl that pointed me in the right direction. When I brought up my Internet Information Services Manager and clicked on Application Pools, my DefaultAppPool was stopped.
app pools
Unfortunately, my application pools were already set to auto-start and restarting the application pool didn’t solve my problem. As soon as I tried to bring up my website, the application pool would immediately stop again and give me the same error screen. After spending the next 10 minutes or so restarting Windows 7 and starting and re-staring my application pools to no avail, I decided to re-install my IIS7 and Windows Process Activation Service features.
After re-installing these windows features, everything was back in order. Unfortunately, I did have to add ALL of my virtual directories again, but I expected as much. You can re-install these features from the Programs and Features screen by clicking on Turn Windows features on or off.
Programs and Features
On the Windows Features screen, you can uninstall any feature by removing the check next to it and then clicking OK. You can then return to this screen after restarting windows to reinstall them.
Windows Features Windows Features 2
Hope this helps someone. If anyone knows how to correct this without reinstalling the features, please comment!

Wednesday, August 12, 2009

Windows 7 New Taskbar Review

I’m starting to like the Windows 7 taskbar more and more. The application grouping takes a bit of getting used to, but I love how nice and clean it is. Rather than just showing you your open windows, the Windows 7 taskbar serves as more of an application launcher. I’ll share a few of my favorite features of the new and improved Windows 7 taskbar below!

Taskbar Overview

taskbar

The layout is nice and clean. No more text labels to clutter up the bar. You can pin applications to the task bar for easy launching (good bye quick launch bar!) You can easily tell which application I have open and which are just pinned to the task bar but not open (In the image above Chrome is open, while Firefox and Internet Explorer are pinned but not open.) You can see that I have multiple Live Messenger windows open just by looking at the icon. You can also tell that I have an new message/alert by the yellow highlight on the icon itself.

Taskbar Icons

hover

If you hover oven the Live Messenger icon with the mouse you get a popup window that will show all of my conversation windows along with the messenger itself. From this popup you can select a window by clicking on it, or close it by clicking on the red X. I was very delighted to find that clicking the middle mouse button on one of the conversation windows closed it, just like I had hoped and expected it to.

*PSA* If you don’t use you middle mouse button for more than scrolling, you really should. You can middle-click web links to open them a new tab in your browser or middle-click a tab to close it. I’m happy to see that you can now middle-click in the new Windows 7 Taskbar to close some things. */PSA*

Jump Lists

swipe up

The above window (or Jump List as Microsoft calls them) is displayed when you right click an application’s icon on the taskbar. As you can see, this popup is customized for the application (Live Messenger) and gives you quick access to its features without actually activating the application. This window gives you access to frequently used options or other features that might be specifically programmed for the specific application. Very handy! (Note: You can also left click and move the mouse up quickly on the application’s icon to display this same window. Feature?)

Launching Apps

launch

One thing that wasn’t immediately obvious to me was how to launch another instance of an application when I already had one open. In this screenshot I already have an instance of Visual Studio 2008 open. To open another, you right click the application’s icon and then click on the application button from the popup. You can also launch new instances of an open app by Shift + Clicking the icon (Thank BlackTigerX.)

Hold Shift to Open Files With Taskbar Apps

open with

If you have a file that you would like to “Open with” one of your open applications, you can drag the file over the taskbar icon for the application while holding [Shift Key] down. You will notice that the popup label changes from “Pint to…” to “Open with…”. When you release your mouse button, the file will be opened with the application rather than pinning it to the taskbar.

Pinned Folders

Explorer

Another initial annoyance was the way pinned folders work with the task bar. In Vista, I had a couple of work directories that I opened many times daily pinned to my quick launch bar. In windows 7 you can only have a single system folder pinned to your taskbar. Any additional folders that try to drag to the taskbar is then pinned to the single windows explorer/folder icon. By default, clicking this icon bring up your Libraries window (another handy Windows 7 feature that we wont get into yet.)

folders

The additional folders that you pin to the taskbar are accessible by right clicking on the explorer/folder icon. Just like the paulf folder above. This screen also gives you quick access to a list of your frequently accessed directories.

notification

Other Taskbar Improvements

The notification area of the taskbar is more customizable and allows you to decide which notifications you are interested in and which icons you would like to see. I like how I don’t have to look at 300 tiny icons for every app that wants to notify me about something (most of them doing nothing at all.)

network

The network icon on the taskbar has been greatly improved as well. Just by clicking on the icon I have direct access to information about the network I’m currently connected to, connect/disconnect to my VPN connection, and all wireless networks within range. There’s also a link to the Network and Sharing Center.

windows

The button that I’ve outlined in red in the screenshot above will show/hide your desktop. Basically it opens or closes all of your currently opened windows. There is also another option that will allow you to “Peek” at your desktop which makes your windows transparent instead of hiding them completely. Nothing that the [Windows Key] + D shortcut didn't already do, but a feature none-the-less.

Tip

You can use the [Windows Key] + 1-9 as shortcuts to launch your taskbar applications. My 1st icon is my Windows Explorer, so I can easily launch it by pressing [Windows Key] + 1. Chrome is my 2nd taskbar app, so it’s [Windows Key] + 2, etc.

After spending the initial time getting used to the new taskbar, I think most people will agree that all of the new features are worth the new learning curve. I haven’t found any deal-breakers that might make me want to revert to the old windows taskbar! Hope someone find this useful.

Drag and Drop files in Windows 7 with User Account Control (UAC) enabled causes issues.

I took the plunge and updated to Windows 7 x64 on my development machine. It has been a fairly pleasant experience for the most part. No major problems with installation, setup, drivers, or getting my development environment configured correctly so that I can get back to working!

I’ve been enjoying Windows 7 so much that I decided to leave the User Account Control (UAC) active. The implementation seems to be MUCH less annoying in Windows 7 than it was in Windows Vista. You even have access to options to configure just how annoying (err, I mean secure) you want it to be.

Unfortunately, I found a deal-breaker that finally led me to disable the UAC in Windows 7. The problem started out when I was unable to drag an aspx file from my Windows Explorer window into my Visual Studio window like I’ve always done. I ended up figuring out the problem. I had the “Run as Administrator” option set for my instance of Visual Studio 2008 while my Windows Explorer was running with default permissions for my User Account. >_<

UAC is trying to protect me from processes running with lesser privileges from sending messages to processes running with Administrator privileges. Probably a valid concern, but considering that I generally NEED to run my Visual Studio as an Administrator and I really like the ability to drag an drop files into it… UAC has gone the way of the Dodo once more (at least on my machine.) I also ran into this issue when trying to drag files into my SQL Server 2008 Management Studio. This one isn’t as critical since it really doesn’t need to be run as Administrator, but annoying just the same.

Hope this might help someone else figure out why Dragging and Dropping between processes no longer works for them in some instances!

~ Paul

Saturday, July 18, 2009

Facebook changed my language setting on me - Unrequested Language Change

While I was checking my Facebook today, I ran into a strange issue. All of my menus, status updates, recent updates, requests, suggestion, and pretty much everything else changed to another language. I didn’t change any settings or update anything, i was just reading the updates on my home page. See the screenshot below.

Asian Facebook

Seeing that everything was in this new and interesting language, I couldn’t exactly get into my facebook settings and find out where to change the language back. Fortunately I found a direct link to the Facebook language settings page so that I could change it back to my native English. You can click the link below to check it out and fix this issue.

Facebook Language Settings Direct Link

Hopefully Facebook find out how my setting suddenly and randomly changed and I hope this helps someone else out if it happens to them.
~ Paul

Wednesday, July 01, 2009

Encountering a Black Screen after logging into another computer with Window Remote Desktop Connection

I had to Remote Desktop into a Windows Server 2008 machine for a client today and encountered a Black Screen after successfully logging in. No matter what I did, I couldn’t get the screen to go away. I tried all my normal tricks such as spamming ctrl+alt+delete and yelling at the screen, but nothing seemed to work. The next step was to Google it…

The Google results were plentiful and recommended that I disable Bitmap Caching from the Experience tab of the Remote Desktop Connection window. I do so and re-connected. No luck for me, but many others reported that this fixed it for them.

The next most common Google result was to check firewall, router MTU, and other router settings. Since my remote desktop connection have never had trouble before and I was able to successfully log into the same machine under a different user name, I figured I’d skip that one.

My next idea was to try and log in with another account. I logged in with the administrator account and found that it was working fine. My immediate thought was to try to find my other logged in session and force a log out. Supposedly, you can view logged on user by opening your  Server Manager, expanding File Services, clicking on Share and Storage Management, and then clicking on Manage Sessions in the action pane to the right. This did not work for me (my other session wasn’t listed,) but it might for you. =)

After trying all of these “fixes” I decided to just do what I needed to do from the Administrator account that I was logged onto. By the time I was finished, I switched back to my other Remote Desktop Connection screen and was surprised to see that it was no longer black, but was showing the login window again. The session must have timed out and locked. I logged in and everything seemed to be working correctly again.

I’m not sure if allowing the session to time out and lock was what fixed it or if Remote Desktop just needed some extra time… But hopefully something in this post helps you out if you encounter a Black Screen after logging into a Remote Desktop session.

~ Paul

Wednesday, May 27, 2009

‘The configuration section 'connectionStrings' cannot be read because it is missing a section declaration’ message in IIS7

I spent the better part of this morning trying to figure out what was wrong with a 3rd party blogging utility that we recently started using. I was getting and error message stating that “The configuration section 'connectionStrings' cannot be read because it is missing a section declaration” when setting up my development environment.
The ONLY reference to this error that I could find was from MSDN HERE. No sections of the web.config were encrypted so, none of the recommended causes and resolutions helped.The web.config file for the 3rd party project was pretty large and I thought it might have been due to mal-formed xml somewhere. I validated the xml and scanned for anything obvious, but it all looked like everything was fine.
I eventually tracked down the problem with the web.config file. The problem was in the <configSections> section of the web.config. The 1st line within this section was <clear/>. The <clear/> tag can be used to removes all sections and section groups that were already defined (either earlier in the given configuration file or higher in the configuration hierarchy.) This is helpful in other sections when you want to clear a default provider before registering a new one, etc…
It looks like <clear/> is a valid tag for this section, so I’m not sure why it would be causing the error. Either way it solved my problem for my development environment. Hope this helps someone else in the future.
~ Paul

Tuesday, May 26, 2009

How to Import your Delicious Bookmarks into Google Bookmarks

So, like many of you, I’ve finally switched to Google Chrome as my web browser of choice (It has finally reached Default Browser status.) I still use Firefox for web development since Chrome lacks a lot of the tools I use day-to-day (Thanks firebug,) but the speed and usability of Chrome finally won me over.

Other than my development tools, the only other Add-on that I really miss is my trusty Del.icio.us Bookmark bar. It is great to have immediate access to my bookmarks in Firefox with tag support. To help remedy this situation I started to look at what options I have for accessing my Del.icio.us bookmarks from Chrome. You can do the obvious and just access them from http://delicious.com/, but that’s boring.

The 2nd option is to use bookmarklets. You can add these to any browser and they are basically bookmarks that give you access to your bookmarks. Not as good as a direct bookmark bar, but better than browsing there yourself 100 times a day. You can even get delicious bookmarklets that make it easy to pop-up the “Save bookmark” screen for the current page you’re on to add new bookmarks. Read about delicious bookmarklets..

The 3rd option (and the one I’m actually trying out.) Convert to Google Bookmarks. Unlike delicious, google bookmarks keeps your bookmarks private and makes them and their contents searchable. You can manage your bookmarks from the site or using Google toolbar. You can also manage them in Firefox using Add-ons. For users of iGoogle (Google’s home/startup pages), you can also get a Google Bookmarks Gadget that lets you interact with your bookmarks.

The next question is how to get ALL of your precious bookmarks out of Del.icio.us and into Google Bookmarks. Well, that’s easier than you might think. Mihai Parparita from Google has created a script that will import all of your Delicious bookmarks into Google Bookmarks automatically. You can perform the import at http://persistent.info/delicious2google or read more on their site..

You can also use a Google Bookmarks bookmarklet.

Does anyone else have a better solution for managing and accessing your bookmarks from Chrome?