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 answers
Related Questions in DLL
- How to find a sequence of bytes on the target program from my injected dll?
- .lib not generated when building DLL project using template class
- The file "spng.dll" is not founded in my Visual Studio's project and i get an error
- Handling Memory Allocation and Pointers in Electron between Node.js and C++ DLL
- Multi level project reference using dll
- Wix MSI Project Harvesting Error Message 'dll is not running' on Build
- Windows Custom Credential Provider is not displaying tile on logon for all users in a pc
- How can I verbosely track the whole process of calling a function?
- Is dll static var shared between threads that load the same dll?
- JNR-FFI - Callback Pointer crash
- How can I patch a function call to a Windows DLL (e.g. kernel32 LoadLibrary)? Is this even possible?
- PyInstaller with PyQt5 Generates "DLL load failed" Error for QtPrintSupport
- What happens if I link two different libraries providing the same symbols in Visual Studio?
- how to test .dll on Linux
- PHP FFI - How to free memory created by FFI::new("void*[2]", false, true)
Related Questions in REFERENCE
- Call by reference confusion
- Would event listeners prevent garbage collecting objects referenced in outer function scopes?
- What is correct way to copy struct instance with fields in Go?
- Filling multiple blanks among texts in a cell using values from other cells
- How are reference to objects handled in javascript when returning object and modifying them in their original functions
- Return struct containing borrowed value in rust
- Why do different delivery methods have different results when applying PHP's global keyword?
- I have about 200 cells with an equation like [=B6] can you use a MACRO (VBA) to make each cell contain $ in front of column & row characters eg [$B$6]
- strange behavior : How elements are inserted in vba arrays?
- Can someone explain to me why after this function is called a becomes 2 instead of 3 or 4?
- Copy/Paste APA-style Text References into Word as Dynamic Citations for Automatic Bibliography
- Having trouble populating an array of UUID's into their referenced type
- Any downsides to returning a reference to struct variable in Rust?
- Need documentation or API reference to create job posts on Hirist platform
- .Net App has reference but is not being recognized in class
Related Questions in .NET-2.0
- Existing Encryption and Validation method in Machine Key of IIS suddenly stops working
- Why are my input values not binding to my viewmodel?
- Why add-migration command is giving error although build succeeds in Visual Studio using .NET
- Legacy .NET CF download - Post-deploy error 0x00000001
- XmlSerializer much slower when a different constructor for it is used
- Part of DOM is deleted in ASP.NET 2.0 app on IIS 10
- What's the Microsoft DI equivalent of Castle.Windsor's DependsOn Dependency.OnValue
- C# NET. Framework 2.0 | Make a delay?
- TimeSpan.Parse of string including days dd-hh:mm:ss
- Webclient doesnt like UrlEncoded slash. How to make it work?
- unity c#, unable to acces a variable form another script
- How do I refresh my datagrid view from another form after I insert and update my values inside my database?
- Why can't I update my dates in database from 01/01/1753?
- Why is my datagrid not updating after I update my database?
- How do I compile a simple WinForms C# application for .NET Framework 2.0 in Visual Studio 2005 or 2019?
Related Questions in INFOPATH
- Does the encode attachment InfoPath from Kotlin or Java have different signature from C#?
- Sharepoint workflow verification
- Manually starting a workflow 2010 created in sharepoint designer 2013 return infopath error
- Google Forms - Script to add repeating question with optional repeating question nested after each response
- SP 2016 Single Line of Text greyed out in Datasheet view
- Infopath form to show available days from Sharepoint list
- Unable to parse xml for rich text editor in InfoPath form using PowerAutomate
- Export SharePoint 2007 InfoPath forms to PDF
- Sharepoint New Item button returns a blank page when it supposed to return my custom form. What could possibly cause the issue?
- Update Infopath Form Library values through rest api or jsom?
- How to setup a workflow to be used with Infopath
- Sharepoint column field type changing from original Infopath form field type
- copy paste of an infopath repeating table line resets a numerical field to zero
- .NET Core Web API SQL Server stored procedures
- IOleCommandTarget.QueryStatus: SaveAs command is supported but not enabled
Related Questions in VSTA
- SSIS Script Task - Edit Script not working
- SSIS script task error after deploying to SQL Server 2019: Failed to migrate scripts contained in the package to the VSTA 15.0 format
- Solidworks 2020 VSTA User Form
- SSIS Package Script Task Editor Stopped Working
- Visual Studio Tools for Application: How to now the state of the binaries and compile the source from the host application
- SSIS C# Debugging and Breakpoints not working with Integration Services Object
- Visual Studio Pro 2019 16.8.4 - Script Task Editor Not Opening in SSIS
- InfoPath 2010 Error: InfoPath cannot start Microsoft Visual Studio Tools for Applications. InfoPath has encountered the Error. The operation failed
- Can not use Corel Draw 2020 Visual Studio editor to edit a VSTA application
- Where can I get Visual Studio Tools for Applications 2008
- Why is SSIS script component opening in Advanced mode?
- Edit Script button in SSDT_BI2012 doesn't work
- SSIS script task losing code when importing into SQL Server 2016
- How to reference active document in Solidworks when there are multiple instances
- Script Tasks losing code in SSIS 2016 (VSTA 2015)
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?
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)
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!