Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / May 2007

Tip: Looking for answers? Try searching our database.

Can't load CLR on TabletPC with VSTO2003 apps

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matt - 18 May 2007 20:15 GMT
We have a VSTO Word Template application that was built using VS2003, and it
runs fine on both desktops and laptops. However, when we try to run it on
Tablet PCs (HP model HSTNN-C02C), it gives the following error:

"The common language runtime could not be loaded by <path to .dll>...
Contact your administrator for further assistance."

Non-VSTO applications built using VS2003 run fine on the tablets, but VSTO
applications can't get to the CLR.

Any ideas? I made sure I had correct code groups set up...

I apologize if this post should be in another forum, but since it fails when
loading the CLR, I thought this should be my first stop.

Matt Underwood
Gaurav Khanna [MSFT] - 20 May 2007 08:20 GMT
Hi,

Check http://msdn2.microsoft.com/en-us/library/6s0wczt9(VS.80).aspx - it may
help you.

Signature

Thanks!
Gaurav
WinToolZone - http://www.wintoolzone.com/
Inside and Out - http://www.wintoolzone.com/blog/
The information in this post is provided "AS IS" with no warranties, and
confers no rights.

> We have a VSTO Word Template application that was built using VS2003, and
> it
[quoted text clipped - 14 lines]
>
> Matt Underwood
Matt - 22 May 2007 16:16 GMT
Thanks for the response, Gaurav. I followed the link you suggested, but don't
see an obvious answer there.

The first entry in
http://msdn2.microsoft.com/en-us/library/6s0wczt9(VS.80).aspx is the exact
error message we're seeing. That entry says the framework version must be the
same or newer than the computer the program was developed on.

The application was developed on my PC running framework 1.1.4322.573. The
tablet PCs are running framework 1.1.4322.573 as well.

We also have framework 2.0.50727.42 installed on our deskptop and laptop
PCs, but don't currently have it installed on the Tablet PCs (we will
eventually, we just left if off while we're trying to resolve this issue. At
least, under Administrative Tools it doesn't show up on the list (It looks
like the setup folks did install it, though, which you'll see from the lists
of installed software below... perhaps it isn't configured or something)

In the Add or Remove Programs listing on the desktop and laptop PCs, we have
the following:
Microsoft .Net Compact Framework 1.0 SP3 Developer
Microsoft .Net Compact Framework 2.0
Microsoft .Net Framework (English) v1.0.3705
Microsoft .Net Framework 1.0 Hotfix (KB886906)
Microsoft .Net Framework 1.1
Microsoft .Net Framework 1.1 Hotfix (KB886903)
Microsoft .Net Framework 2.0

On the Tablet PCs, we have the following:
Microsoft .Net Framework 1.1
Microsoft .Net Framework 1.1 Hotfix (KB886903)
Microsoft .Net Framework 2.0

Is it possible that the installed frameworks are conflicting, or that I'm
missing a piece?

In order to ensure that the application runs under the correct framework, I
added these lines to the web.config of the VSTO project:
<configuration>
    <startup>
        <supportedRuntime version="v1.1.4322"/>
        <requiredRuntime version="v1.1.4322" safemode="true"/>
    </startup>

Is there perhaps a problem with the exact wording there? I took the code out
a Knowledgebase article on the Microsoft site.

Thanks again for your help. I hope there isn't a basic incompatibility with
the Tablet PCs, since this is a crucial application.

Thanks,
Matt Underwood

> Hi,
>
[quoted text clipped - 19 lines]
> >
> > Matt Underwood

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.