Page view counter
still missing references - have installed alpha 1.1 refresh
Last post 01-30-2008 12:52 AM by alvirtuoso. 68 replies.
Sort Posts:
08-08-2007 7:52 AM
still missing references - have installed alpha 1.1 refresh

Hi,

I'm running the virtual machine for VS.NET 2008 Beta 2.
I've installed RC1 of Silverlight and 1.1 Alpha Refresh.
I've also installed the VS.NET 2008 Silverlight Tools

However, when I try to create a basic project, VS says I'm missing references to a bunch of assemblies. I've read other people's posts but am still unable to get this working. Am I missing anything else?

Thanks!

Andrew

 

theshadow330

Loading...
Joined on 08-08-2007
Posts 5
08-08-2007 10:05 AM
Re: still missing references - have installed alpha 1.1 refresh
What assemblies does it say you are missing?
Daniel Harvey

Loading...
Joined on 05-01-2007
Posts 391
08-08-2007 10:48 AM
Re: still missing references - have installed alpha 1.1 refresh

it's missing: 

  • agclr
  • mscorlib
  • system
  • System.Core
  • system.silverlight
  • system.Xml.core

that's every assembly under the references folder.

 i should also add that all these assemblies exist in C:\Program Files\Microsoft Silverlight - it seems they're just not being registered in the GAC.

theshadow330

Loading...
Joined on 08-08-2007
Posts 5
08-08-2007 11:10 AM
Re: still missing references - have installed alpha 1.1 refresh

I am experiencing this exact same problem... All of my assemblies are in C:\Program Files (x86)\Microsoft Silverlight. When I browse to them, I get the warning icon next to the reference, the reference property "Resolved" is false, and the file version is 0.0.0.0.

The .NET Addict
http://dotnetaddict.dotnetdevelopersjournal.com

DotNetAddict

Loading...
Joined on 02-24-2006
Posts 44
08-08-2007 6:00 PM
Re: still missing references - have installed alpha 1.1 refresh

I'm having this issue as well. Unstalled 1.1 Alpha & Orcas Beta 1. Installed VS2k8 Beta 2, the 1.1 Alpha Refresh plugin, and the 1.1 Toolkit for Beta 2. But trying to compile, the output window shows "Silverlight framework not installed.", and I get warnings that none of the DLL references can be found. I tried removing the references and manually adding them from "...\Program Files\Microsoft Silverlight", but they still show up with the exclamation point, and still "can't be found" on compile, even though I just told the project where to find them. I thought it might be an issue with leftover Beta 1 hooks, so I created a new virtual machine and did a clean install of beta 2 & 1.1 Alpha Refresh, and I STILL get the same problem After that, I tried manually installing them in the GAC, but that didn't help either. What's the deal? This is getting frustrating. I have proof-of-concept demos that I need to show, but can't run because the pre-alpha plugin has expired, and now I can't re-compile a 1.1 refresh version because VS can't see the new DLLs. Arrrgh!!!!!! Hopefully someone has a solution to this issue.

jbaysingar

Loading...
Joined on 05-18-2007
Posts 33
08-09-2007 5:33 AM
Re: still missing references - have installed alpha 1.1 refresh

An update...

Wondering if something about my VPC setup was causing the issue, I downloaded the "official" MS Beta 2 Virtual PC image to a second PC, ran it, and installed the SL 1.1a Refresh runtime & SL 1.1a Refresh Tools. Surprise. Same result. Silverlight apps will not compile. "Silverlight framework not installed." Silverlight DLL references not found, even if I manually re-add them.

So that's:
    - Uninstall Orcas Beta 1 from existing VPC, install VS Beta 2, SL 1.1a Refresh runtime, SL 1.1a Refresh Tools
    - Install VS Beta 2, SL 1.1a Refresh runtime, SL 1.1a Refresh Tools on a clean VPC
    - Install SL 1.1a Refresh runtime & SL 1.1a Refresh Tools on "official" MS VS Beta 2 VPC.

Three different install methods, on two different PCs, all with the EXACT same result. That seems to indicate to me that there's something wrong with either Beta 2, or one of the 1.1a Refresh installers.

Did they even bother to test these? When I get this problem on MS's own Beta 2 install, I have to wonder. Sorry if I seem a little angry; this is just frustrating. Without a working Silverlight 1.1 environment, my development work is at a complete standstill, I've wasted at least a full day so far trying to get what should have been a simple setup working, and my boss is already pressuring me to have our app ready to go by the time the 1.1 Beta is released.

