Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, April 16, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Error when build snippet libraries: C_CollectionBusinessRules
LCF
Posts: 46
 
Error when build snippet libraries: C_CollectionBusinessRulesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Apr 10 7:23 AM
Hi,

When I´m building the snippet libraries I´m getting an error like the following:

ERROR - C:\Documents and Settings\username\Application Data\Sage\Platform\Output\Sage.SnippetLibrary.CSharp\src\Sage.SnippetLibrary.CSharp.@.7b802cf9-fc70-4ea9-9012-9ae5ad9768d8.codesnippet.cs(30,28):Type 'Sage.BusinessRules.CodeSnippets.C_CollectionBusinessRules' already defines a member called 'OnBeforeUpdateStep1' with the same parameter types

Of course, if I delete that file is generated again by SLX and then I´m getting the error again.
Any ideas how resolve this error?

Thanks.
[Reply][Quote]
Mike LaSpina
Posts: 116
 
Re: Error when build snippet libraries: C_CollectionBusinessRulesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 27 Apr 10 6:35 PM
You probably have a code snippet lying around in your build folder. Try doing a "Nuke and Pave":

1. From Application Architect, choose ‘Tools -> Build Settings’ from the menu and note the Build and Assemblies paths
2. Close Application Architect
3. Issue an IIS Reset
4. Delete all files and subdirectories from the following folders:
a. The Build path from Step 1 above
b. The Assemblies path from step 1 above
c. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\slxclient
d. C:\Documents and Settings\All Users\Application Data\Sage\Platform\WebPortal\Design\SlxClient
e. The IIS folder containing your deployed website (typically, C:\Inetpub\wwwroot\SlxClient, but it may be another if you’re working with a development or QA environment on the same server)
5. Re-start Application Architect
6. Build the interfaces
7. Build the Web Platform
8. Deploy the web portal and test
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: Error when build snippet libraries: C_CollectionBusinessRulesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 10 2:51 AM
Delete the business rule in app architect (copy the code first), shutdown app architect. Clear the contents of the build path. Log back in, re-add your business rule, then do a full re-builld.
[Reply][Quote]
LCF
Posts: 46
 
Re: Error when build snippet libraries: C_CollectionBusinessRulesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Apr 10 9:17 AM
Mike, I followed your steps but still getting the same error message when I build the libraries:

INFO - Build starting...
INFO - Building Sage.SnippetLibrary.CSharp code snippet library.
WARN - (0,0):The MSBuild engine must be called on a single-threaded-apartment. Current threading model is "MTA". Proceeding, but some tasks may not function correctly.
INFO - Build started.
INFO - Project "Sage.SnippetLibrary.csproj" (default targets):
INFO - Command:
INFO - C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /reference:"C:\Documents and Settings\username\Application Data\Sage\Platform\Output\assemblies\Microsoft.Practices.ObjectBuilder.dll" /reference:"C:\Documents and Settings\username\Application Data\Sage\Platform\Output\assemblies\NHibernate.dll" /reference:"C:\Documents and Settings\username\Application Data\Sage\Platform\Output\assemblies\Sage.Entity.Interfaces.dll" /reference:"C:\Documents and Settings\username\Application Data\Sage\Platform\Output\assemblies\Sage.Platform.Application.dll" /reference:"C:\Documents and Settings\username\Application Data\Sage\Platform\Output\assemblies\Sage.Platform.Configuration.dll" /reference:"C:\Documents and Settings\username\Application Data\Sage\Platform\Output\assemblies\Sage.Platform.dll" /reference:"C:\Documents and Settings\username\Application Data\Sage\Platform\Output\assemblies\Sage.SalesLogix.dll" /reference:"C:\Documents and Settings\username\Application Data\Sage\Platform\Output\assemblies\Sage.SalesLogix.Security.dll" /reference:"C:\Documents and Settings\username\Application Data\Sage\Platform\Output\assemblies\System.Data.dll" /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug+ /out:obj\Debug\Sage.SnippetLibrary.CSharp.dll /target:library "src\Sage.SnippetLibrary.CSharp.@.00ce1dd8-c7e8-412c-b0b3-0f8f3f563b83.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.07ffd774-6142-4b8a-a48a-09616effccea.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.0e11bea4-0916-40a1-b052-0ec080926768.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.1708ec0b-cd94-4b92-8e73-77123a54f843.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.1d62a779-cf0f-4e90-a9b9-9f65f7a3a7c3.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.1ee5de26-0923-4104-841d-275c2aed24c8.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.1fc684d3-d751-4557-af0a-0ff5cd168090.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.2d9d97be-cbe8-49db-8e25-42b0e52a2dfe.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.30184662-be6e-4b69-afe2-b240d456efe6.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.4cd68050-0633-4261-a021-f2037128cd4c.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.4d21973a-8ab2-4f1c-9ae0-6a0cdb40cdf2.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.4e5a38ac-6007-4886-9b35-381aa3aad759.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.5cd3587c-9e01-47a3-b591-1108495bae50.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.6001de28-0f29-42da-9d23-f8d64dfc2db9.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.60038cb3-deb0-4f48-9312-0c84836f8876.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.678d70cb-4e88-4927-93f1-fe56a4d08513.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.68e566c5-0f99-425b-a549-e0c9634b2b79.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.692a9e54-4cb4-4dee-b6a5-ea66ef11b2e6.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.6c91d3d5-d12d-4f0f-990c-42a7b0a3a4c8.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.71ab7dd2-b5f2-463e-88cf-3f7f7b9a3915.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.75d452b5-318f-43e3-b1cc-7c615921ed4a.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.7a08d8b1-20cd-47ce-9561-6f8562682639.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.7b802cf9-fc70-4ea9-9012-9ae5ad9768d8.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.8f23041b-fee0-44f8-bbce-52313df25c54.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.952aada1-e3f0-4f54-aad1-6f624d8c18da.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.9aa7448f-1b74-4192-9e10-4c450b51d3b9.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.9e0d231b-bcf0-48d8-a838-6aef2e5709bb.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.a46b07a3-5f74-4507-ac56-9b68f1742c16.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.a6931d8c-5468-4a09-a71d-903fb4b5e39b.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.baa41065-5e05-4be2-8021-2dcdaf4baf13.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.bbad83ff-0f01-442a-a563-3a929a198c53.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.be9613b7-aea3-44b4-b9ce-906898f8cc25.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.c15f026e-869f-41c9-9ba2-3d1bf5b738d7.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.c6d3bbff-2496-45cd-b7fc-739c088cb4ab.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.d0f6bd02-633d-46ff-9b1c-caa917d45335.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.d1dd3586-5808-4a2b-92c2-545fc2581936.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.e23da741-5a24-41b6-aa5c-d3e3ce623452.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.e4feae59-b662-4fd2-ab5c-769de4ba89fe.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.f18ac1c5-47c6-4fdc-a722-b3e58e63b3ec.codesnippet.cs" "src\Sage.SnippetLibrary.CSharp.@.fe32555e-c86d-4824-9461-2cfe7469c938.codesnippet.cs"
INFO - The "Csc" task is using "Csc.exe" from "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe".
INFO - Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.1433
INFO - for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
INFO - Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
INFO -
ERROR - C:\Documents and Settings\username\Application Data\Sage\Platform\Output\Sage.SnippetLibrary.CSharp\src\Sage.SnippetLibrary.CSharp.@.7b802cf9-fc70-4ea9-9012-9ae5ad9768d8.codesnippet.cs(30,28):Type 'Sage.BusinessRules.CodeSnippets.C_CollectionBusinessRules' already defines a member called 'OnBeforeUpdateStep1' with the same parameter types
INFO - src\Sage.SnippetLibrary.CSharp.@.6001de28-0f29-42da-9d23-f8d64dfc2db9.codesnippet.cs(30,28): (Location of symbol related to previous error)
INFO - Done building project "Sage.SnippetLibrary.csproj" -- FAILED.
INFO - Build FAILED.
INFO - Successfully completed build of Sage.SnippetLibrary.CSharp code snippet library.
INFO - Deployed business rules configuration
INFO - Build complete.

Nick, The business rule that is generating the error is a SLX one. The code is in the dll, I think.
[Reply][Quote]
LCF
Posts: 46
 
Re: Error when build snippet libraries: C_CollectionBusinessRulesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 May 10 5:16 AM
Nick, you were right and C_CollectionBusinessRules is a custom one. The problem is that the rule was deleted but something happened and SLX kept the code for the rule.

This is what I did to fix the problem: Delete all entries related with this business rule in modelindex.xml. Delete all c# files for this business rule inside C:\VFS\Model\Entity Model\SalesLogix Application Entities\C_Collection.

Regards.
[Reply][Quote]
Garrison Roberts
Posts: 1
 
Re: Error when build snippet libraries: C_CollectionBusinessRulesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Jun 17 2:06 AM

I had a similar issue but we use a VFS deployment.  I searched for the name of the .cs snippet file that the compiler complained about and was clearly out of date with newer code I had written:


SELECT * FROM [sysdba].[VIRTUALFILESYSTEM] WHERE ITEMNAME = 'Sage.SnippetLibrary.CSharp.@.1226bfe7-5329-4acc-85c4-3165c050633b.codesnippet.cs'


Finding it there, I simply deleted the same record from the VIRTUALFILESYSTEM table, restarted App Architect for good measure, and rebuilt everything with no problem.


We have v8.1 - this occurred during an upgrade from Update 01 to Update 09.

[Reply][Quote]
LCF
Posts: 46
 
Re: Error when build snippet libraries: C_CollectionBusinessRulesYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Jul 17 3:20 AM

Thanks everyone. All the ideas helped.

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 4/16/2024 2:41:43 PM