?
Solved

Document level vsto not deploy

Posted on 2011-04-27
23
Medium Priority
?
246 Views
Last Modified: 2012-05-11
I had a word document level VB.net VSTO that is developed in Visual Studio 2008. It was working well with deployment on client machine.

Recently I bring the current project into Visual Studio 2010, when I deploy the same project to client machine. I get the attached error. The most strange thing is some document having this problem, and some are not. I been trying this for the past 2 days and totally lost in what do with it.

Is it because I missed out in some area while bring it to Visual Studio 2010??? Best part is all the document (inclusive of working/not working) are all in the same folder on my local machine.

aaa.jpg
0
Comment
Question by:xedge88
  • 15
  • 7
23 Comments
 
LVL 1

Expert Comment

by:myaspnet
ID: 35474120
try use extension rtf instead of docx
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 35474208
Make sure the security settings are right

http://msdn.microsoft.com/en-us/magazine/ee677170.aspx
0
 

Author Comment

by:xedge88
ID: 35474427
Using rtf is not the solution to the root.
Why is that some document work and some do not where they are all in the same location.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:xedge88
ID: 35474435
If 1 document can, it mean that location is trusted. But some how it doesn't.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 35474453
Depends on what the code is trying to do.  Is the code same in all documents?
0
 

Author Comment

by:xedge88
ID: 35474613
Yup it is same
0
 

Author Comment

by:xedge88
ID: 35474842
Tried the solution, it does not work.
0
 

Author Comment

by:xedge88
ID: 35476510
I have the exact same probem as the guy below:

http://www.dotnet247.com/247reference/msgs/58/294563.aspx

Seem like I am not alone
0
 

Author Comment

by:xedge88
ID: 35477662
I found 2 very interesting behaviour. If I target the compile framework to 3.5, I had no problem running it at all. But when target to framework 4.0, I am having the issue. I need to target 4.0, someone help...
0
 

Author Comment

by:xedge88
ID: 35480646
I found out vsto loaded failed is because the security of the file is blocked. How does I bypass this unblock and let vsto load successfully???

I had attached the screenshot of how it look like. I realised when in .Net Framework 3.5, even it is blocked, vsto can still load but not .Net Framework 4.0
0
 

Author Comment

by:xedge88
ID: 35480649
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 35481544
>How does I bypass this unblock and let vsto load successfully???

Did you try that Unblock button?
0
 

Author Comment

by:xedge88
ID: 35482160
Yup unlock button help to load it successfully.

But in net framework 3.5, even if it is locked it can still fire up. but in .net framework 4.0, it does not able to fire up.

I cant let user always unlock each file they download.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 35482169
>But in net framework 3.5, even if it is locked it can still fire up. but in .net framework 4.0, it does not able to fire up.

I think its all down to security policy.

>I cant let user always unlock each file they download.
That is the reason for having security. Otherwise, anyone can use an Office file to infect a computer without user even knowing it.
0
 

Author Comment

by:xedge88
ID: 35482313
Yup, I understand that. Is there a way I can make it work like how .net framework 3.5 secruity but target to framework 4.0??? I know this sound a bit silly

I just want my vsto to be able to run without always clicking unlock -_-"
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 35482347
0
 

Author Comment

by:xedge88
ID: 35484024
How do I make it work...? The link dun seem to show sample of what 2 do. Does it mean tat mi implement it during runtime or during installation? Sorrie do not quite get where 2 start with the link
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 35484063
It has to be done on the computer where it is running. If its a domain environment, I think it can be set using the GPO. Otherwise, "Local Security Policy" in Administrative Tools"
0
 

Author Comment

by:xedge88
ID: 35485161
I need a way to that are not via Administrative tool.

How to do GPO for vsto?
0
 

Author Comment

by:xedge88
ID: 35485580
what abt this??? Would this help??? I read something abt the below, but do not know whether it will work or use.

 NetFx40_LegacySecurityPolicy
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 1500 total points
ID: 35490810
0
 

Author Comment

by:xedge88
ID: 35503831
It does not work. Anyway thanks guys, think I would just live with it and have user to trust it as trusted site so when file is downloaded from internet, the file wont be locked.
0
 

Author Closing Comment

by:xedge88
ID: 35503835
It was a security improvement that I suppose I need to live with it
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cancel future meetings from user mailboxes in Office 365 using Remove-CalendarEvents
This holiday season, we’re giving away the gift of knowledge—tech knowledge, that is. Keep reading to see what hacks, tips, and trends we have wrapped and waiting for you under the tree.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question