Arrrgh!!!

jbaysingar

Loading...
Joined on 05-18-2007
Posts 33
08-09-2007 6:10 AM
Re: still missing references - have installed alpha 1.1 refresh

I am experiencing the same - spookily I can run the silverlight demo site (http://www.microsoft.com/silverlight/default_ns.aspx#0_0) in FireFox but not in I.E.

 

Did you find a resolution to this issue at all? 

Chris Gaskell, .Net Developer and Web enthusiast.
http://cgaskell.wordpress.com

CGaskell

Loading...
Joined on 10-04-2006
Manchester, England
Posts 5
08-09-2007 6:47 AM
Re: still missing references - have installed alpha 1.1 refresh

I´ve the same problem. I try install - uninstall and the issue is the same

bialguos

Loading...
Joined on 07-11-2005
Posts 5
08-09-2007 6:48 AM
Re: still missing references - have installed alpha 1.1 refresh

I'm experiencing the same problem. The steps i followed were:

1. Installed the Orcas Beta 2, never used the Beta 1 release.

2. Installed the Silverlight.1.1.AlphaRefresh.exe.

3. VS_SilverlightTools_Alpha_Setup.exe.

4. Created a new silverlight project.

All the references to the assemblies seem to be missing. Tried to add them manually also from the Microsoft Silverlight folder. Still missing... Any clue?

Thanks.

Cheers, Niki.

 

P.S. I'm running Windows XP. Could that be the rouble?

niki_yocov

Loading...
Joined on 08-09-2007
Posts 4
08-09-2007 7:48 AM
Re: still missing references - have installed alpha 1.1 refresh
I have the same problem.
stefanja

Loading...
Joined on 08-09-2007
Posts 3
08-09-2007 8:18 AM
Re: still missing references - have installed alpha 1.1 refresh

I doubt it will be OS based - hope not anyhow! Smile 

Chris Gaskell, .Net Developer and Web enthusiast.
http://cgaskell.wordpress.com

CGaskell

Loading...
Joined on 10-04-2006
Manchester, England
Posts 5
08-09-2007 8:59 AM
Re: still missing references - have installed alpha 1.1 refresh

I doubt we're looking at an OS-specific problem. I think people have posted that they have encountered the problem on XP, Vista 32-bit, and my own experience on Vista 64-bit.

The .NET Addict
http://dotnetaddict.dotnetdevelopersjournal.com

DotNetAddict

Loading...
Joined on 02-24-2006
Posts 44
08-09-2007 9:56 AM
Re: Re: still missing references - have installed alpha 1.1 refresh

And the MS Beta 2 VPC image is Server 2003, so add that to the list. Definitely not an OS issue.

jbaysingar

Loading...
Joined on 05-18-2007
Posts 33
08-09-2007 10:12 AM
Re: still missing references - have installed alpha 1.1 refresh

I have installed vs2008 on vista and xp, I have the same problem on both installs.

1. Installed silverlight 1.1

2. installed vs2008

3. installed the tools for vs2008

 

 

stefanja

Loading...
Joined on 08-09-2007
Posts 3
08-09-2007 10:54 AM
Re: still missing references - have installed alpha 1.1 refresh

Come on MVP's tell us how to fix this! Wink 

Chris Gaskell, .Net Developer and Web enthusiast.
http://cgaskell.wordpress.com

CGaskell

Loading...
Joined on 10-04-2006
Manchester, England
Posts 5
08-09-2007 11:48 AM
Re: still missing references - have installed alpha 1.1 refresh

Additionally the error I get when trying to build the solution (with bad ref's) is "The Silverlight framework is not installed" 

Chris Gaskell, .Net Developer and Web enthusiast.
http://cgaskell.wordpress.com

CGaskell

Loading...
Joined on 10-04-2006
Manchester, England
Posts 5
08-09-2007 2:06 PM
Re: still missing references - have installed alpha 1.1 refresh

got the same problem. I think ther's somthing wrong with the silverlight 1.1 aplha refresh

best_driv3r

Loading...
Joined on 08-09-2007
Posts 3
08-09-2007 2:07 PM
Re: still missing references - have installed alpha 1.1 refresh

Me too! In Blend 2  I furthermore get the error message "The name canvas does not exists in the namespace http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 I also uninstalled SL1.1, rebooted, reinstalled ... but with the same outcome.

I'm using WinXP SP2 German but with an englisch VisualStudio.

SL1.1 Runtime seams to work fine with other app in IE7 (at least those samples here on silverlight.net website)

 

-------------------
Christian O. Metz

ChrisMe

Loading...
Joined on 08-09-2007
Posts 4
08-09-2007 2:17 PM
Re: Re: still missing references - have installed alpha 1.1 refresh

I'm having this problem too.

I'm running:

Vista 64 bit
VS2008 Pro beta 2 (with VS2005 Pro full side by side)
Silverlight 1.1a

joshcomley

Loading...
Joined on 01-13-2007
Posts 32
08-09-2007 2:36 PM
Re: Re: still missing references - have installed alpha 1.1 refresh

Same here.

The funny thing is, it already worked on my system for a few days without problems. Then after a reboot I couldn't compile my half finished project, or a new one.

In Blend I can't create a Silverlight.Net application anymore.

I reinstalled VS2008 beta2, Blend, Silverlight Alpha Refresh 1.1 and the 1.1 Alpha tools and I get the same errors.

I can run the allready compiled app.

Something is bugged here -.-

nodo

Loading...
Joined on 08-09-2007
Vienna
Posts 2
08-09-2007 3:28 PM
Re: still missing references - have installed alpha 1.1 refresh

I have discovered the source of the problem, and a (not such a great) around:

 

1. The problem is due to the fact that the "Microsoft.Silverlight.Common.targets" file calls a .dll in the same directory "Microsoft.VisualStudio.Silverlight.Build.Tasks.dll" to retrieve the path to the Silverlight CLR assemblies. (That directory is C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0). This dll is throwing an error with the "The framework is not installed" message.  I am thinking that a Registry key is not being set, or (gasp) an environment variable is not not set.  So the problem is either a bad dll build (note that the .target files predate the dll by 3 months, so maybe they are just out of step), or the installer is not setting/resetting an HKEY value properly.

 

2. The workaround is to open the "Microsoft.Silverlight.Common.targets" and change this section:

 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <UsingTask TaskName="Microsoft.VisualStudio.Silverlight.Build.Tasks.GetSilverlightFrameworkPath"   AssemblyFile="Microsoft.VisualStudio.Silverlight.Build.Tasks.dll" />
    <UsingTask TaskName="Microsoft.VisualStudio.Silverlight.Build.Tasks.CompileXaml"   AssemblyFile="Microsoft.VisualStudio.Silverlight.Build.Tasks.dll" />

    <!--
        Add Silverlight specific Item names to AvailableItemName item, so that they can show up
        in a drop-down menu for Build Action field of the properties window in VisualStudio.
     -->

    <ItemGroup Condition="'$(BuildingInsideVisualStudio)'=='true'">
        <AvailableItemName Include="SilverlightPage" />
    </ItemGroup>

    <!--
    ================================================================
                        GetFrameworkPaths
                       
    Override GetFrameworkPaths in Microsoft.Common.targets so that
    references resolve to the silverlight assemblies rather than the
    desktop CLR assemblies
    ================================================================
     -->
    <Target
        Name="GetFrameworkPaths"
        DependsOnTargets="$(GetFrameworkPathsDependsOn)"
     >
        <GetSilverlightFrameworkPath>
            <Output TaskParameter="Path" PropertyName="TargetFrameworkDirectory"/>
            <Output TaskParameter="Path" ItemName="TargetFrameworkDirectoryItem"/>
            <Output TaskParameter="Path" PropertyName="TargetFrameworkSDKDirectory"/>
            <Output TaskParameter="Path" ItemName="TargetFrameworkSDKDirectoryItem"/>
        </GetSilverlightFrameworkPath>

        <CreateProperty Value="$(TargetFrameworkDirectory)">
            <Output TaskParameter="Value" PropertyName="FrameworkPathOverride"/>
        </CreateProperty>
        <CreateProperty Value="$(TargetFrameworkDirectory)">
            <Output TaskParameter="Value" PropertyName="SdkPath"/>
        </CreateProperty>
    </Target>

TO THIS:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <UsingTask TaskName="Microsoft.VisualStudio.Silverlight.Build.Tasks.CompileXaml"   AssemblyFile="Microsoft.VisualStudio.Silverlight.Build.Tasks.dll" />

    <!--
        Add Silverlight specific Item names to AvailableItemName item, so that they can show up
        in a drop-down menu for Build Action field of the properties window in VisualStudio.
     -->

    <ItemGroup Condition="'$(BuildingInsideVisualStudio)'=='true'">
        <AvailableItemName Include="SilverlightPage" />
    </ItemGroup>

    <!--
    ================================================================
                        GetFrameworkPaths
                       
    Override GetFrameworkPaths in Microsoft.Common.targets so that
    references resolve to the silverlight assemblies rather than the
    desktop CLR assemblies
    ================================================================
     -->
    <Target
        Name="GetFrameworkPaths"
        DependsOnTargets="$(GetFrameworkPathsDependsOn)"
     >

        <CreateProperty Value="C:\Program Files\Microsoft Silverlight">
            <Output TaskParameter="Value" PropertyName="FrameworkPathOverride"/>
        </CreateProperty>
        <CreateProperty Value="C:\Program Files\Microsoft Silverlight">
            <Output TaskParameter="Value" PropertyName="SdkPath"/>
        </CreateProperty>
    </Target>

Then you place the contents of the C:\Program Files\Microsoft Silverlight\*.dll in your project's clientbin (target file output) directory.  This is an awful hack but at least it will build and successfully run Silverlight 1.1 projects.  I will also admit that this hack does not properly locate the directory (hence placing the path to the Silverlight .dlls in the propertyvalue is moot, but I am still trying to find a workaround for the bad build.dll or the missing HKEY value).

I hope someone at MS notes this and has an "aha" moment.  In the meantime, I hope this helps other avoid, or who have already spent, lots of valuable time trying to fix it.

 

silver_mike

Loading...
Joined on 08-09-2007
Posts 4
08-09-2007 4:03 PM
Re: still missing references - have installed alpha 1.1 refresh

Great! That was the right hint.
I refactored the dll and looked into my registry and found that there has been missing an entry.

Therefore I added the key

SOFTWARE\Classes\CLSID\{32C73088-76AE-40F7-AC40-81F62CB2C1DA}\InprocServer32
 
And entered the hardcoded directory name to my \Microsoft Silverlight\ directory.
After that I could compile within Visual Studio.
This could be a bit shorter workaround as described above.

-------------------
Christian O. Metz

ChrisMe

Loading...
Joined on 08-09-2007
Posts 4
08-09-2007 4:22 PM
Re: Re: still missing references - have installed alpha 1.1 refresh

ChrisMe, what do you mean by "entered the hardcoded directory name to my \Microsoft Silverlight\ directory"? Do you mean added that as the value for the "(Default)" value for the new key?

Thanks for the tips guys but I'm not 100% how to follow them. How do I open up Microsoft.Silverlight.Common.targets? Is that a file to open up in reflector?

 

joshcomley

Loading...
Joined on 01-13-2007
Posts 32
08-09-2007 4:30 PM
Re: Re: Re: still missing references - have installed alpha 1.1 refresh

Josh,

It's just an XML file, so you can just open it in Notepad.

jbaysingar

Loading...
Joined on 05-18-2007
Posts 33
08-09-2007 4:34 PM
Re: Re: Re: Re: still missing references - have installed alpha 1.1 refresh

Thanks jbaysingar - where is this elusive XML file?

joshcomley

Loading...
Joined on 01-13-2007
Posts 32
08-09-2007 4:35 PM
Re: Silverlight references bug

Right --- I've spent two (very long) days trying to correct this. I imagine this has wasted much time for many people. All of the Silverlight assemblies are not picked up as references --- I get this error for all the dlls in the Program Files Silverlight directory:  

The referenced component 'agclr' could not be found.

Any Help would be appreciated. 

Lou

Drzog

Loading...
Joined on 08-09-2007
Posts 4
08-09-2007 4:53 PM
Re: Re: Re: Re: Re: still missing references - have installed alpha 1.1 refresh

Josh,

It's in "...\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\Silverlight"

jbaysingar

Loading...
Joined on 05-18-2007
Posts 33
08-09-2007 4:56 PM
Re: still missing references - have installed alpha 1.1 refresh

ChrisMe:

I refactored the dll and looked into my registry and found that there has been missing an entry.

Okay. What do you mean by refactored the dll? 

ChrisMe:

Therefore I added the key

SOFTWARE\Classes\CLSID\{32C73088-76AE-40F7-AC40-81F62CB2C1DA}\InprocServer32
 
And entered the hardcoded directory name to my \Microsoft Silverlight\ directory.

How did you determine the GUID here?  And are we talking about HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\... ?


CNorton

Loading...
Joined on 07-11-2007
Philadelphia, PA
Posts 1
08-09-2007 5:05 PM
Re: still missing references - have installed alpha 1.1 refresh

There was an update to the silverlight 1.1 runtime in the last day or so, which changed the GUID of the control. We have a fix for the tools, but there are a few more changes to silverlight.js expected this week, so we wanted to hold off until they are ready and have 1 update with all of that in it. Options:

a)       Wait a couple of days and we’ll have a updated tools release

b)       Hack the registry: Add the key HKLM\SOFTWARE\Classes\CLSID\{32C73088-76AE-40F7-AC40-81F62CB2C1DA}\InprocServer32. Set the value to the full file path for the npctrl.1.0.XXXXX.dll which should be in \program files\microsoft silverlight. For example:

