Showing posts with label sharepoint. Show all posts
Showing posts with label sharepoint. Show all posts

Wednesday, February 18, 2015

Get SharePoint or IIS Application Pool account usernames and PASSWORDS with powershell.

Sometimes you need to know a service account password and don't have it. Maybe your dog ate the documentation to your dev environment. Powershell to the rescue!

PS U:\> Add-WindowsFeature Web-WMI | Format-List
PS U:\> Get-CimInstance -Namespace root/MicrosoftIISv2 -ClassName IIsApplicationPoolSetting -Property Name, WAMUserName, WAMUserPass | select Name, WAMUserName, WAMUserPass

Fun and scary.

Thursday, August 7, 2008

Infopath development with Visual Studio 2008 Issues

Anyone else out there having build and publish weirdness with Visual Studio 2008 VSTO? I can't build my form when the manifest.xsf file is open, yet when it's closed, I can't publish it because the Publish option only appears in the build menu when you have a form open. Anyone know what's up there?

Unhandled exception when rendering form System.Xml.XmlException: 'something' is an unexpected token. The expected token is '<>'.

if you see something like this in your logs when developing an InfoPath form that is browser enabled in Sharepoint:

Unhandled exception when rendering form System.Xml.XmlException: 'Number' is an unexpected token. The expected token is '='. Line 247, position 673. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken(String expectedToken1, String expectedToken2)


... then you have a problem with one of your secondary data connections that is or was bound to a field on your form. delete one by one until you find the culprit, and troubleshoot from there.

statemachine workflow and correlation tokens

does your first task create just fine, then the second one gives you problems? do you see an error in visual studio when you attach the debugger? you're probably doing what i was doing and assigning correlation tokens for each task to the workflow as the OwnerActivityName. that's what all the examples tell you to do right? well, all the examples also only have one state in which tasks are being created. correlation tokens need to be assigned to the STATE OwnerActivityName! i learned this here: http://blog.goedvriend.com/?p=49