To help troubleshoot an elusive bug in my program, I thought having the NetAdvantage Silverlight source might help.
So, I downloaded the 11.2 SR source and symbols and unzipped to folders, for brevity, say "source" and "symbols". I then created the new assemblies by executing BuildAssemblies.bat. Then I opened the VS2010 project's Solution Explorer and removed all references to Infragistics assemblies.
Then I added each Infragistics assembly back to the Project using the "Add Reference" dialog box and the "Browse" tab and selecting each newly created assembly from "...\source\Output\CLR4x".
The problem is that after adding the assembly files through the "Add Reference / Browse" tab, in the VS2010 Project / References Properties, the Path to each file still shows "c:\Program Files (x86)\Infragistics\..." . I had expected to see the Path to the actual file I added from "...\source\Output\CLR4x". Also, when I run under the debugger, I still get popups such as this: (Note your message system won't let me insert the dialog snapshot, so the gist of the message is this) "The source file is different from when the module was built. Would you like the debugger to use it anyway?"
How can I get VS2010 to properly reference newly compiled assemblies even though it previously referenced the same assemblies (at least in name) from a different location?
If anyone has a quick answer to this, I sure would love to hear it. This seems like it should be such a simple thing, but I've tried just about everything I can think of.
Please help ASAP.
Joe
Hello Joe,
Under the project folder path you can first delete the auto-generated folders and files contained in Bin and obj as the previous assembly version copy may exist. This will allow the new files to be rebuilt when compiling the project. Then you can add the assemblies in the References folder of the project and set Copy Local attribute to true for each assembly. This will bring a copy of the new assembly under the Bin folder.
Let me know if you have any questions with this matter. Thank you.
Hello Duane,
I have deleted the bin and obj folders from the project and still have the problem. I also remove all the Infragistics references.
When I add back an Assembly from the ..\Build folder, the property Path shows it at c:\Program Files (x86)\...
A zip file is attached which contains 2 images. Image 0001 shows the Add Reference dialog and image 0002 shows the Reference Properties of one of the Assemblies.
I know it doesn't seem like this should be happening, but it is. I'm pretty much baffled. I would appreciate very much more input on this.
I have also tried a different approach. I added the pertinent Infragistics projects to my solution and then added References to the projects. That results in the correct Path in the Reference Properties, but when I build I get the following errors which don't make sense because the generated source files have the object references fully qualified with the namespace. I would also like to understand why this is happening! I have noticed that this seems to only happen with the projects that have Web in the name. Don't know if that has any bearing on the problem at hand or not, but thought it worth mentioning.
The error list follows:
Error 72 The type or namespace name 'XamDialogWindow' could not be found (are you missing a using directive or an assembly reference?) C:\SPS\sps-ibct-sandbox\trunk\SecurityApp\SecurityApp\obj\Debug\View\Logon.g.i.cs 36 34 SecurityAppError 73 The type or namespace name 'XamDialogWindow' could not be found (are you missing a using directive or an assembly reference?) C:\SPS\sps-ibct-sandbox\trunk\SecurityApp\SecurityApp\obj\Debug\View\MenuEditorWin.g.i.cs 36 42 SecurityAppError 74 The type or namespace name 'XamTree' could not be found (are you missing a using directive or an assembly reference?) C:\SPS\sps-ibct-sandbox\trunk\SecurityApp\SecurityApp\obj\Debug\View\UserProperties.g.i.cs 41 18 SecurityAppError 75 The type or namespace name 'XamGrid' could not be found (are you missing a using directive or an assembly reference?) C:\SPS\sps-ibct-sandbox\trunk\SecurityApp\SecurityApp\obj\Debug\View\SelectedContractHolders.g.i.cs 42 18 SecurityAppError 76 The type or namespace name 'XamGrid' could not be found (are you missing a using directive or an assembly reference?) C:\SPS\sps-ibct-sandbox\trunk\SecurityApp\SecurityApp\obj\Debug\View\SelectedProperties.g.i.cs 42 18 SecurityAppError 77 The type or namespace name 'XamGrid' could not be found (are you missing a using directive or an assembly reference?) C:\SPS\sps-ibct-sandbox\trunk\SecurityApp\SecurityApp\obj\Debug\View\SelectedGroups.g.i.cs 42 18 SecurityAppError 78 The type or namespace name 'XamTree' could not be found (are you missing a using directive or an assembly reference?) C:\SPS\sps-ibct-sandbox\trunk\SecurityApp\SecurityApp\obj\Debug\View\AvailableSites.g.i.cs 42 18 SecurityAppError 79 The type or namespace name 'XamGrid' could not be found (are you missing a using directive or an assembly reference?) C:\SPS\sps-ibct-sandbox\trunk\SecurityApp\SecurityApp\obj\Debug\View\SelectedSites.g.i.cs 42 18 SecurityAppError 80 The type or namespace name 'XamGrid' could not be found (are you missing a using directive or an assembly reference?) C:\SPS\sps-ibct-sandbox\trunk\SecurityApp\SecurityApp\obj\Debug\View\SelectedCaps.g.i.cs 46 18 SecurityAppError 81 The type or namespace name 'XamGrid' could not be found (are you missing a using directive or an assembly reference?) C:\SPS\sps-ibct-sandbox\trunk\SecurityApp\SecurityApp\obj\Debug\View\UserList.g.i.cs 52 18 SecurityApp
This is just a follow up on the thread if you have any questions in regards to adding the xamDialogWindow to the page or if you require any further assistance with NetAdvantage.
Hello
I am having problem with xamDialogWindow, although i am refrencing the proper dll...
My application is signed, and I noticed in 11.2 the dll for xamDialogwindow is not in the signed section, how to resolve this problem?
View.g.i.cs(40,18): error CS0246: The type or namespace name 'XamDialogWindow' could not be found (are you missing a using directive or an assembly reference?)
View.g.i.cs(50,18): error CS0246: The type or namespace name 'XamComboEditor' could not be found (are you missing a using directive or an assembly reference?)
Regards