Archive for development
Surface SDK and Windows 7
Posted by: | CommentsI recently upgraded my computer from Windows Vista to Windows 7. And while setting up my computer, I discovered that the Microsoft Surface SDK only works on Windows Vista.
I am not going to lie, but I was very disappointed and could not see why the SDK could not work on Windows 7. Hence, I went ahead and searched the web for individuals with the same issue. Hence, I discovered this post which helps you with adjusting the Surface SDK msi file, along with samples to work on Windows 7.
Great Post !!!
http://www.grumpydev.com/2009/05/17/surface-sdk-sp1-on-vista-and-win7-x64/
Please wait while Setup finishes determining your disk space requirements
Posted by: | Comments.MSI files can act strangely at times. Causing us to explode in anger as to why it decided that it must check your disk for space requirements.

Is this a sign that I must take a break and get a cup of coffee?
Hence, I clicked on “Return” on the above message and took a break.
To my surprise, nothing had happened. Moreover, when I clicked on “Next”, I received the haunting message again
“Please wait while Setup finishes determining your disk space requirements”
Haven’t I waited enough?
Isn’t this suposed to be easier?
Is this a sign that I should go home earlier?
Am I on Celebrity Ghost Stories?
And then Command Line came to mind.
A black screen (Night) with white letter (Ghost) .
Try this command (Spell)
“msiexec /package [sample.msi] /qr”
and it should install the .MSI without any unwanted messages.
David Keener Speaking About Ruby on Rails
Posted by: | CommentsOn August 27th, the Northern Virginia Ruby User’s Group (NovaRUG) will be hosting “Rails 101: Persistence Night.” This event consists of a number of talks geared towards new Rails developers, with all talks focused on persistence topics such as storing data in a database.
David Keener will be rounding out the evening event with his presentation on “Rails Tips and Best Practices.” This talk is a compendium of Rails beginner tips, covering query optimizations, some migration tactics, a few typical gotchas to watch out for, etc.
NovaRUG meetings are held at the FGM headquarters building at 12021 Sunset Hills Rd (Suite 400) in Reston, VA. Networking begins at 6:30 PM and presentations typically last from 7:00 – 9:00 PM. Pizza and drinks are provided by the event sponsors.
Register for the Event on Eventbrite
MetroStar Systems Employee Receives Exclusive Microsoft Award
Posted by: | CommentsIn athletic arenas, winning multiple games, titles, and championships can result in several acknowledgments and perks. Each field of sport tends to acknowledge one shining star as its team’s Most Valuable Player (MVP) for exhibiting dynamic leadership, sportsmanship, and professional conduct throughout the season. So, who says that only athletes get to have all of the fun?
MetroStar Systems proudly announces and congratulates our new team member, Mostafa Elzoghbi, Senior Software Engineer, for his fourth consecutive win of the 2009 Microsoft Most Valuable Professionals (MVP) Award – Visual C#. Microsoft’s MVP Award distinguishes its awardees because in order to receive the Award, candidates undergo a rigorous nomination and review process. Annually, the technical community’s best and brightest are bestowed this exclusive honor. Worldwide, there are over 100 million participants across the global technical community vying for the elite acknowledgment and opportunities warranted as a Microsoft MVP; of these participants, there are fewer than 4,000 active Microsoft MVPs.
Microsoft MVPs are exceptional technical community leaders from around the world who are awarded for voluntarily sharing their high quality, real-world expertise in offline and online technical communities. Upon graduating with a B.S. of Computer Science from Ain Shams University in Cairo, Egypt, Mostafa began his professional career in 2003. In 2005, Mostafa had an idea to create a software development community in Kuwait. Not only was it the first of its kind, but it has evolved to become the largest and most well known development and .NET community in the Persian Gulf region.
For his contributions to the software development community, he received his first Microsoft MVP Award in 2006. This year’s award was especially challenging for him because he additionally relocated from Kuwait to Iowa in order to complete his Masters degree.
Ecstatic and diligent of another consecutive win; Mostafa has definite plans to continue his hard work to qualify for the MVP award each year offered. “Receiving the Microsoft MVP Award just once would be enough and a great milestone in my development career. However, being an MVP motivates me to increase my knowledge and expertise while staying active in the Microsoft community. It comes with many advantages, benefits, and access to be very engaged with new Microsoft technologies. This reward helps increase awareness and the reputation of MetroStar Systems as a certified Microsoft Gold Partner,” says Elzoghbi.
Find out more about Mostafa and his background in reading his blog here: Mostafa’s Blog
Anonymously Submit InfoPath Form to SharePoint Library
Posted by: | CommentsIf you’ve landed on this post, then you are probably struggling to submit InfoPath browser-enabled forms to a SharePoint library anonymously. And you’ve already learned that SharePoint doesn’t allow anonymous users to add to document and form libraries. There are some good solutions out there, but I found most to be more complex than I needed.
I had one anonymous access site collection. I needed anonymous users to submit a browser enabled InfoPath form, and I needed the submission to trigger a SharePoint Designer workflow. You may or may not already know this, but SharePoint Designer workflows will not trigger on items added or updated by anonymous users. [Note: Prior to SP1, declarative workflows could run under System Account. If you have upgraded to SP1 then this is no longer possible. See comments below for possible solutions.]
My solution assumes you are already familiar with setting up anonymous access within MOSS 2007. If you are not, you can find information on this at http://technet.microsoft.com/en-us/library/cc263363.aspx and http://blogs.devhorizon.com/reza/?p=498. You will also need to deploy your InfoPath form as an administrator-approved form template. If you are not sure how to do this, check out http://technet.microsoft.com/en-us/library/cc262921.aspx and http://www.infopathdev.com/blogs/janice/archive/2009/03/03/administrator-approved-form-templates.aspx. You should be able to accomplish both of the above before you proceed with this solution.
Below I’ll show you how to setup a SharePoint library to allow anonymous users to open your form template, and how to create a custom button to submit the form under elevated privileges.
Enable Anonymous Access on Form Library (MOSS 2007)
Go to Form Library Settings. Under Permissions and Management, click Permissions for this form library.
![]() |
![]() |
Under Actions, choose Edit Permissions. When the Settings button appears, choose Anonymous Access.
![]() |
![]() |
You will notice that on the Change Anonymous Access Settings page only View Items is selectable. Add, Edit, and Delete Items check boxes are grayed out. As mentioned earlier, by default SharePoint only allows anonymous users to view items in document and form libraries. Without checking Add Items, anonymous users will not be able to open your browser-enabled form. To workaround this issue, look at the end of the URL for this page.
![]() |
Change DOCLIB to LIST and hit Enter. The page will now allow you to select Add Items for anonymous users.
![]() |
Select Add Items and hit OK. While anonymous users can now open your form, when they attempt to submit the form they will receive an error. This workaround to allow anonymous access to the form template will not override SharePoint’s default policies regarding anonymous users and libraries.
Preparing Your Administrator-Approved Form Template to Use Custom Code (InfoPath 2007)
Open your form template in InfoPath Design mode. Under Tools, choose Form Options. In the Form Options window, choose Category: Security and Trust. You will need to set the Security Level of your form template to Full Trust.
![]() |
Next choose Category: Programming. Under Programming Language, select C# and hit OK. My solution uses C#. If you prefer to use VB or another language, there are some good conversion sites on the web. You can try the converter at http://www.developerfusion.com/tools/convert/csharp-to-vb/. If you are already using custom VB code in your form template, then converting the C# to VB will be a must.
![]() |
Adding Custom Code to Your Administrator-Approved Form Template (InfoPath 2007, Visual Studio 2005 Tools for Applications)
You should have already setup your form template to submit to a document library under Tools: Submit Options. If you have not, you can find more info on this at http://office.microsoft.com/en-us/infopath/HA101070571033.aspx.
Under Insert: More Controls, add a Button control to your form template. Double click your new button control, enter a unique Label and ID, and click Edit Form Code.
![]() |
This will open your custom code in a Visual Studio environment. If you are not familiar working within Visual Studio, there are numerous primers on the web. However, this solution is straight forward and simple so you should be fine.
If you are developing your form template on a client operating system and not on a SharePoint development server, you will need to add a reference to Microsoft.SharePoint.dll. You can copy this dll from your SharePoint server at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI\. Copy the dll into your InfoPath template projects folders which will probably be located under \Documents\InfoPath Projects\.
After adding the dll reference, you will add the following code within your button’s click event.
SPSecurity.RunWithElevatedPrivileges(delegate() |
The final code should look something like this.
![]() |
Save All and Build your project. Back in InfoPath, save your template and Publish the administrator-approved form template.
Once the new template is published and activated to your SharePoint site collection, you should be able to open and submit the form anonymously. The form will actually submit under the System account credentials, and as a bonus will successfully trigger SharePoint Designer workflows. [Note: As of SP1, Microsoft depricated the ability for declarative workflows to run under System Account. See comments below for possible solutions.] You will probably want to adjust some Form Options on your template to ensure that the default Submit button does not show anywhere in the user’s browser. You only want them submitting with your custom button.

















