my team was working in a XAML where we need to add themes to a accordian items when there was Expander controls within the accordian..
whenever we applied themes to this partucular xaml we came across an err like :
sys.InvalidOperationException : AG_E_UNKOWN_ERR
Initially i thoughought this was a Silverlight 2.0 errr....but then started to see why this err occurs and jumped in to my task getting to the core of the xaml, removing controls one by one untill the issue was kicked off...
1. removed most of the controls in the xaml, and holded only the err prone controls.
2. removed the themes first - it worked.
3. added themes - err reproduced.
then thought of havinng the round abouts of making the controls invisible in the XAML And then make them visible during the run time in the C# code.
I drilled down and saw that Expanders inside the accordian got the errs when themes were applied.
i made the expander Visibility="Collapsed" and then in code behind made the visibility of the expanders
Now the err was not appearing ....this is one way of approach to remove errrs when we apply themes for expanders inside the accoridians in Silverlight
,,,
Senthil
Sunday, July 12, 2009
Silverlight :Expander within AccordianItem with a theme Applied: sys.InvalidOperationException : AG_E_UNKOWN_ERROR
Thursday, June 18, 2009
ms build missing reference
After my previous post of adding the explict declaration of the project dependencies ,there was one instance where the same problem was existing.
So this tiime i manually removed the reference of the dll, and then added again...it workd in all instances after this step.
So 2 ways here:
1. Either manually removing the dll ref's and adding again.
2. giveing the explicit declaration in the sln file as like the previous post will help!
Thanks
Senthil
So this tiime i manually removed the reference of the dll, and then added again...it workd in all instances after this step.
So 2 ways here:
1. Either manually removing the dll ref's and adding again.
2. giveing the explicit declaration in the sln file as like the previous post will help!
Thanks
Senthil
Wednesday, June 10, 2009
msbuild missing reference ,msbuild wrong build order
MSbuild incorrect Build order ?
MSbuild reference missing Dll's ?
when we come across these kind of situations , the probable reason could be that the build order in VS2008 is different from the build oder which msbuild uses.
VS uses a build order and passes the same to msbuild. BUt when u directly call msbuild to build, there could be difference in the build order of the projects.
To over come the missing references in Msbuild and Build order add the below section to the *.sln file.
ProjectSection(ProjectDependencies) = postProject section
ex:
if there is Project B which is referecning Project A , and if Project B gets built without A then add the below :
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "projA", "ProjA.vsproj", "{AAAAAA-F34D-430J-7C4-12343545G}"
EndProject
Project("{9BK9CEB8-123B-11DP-(8JU9-8989VC91BNJUI}") = "projB", "projB.vsproj", "{XY7HJ3D1-E2JU-41G7-HUA6-1E2556YUIA26}"
ProjectSection(ProjectDependencies) = postProject
{AAAAAA-F34D-430J-7C4-12343545G} = {AAAAAA-F34D-430J-7C4-12343545G}
EndProjectSection
EndProject
MSbuild reference missing Dll's ?
when we come across these kind of situations , the probable reason could be that the build order in VS2008 is different from the build oder which msbuild uses.
VS uses a build order and passes the same to msbuild. BUt when u directly call msbuild to build, there could be difference in the build order of the projects.
To over come the missing references in Msbuild and Build order add the below section to the *.sln file.
ProjectSection(ProjectDependencies) = postProject section
ex:
if there is Project B which is referecning Project A , and if Project B gets built without A then add the below :
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "projA", "ProjA.vsproj", "{AAAAAA-F34D-430J-7C4-12343545G}"
EndProject
Project("{9BK9CEB8-123B-11DP-(8JU9-8989VC91BNJUI}") = "projB", "projB.vsproj", "{XY7HJ3D1-E2JU-41G7-HUA6-1E2556YUIA26}"
ProjectSection(ProjectDependencies) = postProject
{AAAAAA-F34D-430J-7C4-12343545G} = {AAAAAA-F34D-430J-7C4-12343545G}
EndProjectSection
EndProject
Thursday, April 09, 2009
RIA .Net Services Download Location
The RIA .Net Services can be downloaded @:
http://www.microsoft.com/downloads/details.aspx?FamilyID=76bb3a07-3846-4564-b0c3-27972bcaabce&displaylang=en
http://www.microsoft.com/downloads/details.aspx?FamilyID=76bb3a07-3846-4564-b0c3-27972bcaabce&displaylang=en
Friday, April 03, 2009
devenv.exe/installvstemplates - Missing the templates?
Today i came across a rare situation where i was installing/ uninstalling few visual studio pluggins, i was not able to see any of the Visual studio project templates.
When you are trying to create a new project and When u do not see the VS2008 templates getting loaded ,just perform the below actions:
1. Event log: check in the events log under the Application section if u see any errors.Check if there are erros and says to run devenv.exe/installvstemplates.
2. Now do not run the devenv.exe/installvstemplates.
3. Delete the itemcache folders under :Program Files\Microsoft Visual Studio 9.0\Common7\IDE
4. now open the vs command prompt and run devenv.exe/installvstemplates.
5. at this point the different project templates should be appearing.
When you are trying to create a new project and When u do not see the VS2008 templates getting loaded ,just perform the below actions:
1. Event log: check in the events log under the Application section if u see any errors.Check if there are erros and says to run devenv.exe/installvstemplates.
2. Now do not run the devenv.exe/installvstemplates.
3. Delete the itemcache folders under :Program Files\Microsoft Visual Studio 9.0\Common7\IDE
4. now open the vs command prompt and run devenv.exe/installvstemplates.
5. at this point the different project templates should be appearing.
Wednesday, April 01, 2009
Silverlight Client Framework- PRISM2
Sunday, March 01, 2009
WCF - Error in Accessing a IIS hosted svc
hi ,
WCF hosting -- First err...
I started with my WCF Project and the first err got was that when *.svc was asccessed in webpage the err was like:
"A Name was Started with Invalid character..<'%' "..
Tips to trouble shoot this err:
1. Check if u Have .svc extensions in IIS.check if this points to the aspnet_isapi.dll.
if not brwose for the location of aspnet_isapi.dll.
2. Still if u get the errr check if u have already ran servicemodelreg.exe which can be found under c:\
\microsoft .Net\framework\version\v3.0\wcf\. run this exe in the command prompt with the -i option.
3. restart the IIS once.
4. browse your WCF -- *.SVC location now , ur svc will now be available.
WCF hosting -- First err...
I started with my WCF Project and the first err got was that when *.svc was asccessed in webpage the err was like:
"A Name was Started with Invalid character..<'%' "..
Tips to trouble shoot this err:
1. Check if u Have .svc extensions in IIS.check if this points to the aspnet_isapi.dll.
if not brwose for the location of aspnet_isapi.dll.
2. Still if u get the errr check if u have already ran servicemodelreg.exe which can be found under c:\
\microsoft .Net\framework\version\v3.0\wcf\. run this exe in the command prompt with the -i option.
3. restart the IIS once.
4. browse your WCF -- *.SVC location now , ur svc will now be available.
Subscribe to:
Posts (Atom)