Posts

Showing posts from 2011

InfoPath 2010 Deployment - from Development to Production - Editing Manifest.xsf file

Image
One major issue we encountered in InfoPath 2010 forms during deployment is that the Data Connection's Connection Source cannot be changed easily... we successfully changed the UDCX files and everything but this URL remains unchanged ! See the image below Solution To resolve this issue we need to actually change the manifest.xsf file. Thanks to this link which provides us with the best solution http://sladescross.wordpress.com/2010/03/24/infopath-edit-the-manifest/ Change the extension of infopath form from XSN to CAB. Unzip/Extract the files to any location you like Find manifest.xsf in the directory and open it in Notepad (or some other text editor). Find and replace all instances of existing URL with the new one. Save the modified manifest.xsf. Right-click the modified manifest.xsf, select DESIGN , and finally use File | Save As… to save the form template as a XSN file. (This is the only way to regroup the files back to XSN FORMAT). OPENING FILE in DE

SharePoint 2010 Deployment - Your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored to a server running the current version

Image
A Nightmare ! ... we constantly get this error when Restoring our Site from Development to Production Environment. We did run the windows update, PSConfig and everything. Finally after searching a lot we identified that the versions of both these Farms are Different. See the attached image to see the difference in versions. To check SharePoint Current Version go to Control Pannel > Program and Features .... and See SharePoint Server 2010 there and check its version next to it. click on the image to enlarge it We finally figured out that the Source SharePoint 2010 Server had 14.0.4763.1000 And Target SharePoint 2010 Server had 14.0.6029.1000 This means that Target should be at the same version. The higher version is creating the problem to Restore... however Microsoft must have provided backward compatibility ! Complete Error Details Restore-SPSite : Your backup is from a different version of Microsoft SharePoint t Foundation and cannot be restored to a server runnin

Blogger - Image display changed - New Improvements to Image Display in LightBox

Image
Dear All, I really hate the new feature of blogger to display images in a lightbox ! ... becuase I use to upload images in full sizes and wants my visitors to see full size and high quality pictures. However, the new feature allows the users to see images in a lightbox as follows To resolve this issue please check this link http://www.google.com/support/forum/p/blogger/thread?tid=73493b0be3a4116d&hl=en The only thing you need to do is to go in Settings › Posts and comments and Change Showcase images with Lightbox to NO

InfoPath 2010 - Date Picker problem when SetVal from CodeBehind

Recently we came across a problem in InfoPath 2010 DateTime Control. When we assign a value in code-behind, the text box is marked red and asking for a valid date. However the date was valid and when we type the same date, it accept the same date. The assignment was as follows in code behind which produces the error MainDataSource.CreateNavigator().SelectSingleNode( "/my:myFields/my:grpFeeDetails/my:dateDPO" , NamespaceManager).SetValue(l_oDateTimeDateDPO.ToShortDateString()); Identified Problem Basically the issue is with the format of the date. When we use ToShortDateString, then the format is not compatible with the InfoPath 2010 Date Format. Resolution To resolve this issue we used the following code MainDataSource.CreateNavigator().SelectSingleNode( "/my:myFields/my:txtDOB" , NamespaceManager).SetValue(l_oDateTimeDOB.ToString( "yyyy-MM-dd" )); The Important Point is this DateTime Format l_oDateTimeDOB.ToString("yyyy-MM-dd")

InfoPath 2010 and SharePoint 2010 Picture- Schema validation found non-data type errors

Source http://www.imason.com/imason_Blogs/b/boyan_tsolov/archive/2008/11/07/solving-infopath-quot-schema-validation-found-non-data-type-quot-errors-for-xsi-nil-fields.aspx We have a task to assign a picture (SetValue) in InfoPath through code behind in Code Editor. When we set value to Base64 data, we get the following error schema validation found non-data type The simplest solution has been identified from the following blog http://www.imason.com/imason_Blogs/b/boyan_tsolov/archive/2008/11/07/solving-infopath-quot-schema-validation-found-non-data-type-quot-errors-for-xsi-nil-fields.aspx The problem If you try to programaticaly set/remove values of fields in InfoPath, you might have come across the following error message: "Schema validation found non-data type errors" Values that are non-string (DateTime, Time, Date, Boolean, Whole Number, Decimal) cannot be blank (Empty String). If a value is set to the emptry string you will get the error above, because

CSS and Javascript not loading in Asp.Net WebSite and WebApplication

Image
Today we came across a very strange and unique issue. The Asp.Net WebApplication has everything perfect and virtual directory and other configrations is perfect, but when we run the application, CSS and Javascript files were not included. The refrences and inlcude scripts were perfect and we cross checked everything. But in vain. Finally, we found the following solution from this Blog http://weblogs.asp.net/anasghanem/archive/2008/05/23/don-t-forget-to-check-quot-static-content-service-quot-in-iis7-installation.aspx?CommentPosted=true#commentmessage The contents of this Blog are as follows Don't forget to check "Static content service" in IIS7 installation Before a couple of days ,I started to work on Vista and IIS 7, and since the default installation for Vista doesn't includes IIS7, I started by trying to install IIS 7.So I went to control panel, Programs and features, then to " turns windows features on or off", After the dialog displayed , I nav

Direct Streaming from SKYDrive

Image
Just wanted to share the information that you can easily play any mp3 or audio collections directly from SKYDrive. Follow these steps • Try to reach to the file you want to listen. For e.g. (This is my latest upload) http://cid-0fce01d6e47c7156.office.live.com/self.aspx/Maulana%20Tariq%20Jameel/Latest%20Bayaans/Volume%2086%20%5E5October%202010%5E6/Namaz%20aur%20Maut%20-%20Gilliana%20-%202010/Namaz%20aur%20Maut%20-%20Gilliana%20-%202010-Part%202.mp3 • Now right click the icon and click COPY SHORTCUT. Please note that in Other Browsers Copy Shortcut is named differently (i.e. in Chrome its known as COPY Link Address) IE Explorer Screenshot Google Chrome Screenshot • Open your media player. Press Ctrl + U and paste the URL. The file will be played directly without downloading. Or you can open any other software like Real Player and Open URL. Paste the copied URL to play the file. • Additionally you can use this direct link to embed these audio anywhere on the net. Th

.Net - Value Type and Reference Type

Summary of the Article Always pass Reference Type ByVAL and not ByRef. Why ? Read it One of the most common mistakes developers make when learning .NET is confusing Reference and Value Types with Passing values by Reference or Value. Is this a big deal?  YES!  It's a very big deal. So let's go through the basics first: Values types break down like this... (From MSDN) Value types include:      All numeric data types      Boolean, Char, and Date      All structures, even if their members are reference types      Enumerations, since their underlying type is always Byte, Short, Integer, or Long Reference types include:      String      All arrays, even if their elements are value types      Class types, such as Form      Delegates So, when you pass arguments to a subroutine or function, you absolutely must know whether the type is a value type or a reference type. Only then can you determine whether you want to use ByVal or ByRef to pass the data • Value t