Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Workflow installs but always fails why?

Status
Not open for further replies.

minority2000uk

Programmer
Jan 28, 2004
6
GB
I am having an issue with my workflow, to the extent that I have made one called simepleTest.

It basically takes the file and appends an extra part onto the title, this also fails and I am at a loss as to why this is happening.

Is it possible for anyone to have a look at it to see if I am doing something wrong?

I have attached to the process and I cant see the DLL in the Module section of Debug and no error messages appear.

I also can find the SimpleTest in the GAC and the PostBuildAction.bat successfully compiles.

I do notice that when I create a new file that when the screen refreshes I get the following:

A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in Microsoft.SharePoint.dll
A first chance exception of type 'Microsoft.SharePoint.SPException' occurred in Microsoft.SharePoint.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'w3wp.exe' (Managed): Loaded 'uhecu4m7', No symbols loaded.
'w3wp.exe' (Managed): Loaded 'xv0k8h-f', No symbols loaded.
'w3wp.exe' (Managed): Loaded 'smg2ohog', No symbols loaded.
A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in Microsoft.SharePoint.dll
A first chance exception of type 'Microsoft.SharePoint.SPException' occurred in Microsoft.SharePoint.dll
A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in Microsoft.SharePoint.dll
A first chance exception of type 'Microsoft.SharePoint.SPException' occurred in Microsoft.SharePoint.dll
A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.DirectoryNotFoundException' occurred in Microsoft.SharePoint.dll
A first chance exception of type 'Microsoft.SharePoint.SPException' occurred in Microsoft.SharePoint.dll
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in Microsoft.SharePoint.dll
A first chance exception of type 'Microsoft.SharePoint.SPException' occurred in Microsoft.SharePoint.dll

I have attached the project to see if you can help me, this is kind of urgent so thanks for any help!
 
Hello,

Let me see if we can figure this out.

First of all, I assume you are going to do something more complex than just renaming a title. If not then an event receiver is a lot less overhead.

With regards to your solution, however, you seem to have the strong name wrong. Your project is set up with versino 1.0.0.0 for one, while your elements file (workflow.xml) references 3.0.0.0. Your public key token is also off.

There is an answer over at JustAsk if you need to find the strong name of an assembly.

Fixing the strong name (and removing MOSS references since I don't use MOSS) makes the workflow... work flowlessly, pun and misspelling intended.

.b

Blog for my upcoming SharePoint book
"Building the SharePoint User Experience":
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top