c:\Program Files\Microsoft Silverlight\npctrl.1.0.20730.0.dll

You should remove this key when the tools update is shipped.

samsp

Loading...
Joined on 08-08-2002
Posts 96
08-09-2007 5:06 PM
Re: Re: still missing references - have installed alpha 1.1 refresh

OK so I added the key into HKEY_LOCAL_MACHINE\SOFTWARE..., then I updated the XML file in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\Silverlight and finally manually added the three remaining DLLs that were not happy (taking them from C:\Program Files (x86)\Microsoft Silverlight).

Now it compiles but I think I may have mismatched versions somewhere along the line because all I get is a "Get Silverlight" icon and 2 warnings of "conflicts between different versions of the same dependant assembly". Clicking on "Get Silverlight" takes me to the Silverlight 1.0 RC page.

If I uninstall Silverlight the C:\Program Files (x86)\Microsoft Silverlight dir still exists with all the files. How can I properly remove version 1.0?

joshcomley

Loading...
Joined on 01-13-2007
Posts 32
08-09-2007 5:19 PM
Re: still missing references - have installed alpha 1.1 refresh

Thanks for the info

stefanja

Loading...
Joined on 08-09-2007
Posts 3
08-09-2007 5:21 PM
Re: Re: Re: still missing references - have installed alpha 1.1 refresh

