04 junio 2009

Recursos de MOSS2007 para Project Managers

Planificación y metodología

Arquitectura y diseño tecnológico

Aceleradores de desarrollo

29 marzo 2009

Generic code to serialize a DataTable

Just add this code in your project, and call to the XmlSerialize solution:

///
/// Gets the XML of the passed object.
///

public static string XmlSerialize(object obj)
{
// Validate argument 'obj'
if (obj == null)
throw new ArgumentNullException("obj", "Argument 'obj' is null");

XmlSerializer ser = new XmlSerializer(obj.GetType());
UTF8Encoding utf8 = new UTF8Encoding(false, false);
string xml = null;

using (MemoryStream ms = new MemoryStream())
{
using (StreamWriter sw = new StreamWriter(ms, utf8))
{
ser.Serialize(sw, obj);
xml = utf8.GetString(ms.GetBuffer());
}
}

return xml;
}




17 febrero 2009

Microsoft en el Mobile World Congress

A parte de la visita de Steve Ballmer, que después de algunas presentaciones
un tanto estrafalarias aparece en los cursos de oradores (recordemos
http://www.youtube.com/watch?v=wvsboPUjrGc), la atención de esta edición del
Mobile World Congress se me la ha llevado un par de novedades.

HTC continua sorprendiéndoos en positivo con dos magníficos teléfonos: la
HTC Diamond 2
y la HTC Touch Dual
.

Por cierto que ambos teléfonos llavan preinstalados la segunda novedad que
destaco: Windows Mobile 6.5. Aunque mejor que sus predecesores, Microsoft
parece ser que lo único que puede hacer por el momento es seguir los pasos
(muy evidentemente por detrás) del famoso iPhone. No obstante, aparte de lo
obvio (interfaz táctil) se empieza a ver un filón de algo interesante de lo
que probablemente pueda ser un factor diferencial en los próximos meses o
próximas versiones: la sincronización de datos entre todos los dispositivos.
Si no conocéis todavía la tecnología Live Mesh os recomiendo que la provéis
(es gratuita) (Live Mesh Website).

01 febrero 2009

Infopath and Forms Server: Schema validation found non-datatype errors

While developing a browser enabled Infopath 2007 Form with code I got this
error: " Schema validation found non-datatype errors".

The error was thrown when I tried to set a field of the form to a blank
value (String.Empty).

XPathNavigator nav =
this.MainDataSource.CreateNavigator().SelectSingleNode("/my:" +
DATASOURCE_ROOT + "/my:" + field, NamespaceManager);

Nav.SetValue(value);

After many times of trial and error I found that the problem was actually to
set a value to a field that had not had yet a value, so just making this
check was enough:

if (nav.Value != value)
{
nav.SetValue(value);
}

I.e. if the value is still empty and I want to set String.Empty it actually
does nothing.

31 enero 2009

This site may harm your computer - a Google's bug?

No matter the search I do just below each link in Google there is another
which says "This site may harm your computer", and if I want to browse it
I get a big advert from Google. May this be a Google search bug?

The first image shows a search of "Microsoft", and the second one the
message I get when I click the link.

01 diciembre 2008

Troubleshooting Excel Services

I got an "Access denied. You do not have permission to perform this action
or access this resource" while trying to render an Excel in Web Browser
mode. After one hour carefully examining logs I found the problem. The
Shared Services Application Pool was configured with anonymous
authentication in IIS, which lead to an authentication problem.

Excel Services logs, at 12 hive showed the authentication problem:
ExcelService.ProcessRequestIdentity: IIS didn't pass us an authenticated
user, Check that the virtual folder is set to authenticate using
WindowsIntegrated
A user attempted to access Excel Services, but was denied because they do
not have a domain or local machine identity. [User: ]
Access denied. You do not have permission to perform this action or access
this resource. At (..)

IIS logs showed no user was passed to application:
2008-12-01 17:50:24 W3SVC1720207907 VMSHPP 127.0.0.1 POST
/SharedServices1/ExcelCalculationServer/ExcelService.asmx - 56737
VMSHPP\Administrator 127.0.0.1 HTTP/1.1
Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+2.0.50727
.3053) - - vmshpp:56737 200 0 0 27634 1207 78

Hope this helps...

14 noviembre 2008

Tunning a development virtual machine for Sharepoint

One of the rules I have set up in my team when developing Sharepoint
projects is to use Virtual Machines. We may use VMWare or Virtual PC,
depending on the machine pattern we take at the beginning of the project.
Though our hardware is usually a high-profiled Dell laptop, it sometimes
becomes a quite slow environment to work.

Four tips to run Sharepoint virtual machines faster I have found so far are:
- Running the machine in an external disk.
- Assigning at least 2 Gb of RAM Memory.
- Stoping search service (when not needed).
- Defragmenting the virtual machine. If you use VMWare you can do it from
the disk tools, in machine settings, which is much more faster.

Hope this helps to anyone working in a similar way...