I have an InfoPath form with a code-behind C# solution. Every time I open the form (design mode) and open the Visual Studio Tools for Applications (VSTA), the reference to System.Windows.Forms is missing from the project. When I add it manually everything works. I also tried setting the property Copy Local to true or copy the dll-file in a folder and set that property to true, but this doesn't work either. Does anyone have an idea how I can solve this?
Missing reference to System.Windows.Forms on VSTA project startup
712 Views Asked by Abbas At
1
There are 1 best solutions below
Related Questions in DLL
- C++ using std::vector across boundaries
- Linking to a static lib compiled with MSVC
- What are MATLAB DLLS?
- VC++ .net: Functionality from managed DLL is not exported
- DLL being marked as DELETEPENDING
- ASP.NET Web Forms give error while connecting to Oracle 11g
- Air Native Extensions: Released Air App w/Windows Native Extension works fine on develpment PC but not on other computers
- WiX and custom extensions for primary output?
- Using different versions of the same DLL in a project
- visual c++ - missing unrelated DLLs
- Error executing SSIS Package
- C++ Access violation write to 0x00000000 in dll in mql4
- How can I read embedded .resx in different assembly
- Running two versions of same Dll parallel in Asp.Net
- Call class member of c++ DLL from c#
Related Questions in REFERENCE
- Objective-C Reference to object that implements protocol
- Wrong Theme being applied to PreferenceActivity with xml reference
- what is the <% in the php files and how it should compile?
- C++ assign const reference to instance variable (memory issues?)
- reference data class member visitor pattern
- Using NON static class Methods Without reference
- Breaking reference to object in Python
- Reference as a only class member gives size 8 for integer
- How can I tell PHPStorm to find references to rewritten URLS?
- Why is this method called instead of the other?
- Where is the MVEL Language Reference found?
- Assign a reference return value to a non-reference variable
- Why can a raw type reference refer to a generic instance?
- C++ - Why does 2 local references to the same object stay in sync?
- how to use namespace of external project?
Related Questions in .NET-2.0
- List.Find Method in a VB.NET2
- .Net 2.0 is not appearing in Visual studio 2010 prerequisites dialog box
- Get name of surrounding class from within nested class
- Generics in .net 2.0 : Using a Where class on a class definition
- .NET 1.1 to .NET 2.0 Website Upgrade -CSPROJ Error
- The Type does not Exist in the namespace. Are you missing an Assembly?
- Changing the text color of the "hovered" item in a Combobox?
- Mime-type .tif/pdf files are corrupted and will not open .NET V2.0
- Get the Readable Message from ManagementObject.InvokeMethod
- Name 'Lassalle' is not declared
- Compare 2 Lists and Create New List with Different Items
- .Net 2.0 List Issue
- ASHX and "Cannot use a leading .. to exit above the top directory"
- Transfer Winform Data to web browser(Chrome, Mozila FireFox, Safari etc)
- Multiple requests reading from a single file ("used by another process")
Related Questions in INFOPATH
- Infopath: This form cannot be opened because it requires a domain permission level
- SharePoint 2013 permission for Inforpath 2013 forms developer
- Accquiring network location of a Infopath form using vba
- InfoPath form options does not contain Security and Trust
- Removing unwanted characters from username field using infopath
- create "recapitulative" form with infopath?
- Why sharepoint.users can not see the form?
- InfoPath C# Button: Switch View then Export to PDF
- Info-Path - how to split a string into 2 substrings
- SharePoint filter on year
- InfoPath 2010 How to avoid validation when a section is hidden?
- Infopath similar functionality on asp.net web form
- Infopath cannot submit form to Sharepoint List
- SharePoint groups and shared libraries/lists
- Adding a field to old versions of a form
Related Questions in VSTA
- Whatever happened to VSTA?
- Infopath CodeBehind Assembly Error
- Infopath 2007 Repeating Table Nulls
- VS2010 could not load VSTA project system package
- Missing reference to System.Windows.Forms on VSTA project startup
- SSIS migration from 2005 to 2008? Just opening in BIDS 2008 (which will do conversions) and then deploying in 2008 enviorment work?
- Built-in C#/VB.Net editor with intellisense - Roslyn, VSTA, or something else?
- SSIS Package Script Task Editor Stopped Working
- Create a custom control in Corel Draw X6 using only VSTA
- How do I expose my COM host object to the VSTA add-in?
- SSIS script task error after deploying to SQL Server 2019: Failed to migrate scripts contained in the package to the VSTA 15.0 format
- If I move a form with VSTA code-behind into Visual Studio, will end users require the VSTO runtime?
- Infopath - print form to network printer
- Solidworks 2020 VSTA User Form
- SSIS C# Debugging and Breakpoints not working with Integration Services Object
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I had a similar issue. I resolved it by creating a copy of the project files folder, renaming it and then using the "remove code" option from within form options to strip out the old code. Then saved the form without code, re-opened it and attached the newly created copy of the project files folder.
Not sure if that's exactly the same as what you are experiencing, but it definitely worked for me on multiple forms.
Good luck!