VSTO2010: Reference To Class 'RibbonBase' Is Not Allowed When Its Assembly Is Linked Using No-PIA Mode
Oct 20, 2010
When I try to compile my VSTO Outlook addin, I get this error:
Reference to class 'RibbonBase' is not allowed when its assembly is linked using No-PIA mode
View 2 Replies
ADVERTISEMENT
Mar 3, 2009
I have a Visual Studio 2008 solution with project A referencing project B as a project reference. Project B references System.Data.Linq, but project A does not. Everything compiles and runs fine. I like this arrangement because avoiding a reference to System.Data.Linq in project A ensures that it uses project B methods instead of directly accessign System.Data.Linq methods, which I want to avoid.
View 3 Replies
Jun 11, 2010
I'm having an issue linking a lot of .resx file into a compiled assembly to be used in an asp.net web app. The error message I get is:
Could not find any resources appropriate for the specified culture or the neutral culture.
Make sure "Reports.My.Resources.ArgsRptAgeAtAdmission.resources" was correctly embedded or linked into assembly "Reports" at compile time, or that all the satellite assemblies required are loadable and fully signed.
My solution is set up as so:
Two .dll projects, both building a 'Reports.dll' at the same location (to be able to compile different sets of reports into the website).
One web app project
Each project is located in their own separate folders.
When I build my reports dll project, it saves the assembly in the site /bin folder. I then run the site, builds without errors. I get the exception when I try to load the report that uses the embedded resources. I find it odd, as in code I can access Reports.My.Resources.ArgsRptAgeAtAdmission just fine with Intellisense.
In the report code files, the exception is being thrown from the code
Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Resources.ArgsRptAgeAtAdmission))
'Exception is thrown here _____ / _______
Me.textBox3.Text = resources.GetString("textBox3.Text")
The assembly is also being loaded in to the page through reflection, if that makes any difference.
What am I doing wrong in this scenario? I can retrieve the string value by directly calling Reports.My.Resources.ArgsRptAgeAtAdmission.textBox3_Text without error
View 1 Replies
Oct 9, 2008
I've got an exception when I deployed my application: "the located assembly's manifest does not match the assembly reference" What I remember is changing the project name from the previous source code, does it affect that much?
View 1 Replies
Jun 8, 2012
I got this Error : Reference to class 'ApplicationClass' is not allowed when its assembly is linked using No-PIA mode.
This Is My Code:
Imports System
Imports System.Collections.Generic
Imports System.Drawing
Imports System.Reflection
Imports System.Threading
[Code] .....
View 3 Replies
Sep 16, 2010
What is the real mode , protected mode , supervisor mode and the hypervisor mode ?
View 1 Replies
Jul 23, 2010
This has got to be one of the most frustrating issues with asp.net. I first got the error parser error cannot load default and as I have done before checked if the naming was correct in th bin folder and made the changes accordingly. Now I get the following error:
somethiing._DEfault is not allowed here because it does not extend class 'System.Web.UI.Page'
where something is the name of the project in the properties. I have the following code in Default:
Namespace FormDiscovery
Partial Class _Default
Inherits System.Web.UI.Page
Shared settings As New System.Configuration.AppSettingsReader
[Code].....
Now I have deleted the project and other in the solution and created a new one and still this error and if I take the 'something' name away I get the cannot load default error.
View 1 Replies
Mar 3, 2010
I want to add a Reference to my application in run-time mode and i want to list the public keys of this Reference in run-time mode I'm using VS2005.net Windows XP professional
View 6 Replies
Nov 18, 2010
I made my first WPF control:
[code]...
On the DataGrid control it says: "the type datagrid was not found, Verify that you are not missing an assembly refernece" I'm creating the control within a Win Forms app. What assembly to I need to include and how do I do that in XAML?
View 3 Replies
Sep 28, 2009
I have VS 2005. I am creating a VB .NET class that will interop with a COM app. I want to add a reference to a type lib file (.tlb). So I run the add reference command and use the browse button. I browse to the .tlb file I want and ok out. When I am done, the reference I have is to an assembly in the GAC. But I don't want that assembly as a reference. I want to have the IDE create a private interop assembly that I will deliver with my .NET object.
So how do I avoid hvaing VB .NET pull in an assembly from the GAC instead of creating an interop asm from the typelib I have browsed to?
View 1 Replies
Aug 13, 2009
I have a pretty complicated project with lots of class files, code modules, etc. There was a changed to one of my referenced DLLs that requires an isolated change in a single Sub within my solution. Unfortunately, this new Sub is not compatible with most of my clients' configuration but is required by some of my other clients. So now I must keep two versions in Source Safe of my solution - which I do not want to do. What I would like to do is to be able to determine which DLL is running and flip a switch to use the either the old Sub or the new Sub. Currently the sub is in a class, but I could break it out. Is it possible to determine which assembly version DLL is running? Also, if I reference the new DLL, the old Sub will not build. If I reference the old DLL, the new Sub will not build. So is there a way to keep both Subs in the same project?
Can I use reflection to know what is the assembly version of a loaded DLL?
View 3 Replies
Sep 30, 2010
I have created a shared assemby MyLibray version 1.0.0.1 and installed it in gac. Again I created MyLibrary version 1.0.0.2 and installed it in gac.
See the gac screen shot.
But in Add Reference dialog box only older version 1.0.0.1 is available.
See the screenshot.
View 2 Replies
Nov 16, 2009
Reference Assembly outside the AppBase-Directory
View 1 Replies
Feb 10, 2012
I have an industrial control program that we install on OEM equipment. This equipment falls into one of two categories; those WITH a special piece of IO hardware installed on the computer and those without.
This IO hardware has .NET 3.5 support assemblies, and is easy to program for. In my program, I reference the assemblies under the Project Properties and I'm good to go. Here's my problem... my program now seems to NEED this assembly to even start up, even if I'm not directly accessing anything in it until much later in the programming. When we ship any version of this equipment; I need to install the IO hardware assemblies whether the equipment needs it or not just for my program to run. The assemblies are bundled onto a hardware driver disk, and this sucker is 3gig.
What I would like to do is alter my program so that it runs no matter if it finds those assemblies or not. If not, then it will automatically close off certain functionallities (you can't use that because your computer don't have the hardware installed); and ideally, Visual Studio won't have 100 errors about a "missing reference". If found, then it will call them and use them normally as the program currently does.
View 6 Replies
Aug 13, 2009
I have a pretty complicated project with lots of class files, code modules, etc. There was a changed to one of my referenced DLLs that requires an isolated change in a single Sub within my solution. Unfortunately, this new Sub is not compatible with most of my clients' configuration but is required by some of my other clients. So now I must keep two versions in Source Safe of my solution - which I do not want to do. What I would like to do is to be able to determine which DLL is running and flip a switch to use the either the old Sub or the new Sub. Currently the sub is in a class, but I could break it out. Is it possible to determine which assembly version DLL is running? Also, if I reference the new DLL, the old Sub will not build. If I reference the old DLL, the new Sub will not build. So is there a way to keep both Subs in the same project?
View 1 Replies
Jan 25, 2011
I have managed to get ASP.NET Membership mainly working with my SQL server.The problem i'm having is I get an error in VS2010 in my code behind file when attempting to create a user. I get a Red Exclamation mark appear on .CreateUser on the code below.
Error Message:Reference required to assembly 'System.Web.Security.ApplicationServices, Version=4.0.0.0, Culture=neutral,PublicKeyToken=31bf3856ad364e65' containing the type 'System.Web.Security.MembershipUser'. Add one to your project.
Code:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
Membership.CreateUser(r_user_name.Text, r_password.Text)
Label1.Text = "User created"
[code]....
I've tried adding the following to the web.config:Not sure if thats correct!! but i get an error message when I open the page:Parser Error Message: Could not load file or assembly 'System.Web.Security.MembershipUser, System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e65' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
View 1 Replies
Mar 3, 2009
How to I reference my own .dll after i add it to the GAC? I successfully added my .dll to the GAC, have seen it in the list. However, when i try to reference in Visual Studios..... i am lost.
View 2 Replies
Oct 27, 2009
im building an application i started it in VB 2008 and i upgraded to VB 2010
then i made some mods and tryed to run the application and then
i get this error
Error2Reference required to assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' containing the type 'System.Windows.Forms.Form'. Add one to your project.C:UsersAdminDesktop
[Code].....
View 1 Replies
Aug 31, 2010
Currently, when I want to use Microsoft Chart Controls on a website, I need to add the following onto every aspx page where I want to use it:
[Code]...
Is there any way to move this to the web.config file, so that I don't have to put it on every page ?
View 2 Replies
Jul 20, 2010
We have upgraded our project from Visual Studio 2008 to Visual Studio 2010 without any issues until now. Our project contains a folder call Libraries which contains different versions of Oracle ODP.NET DLL's as well as different versions of Telerik DLL's. Our project contains references to one of the versions of each. The problem is once we remove the reference and re-add it by browsing to the new version, again inside the Libraries folder inside the project, it adds the reference, but to the same version we just removed. We can even copy the DLL to our desktop, remove the reference and add to the new one on our desktop and it still will point to the Libraries folder version???. The only we we can actual change the reference to the new DLL is by manually changing the path in the .vbproj file, which is obviously not going to work for us. The same behaviour worked perfectly in VS 2008. We switch our references quite often, when new versions come out, but also far more often to QA different versions of ODP.NET and Telerik Control DLL's, so manually editing the .vbproj file is becoming quickly cumbersome. If I browse to a specific version at a specific path, Visual Studio should ALWAYS do what I'm telling it to do..
I did some seaching and came across a few other people with the same issue. This better not be as designed and if it's a bug, which I believe it to be, when will it be fixed?[URL]..
View 14 Replies
Apr 14, 2011
I have Visual Studio 2010 and a VB Project that had a reference to Microsoft.Interop.Excel 12.0. Well recently I changed the reference version to 14.0. That was actually a mistake and now I need to bump it back down to version 12.0. However I get this error in my project now...
Project 'MyProject' requires a reference to version '14.0.0.0' of assembly 'Microsoft.Office.Interop.Excel', but references version '12.0.0.0'
of assembly 'Microsoft.Office.Interop.Excel'.
I tried removing references and adding the com object to, but no avail.
View 1 Replies
Jan 18, 2011
my proble is the following: I have a class MyClass and another class Modifier, which has a method ModifyMyClass(ByRef mc as MyClass) that receives a MyClass instance as ByRef parameter to modify it. A smell of the code is:
[Code]...
View 4 Replies
Apr 11, 2009
I have a 'property management class' that contains several functions and properties. I have several other classes that use the 'management class' as a property to derive the value of several of its other properties.Is there a way for me to reference the outer class from the 'management class' functions without having to pass it as a parameter? I ask because several different classes can have this 'management class' as a property and am having a hard time typing the parameter.
View 7 Replies
Aug 19, 2009
I have a class in which some of the fields are also classes.I can put values in the "normal" properties, but in the others when o try to assign values it gives the: "Object reference not set to an instance of an object"But the code compiles fine.
dados_Defenicao = New ServiceReference1.draftClaimEntryDefinition
dados_Defenicao.arCode = "123"
dados_Defenicao.claimMarket.warrantyType = "w" - Here it gives the error
How can i fix this ?
View 6 Replies
Aug 19, 2009
I have a class in which some of the fields are also classes.
I can put values in the "normal" properties, but in the others when o try to assign values it gives the: "Object reference not set to an instance of an object"
But the code compiles fine.
dados_Defenicao = New ServiceReference1.draftClaimEntryDefinition
dados_Defenicao.arCode = "123"
dados_Defenicao.claimMarket.warrantyType = "w" - Here it gives the error
View 4 Replies
Dec 10, 2010
If we are within the derived class then ofcource we can use MyBase keyword to access base class's object reference . That's fine , how can we take that base class's object reference outside that derived class's definition.My following code will explain what i want . Actually that is giving error right now, but it is explaining my requirement .
Public Class Base
Public x As String
End Class
[code]....
Actually there is error in ReadOnly Property BaseReference's Getter . Error is "Error 1 'MyBase' must be followed by '.' and an identifier. " how can i get base class object reference in Main method ?
View 1 Replies
Jan 2, 2010
I have a Parent Class Called Fuselage that containsfour child classes called Forebody, CenterBody, AftBody, and CrossSection. CrossSection classcontains objects common to Forebody, CenterBody, and Aftbody (example: width). How do I access thewidth property in CrossSection from within the classForebody?
Public Class Fuselage
Dim Forebody As ClsSection
Dim Centerbody As ClsSection
[code].....
View 6 Replies
Jul 26, 2010
I am a java developer that inherited a vb.net web application. This app relies on a VB class assembly that builds in to a dll. I have made some changes to this class assembly but I cant seem to get the vb.net app to pick up the changes. I thought that using regsvr32.exe or regasm.exe would do the trick but after reading a bit more they don't appear to do what I need.
When vb.net uses code such as this import where is it getting the reference to "MyClassName"?
<% Import namespace="MyClassName" %>
View 2 Replies
Aug 20, 2010
Ok so here's the story. I have an array of Assemblies which are initiated by [Assembly].LoadFrom() that load a number of DLL's. Upon initialising, a method called InitMain (from the DLL!) is called, which sets a number of variables outside of this method, like here:
Public Class Example
Dim C As Integer = 0
Public Sub InitMain()
C = 50
End Sub
[Code]...
If I call the method Test using that same array of Assemblies somewhere later in the main application (like pressing a button or something to trigger it), it will pop up a messagebox with that says: "C = 0"Why is this? Is it fixable without any odd workarounds?
View 2 Replies
May 20, 2010
I need to create a new instance of a class that needs a member of the calling class. But i can't pass a reference to the calling class through the constructor.The solution i am looking for is something like this:
Public Class ChildClass
Public Sub New(args)
_MyMember = GetMemberFromCallingClass()
[code]....
I want this to work without having to manually pass any references or variables from the calling class to the new instance of ChildClass.
View 2 Replies