Here's what I did to fix:

1) Added the reg key:

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{32C73088-76AE-40F7-AC40-81F62CB2C1DA}\InprocServer32

and set the default value to:

C:\Program Files (x86)\Microsoft Silverlight\npctrl.dll

There was no dll with funky Silverlight version numbers.

2) I modded the following XML file:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v9.0\Silverlight\Microsoft.Silverlight.Common.targets.xml

replacing:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <UsingTask TaskName="Microsoft.VisualStudio.Silverlight.Build.Tasks.GetSilverlightFrameworkPath"   AssemblyFile="Microsoft.VisualStudio.Silverlight.Build.Tasks.dll" />
    <UsingTask TaskName="Microsoft.VisualStudio.Silverlight.Build.Tasks.CompileXaml"   AssemblyFile="Microsoft.VisualStudio.Silverlight.Build.Tasks.dll" />

    <!--
        Add Silverlight specific Item names to AvailableItemName item, so that they can show up
        in a drop-down menu for Build Action field of the properties window in VisualStudio.
     -->

    <ItemGroup Condition="'$(BuildingInsideVisualStudio)'=='true'">
        <AvailableItemName Include="SilverlightPage" />
    </ItemGroup>

    <!--
    ================================================================
                        GetFrameworkPaths
                       
    Override GetFrameworkPaths in Microsoft.Common.targets so that
    references resolve to the silverlight assemblies rather than the
    desktop CLR assemblies
    ================================================================
     -->
    <Target
        Name="GetFrameworkPaths"
        DependsOnTargets="$(GetFrameworkPathsDependsOn)"
     >
        <GetSilverlightFrameworkPath>
            <Output TaskParameter="Path" PropertyName="TargetFrameworkDirectory"/>
            <Output TaskParameter="Path" ItemName="TargetFrameworkDirectoryItem"/>
            <Output TaskParameter="Path" PropertyName="TargetFrameworkSDKDirectory"/>
            <Output TaskParameter="Path" ItemName="TargetFrameworkSDKDirectoryItem"/>
        </GetSilverlightFrameworkPath>

        <CreateProperty Value="$(TargetFrameworkDirectory)">
            <Output TaskParameter="Value" PropertyName="FrameworkPathOverride"/>
        </CreateProperty>
        <CreateProperty Value="$(TargetFrameworkDirectory)">
            <Output TaskParameter="Value