?
Solved

Error "Failed to grant permission to execute assembly"

Posted on 2005-03-25
7
Medium Priority
?
2,354 Views
Last Modified: 2012-05-05
NEW VB.NET/Visual Studio user.

Environment:
  Infopath form project in Visual Studio .Net 2003
  Publishing form to "rented" sharepoint server as a form library.
  Publication goes fine.  Build goes fine.

  When I try to open the form at the site I get the following error:
============
Form template: http://xxx.companyname.com/Sidecar/Forms/template.xsn
InfoPath cannot open the selected form because of an error in the form's code.
Failed to grant permission to execute assembly 'InfoPathProject2, Version=1.0.1910.23586, Culture=neutral, PublicKeyToken=null'.
============

What should I be checking on?

I might have a million MS Access points, but in this TA, I don't know Dick.  But I have done cleanup side by side with TheLearnedOne

regards
Jack,
Earl of Noobee on the App
0
Comment
Question by:jadedata
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 38

Accepted Solution

by:
PaulHews earned 375 total points
ID: 13634650
In control panel, select Administrative Tools > .NET Wizards.  You can use the Trust Assembly wizard to change the permissions on all associated assemblies (including DLLs)  with the project.  You change it to "full trust" and you won't have those problems.
0
 
LVL 32

Author Comment

by:jadedata
ID: 13636038
Checking that out.
It is asking me for the source of "the assembly", would this be the site the infopath form is published to?

0
 
LVL 38

Expert Comment

by:PaulHews
ID: 13636400
An assembly is generally an EXE or DLL.  There should be a folder called "bin" with the assembly output of the project.
0
Congratulations! You’re Certified – Now What?

Starting a new career can be overwhelming. Becoming certified in your field of expertise is a great start, but where do you go from here?  Here are some tips to help you on your career journey.

 
LVL 38

Expert Comment

by:PaulHews
ID: 13636445
I've been going through the infopath stuff at MS, and I don't think what I said above is much help.
0
 
LVL 32

Author Comment

by:jadedata
ID: 13636734
0
 
LVL 32

Author Comment

by:jadedata
ID: 13665952
I am learning all about "assemblies".  The question represents the tip of the iceberg which is still attached to the continent of Antartica.
0

Featured Post

What is a Denial of Service (DoS)?

A DoS is a malicious attempt to prevent the normal operation of a computer system. You may frequently see the terms 'DDoS' (Distributed Denial of Service) and 'DoS' used interchangeably, but there are some subtle differences.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

800 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