Empty DropDown After Submit your Form and Information Lost

My case: It's a standard register form created in a SharePoint WebPart (but this error could happen even if you're not using SharePoint). When I submit the form, sometimes I loose the information of DropDowns (but not the information of textboxes) and it seems to happen randomly. I checked the packages sent with Wireshark and …

Sigue leyendo Empty DropDown After Submit your Form and Information Lost

Edit SharePoint Page By URL

If we couldn't acces to the menu item "Edit Page" for any reason and we want to edit that page (e.g. to remove some webpart that blocks our page) we've to add one parameter at the end: contents=1 Then, the URL would be like this: http://misyte.com/mysubsite/Pages/default.aspx?contents=1 By dong this we'll access to a standard SharePoint …

Sigue leyendo Edit SharePoint Page By URL

SharePoint 2013 + Visual Studio 2012: File «.g.cs» dissapeared

Sometimes, when you're developing a visual web part, the designer file (with .g.cs extension) dissapears in front of your eyes. After finding nothing in the internet, we've just discovered why it is happening: You've to add the "Site URL" property in the Project properties. That's beacuse it is a web part for sharepoint, and Visual …

Sigue leyendo SharePoint 2013 + Visual Studio 2012: File «.g.cs» dissapeared

Example: Web.config for Custom HttpModule

<configuration> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules runAllManagedModulesForAllRequests="true"> <add name="myModule" type="ModuleNamespace.ModuleClass, ModuleNamespace"/> </modules> </system.webServer> <system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime targetFramework="4.5" /> <trust level="Full" originUrl=""/> </system.web> </configuration>

ERROR: Retrieving the COM class factory for component with CLSID {‘XXX…’} failed due to the following error: 80040154

ERROR Retrieving the COM class factory for component with CLSID {'XXX...'} failed due to the following error: 80040154. CAUSE You're trying to build your project in x86 and you've to do it in x64. SOLUTION 1. Go To Your Project Properties. 2. Select 'Build' (Left Tabs). 3. Change the property 'Platform Target' to 'Any CPU' …

Sigue leyendo ERROR: Retrieving the COM class factory for component with CLSID {‘XXX…’} failed due to the following error: 80040154

Maximum number of items that can be serialized or deserialized in an object graph is ‘65536’. Change the object graph or increase the MaxItemsInObjectGraph quota

Si nos aparece este error especificado en el título podemos solucionarlo aumentando el valor de MaxItemsInObjectGraph del siguiente modo: Error Maximum number of items that can be serialized or deserialized in an object graph is '65536'. Change the object graph or increase the MaxItemsInObjectGraph quota. Solution: Edit app.config <configuration> [...] <system.serviceModel> [...] <client> <endpoint address="URL" …

Sigue leyendo Maximum number of items that can be serialized or deserialized in an object graph is ‘65536’. Change the object graph or increase the MaxItemsInObjectGraph quota