This question already has answers here:
Where does error CS0433 "Type 'X' already exists in both A.dll and B.dll " come from?
(26 answers)
Closed 8 years ago.
I have "Search" User Control.
When I Build My solution I get This Error :
Error: error CS0433: The type 'UserControl_Search' exists in both '~\AppData\Local\Temp\Temporary ASP.NET Files\fssweb\40592537\9aa35db9\App_Web_xuubpve2.dll' and '~\AppData\Local\Temp\Temporary ASP.NET Files\fssweb\40592537\9aa35db9\App_Web_wrtemu0v.dll'
can any people help me?
Thanks.
Delete the temporary files from the location specified in the error
1)AppData\Local\Temp\Temporary ASP.NET Files\fssweb\40592537\9aa35db9\App_Web_xuubpve2.dll
2)AppData\Local\Temp\Temporary ASP.NET Files\fssweb\40592537\9aa35db9\App_Web_wrtemu0v.dll
Build the solution and run it again.
I found What maybe causes that, I have two UserControls:
Search.ascx
NewSearch.ascx
In code behind they have the same names:
public partial class UserControl_Search : System.Web.UI.UserControl
When I rename that in NewSearch.ascx to:
public partial class UserControl_NewSearch : System.Web.UI.UserControl
This problem resolved!
Related
This question already has answers here:
Linker Trouble: How to determine where a "/DEFAULTLIB" is coming from
(3 answers)
Closed 1 year ago.
I'm in the process of updating an older Hololens project to the latest version of Visual Studio, the latest Target Platform, and a newer version of C++. We haven't done a build of this project in over a year, so we've also had many changes to our codebase (which is shared with our desktop version, so we are able to use a lot more libs than we can in Hololens).
I'm currently getting this error when compiling:
LINK: fatal error LNK1104: cannot open file 'comsuppwd.lib'
Being a Hololens app, the comsuppw library isn't available. Is there a way to see what is causing this library to be included? I'm trying to avoid having to manually go through a years worth of changelists to find what is causing this library to be linked.
I've used dumpbin/undname to get a list of all of the public symbols in comsuppw.lib, and done a search for any we may have used (and found nothing). I've also turned on verbose linking, but didn't see anything helpful.
I was able to track down the offending class by using dumpbin on all of the .obj files, using this command:
for /R %1 in (*.obj) do #dumpbin /directives /section:.drectve "%1" > "%1".directives.txt
Found here
I am using the Standalone SDK from ZKTEco for a fingerprint scanner. I need to add some custom functionality.
I've downloaded the SDK along with the Demo project. Now when I try to build the Demo project, I get the following error
"Severity Code Description Project File Line Suppression State
Error CS1061 'CZKEM' does not contain a definition for 'SetUserValidDate'
and no accessible extension method 'SetUserValidDate' accepting a first
argument of type 'CZKEM' could be found (are you missing a using directive
or an assembly reference?)"
I have referenced the zkemkeeper.dll file in my project. I'm using VB 2017 on Windows 10. I've tried to look for Embed Interop Types property but I cannot find it in the properties ofzkemkeeper
How can I solve this issue? Any help would be appreciated.
Thanks
I order to make any project referencing the zkemkeeper compile, you need to register it in the windows system.
You should have received a bat file among the dll files called "Register_SDK" as shown in . This is used to register the zkemkeeper in windows. If not, then you must register it manually.
Please, read these posts:
Post 1
Post 2
There is also a starting guide for newbies already written by another member of this community, it´s written in c#.
Best regards.
This question already has answers here:
Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic
(3 answers)
Closed 8 years ago.
I am working on an VB6 application on Windows 7. I have a statement in my project that states:
Set Dbse = OpenDatabase(database name)
Set ds1 = Dbse.CreateDynaset("query here")
But when I am trying to create an exe for the project, I am getting the below error:
"Function or interface marked as restricted,or the function uses an
autoamtion type not supported in visual basic".
Could you please suggest me what to be done to resolve this compile error.
Go into Project -> References.
Remove all of the references that you have to any DAO items (uncheck all items).
Add a reference to "Microsoft DAO 2.5/3.51 Compatibility Library".
I am refering to the "Validation with Data Annotations tutorial" here http://www.asp.net/mvc/tutorials/older-versions/models-(data)/validation-with-the-data-annotation-validators-cs for my database first MVC3 project. I downloaded the DataAnnotationsModelBinder project but having difficulty building it. It throws following errors:
Error 1 'System.Web.Mvc.IValueProvider' does not contain a definition for 'DoesAnyKeyHavePrefix' and no extension method 'DoesAnyKeyHavePrefix' accepting a first argument of type 'System.Web.Mvc.IValueProvider' could be found (are you missing a using directive or an assembly reference?) C:\XYZ\DataAnnotationsModelBinder\src\DataAnnotationsModelBinder.cs 47 17 Microsoft.Web.Mvc.DataAnnotations
Error 2 Metadata file 'C:\XYZ\DataAnnotationsModelBinder\src\bin\Debug\Microsoft.Web.Mvc.DataAnnotations.dll' could not be found Microsoft.Web.Mvc.DataAnnotations.Tests
Am I missing anything? I tried using VS2008 as well as VS 2010.
Please help.
I'm assuming that you have some missing references, so you need to include the missing references in the project.
You can do this by right clicking the references folder and add them manually. (see image)
Refrences - image
You should not use the DataAnnotationsModelBinder with MVC3. The DefaultModelBinder class already contains all of the logic that was present in the DataAnnotationsModelBinder sample you have linked to.
You probably need to add a reference to System.Web.Mvc 1.0 instead of what you're got at the moment.
I'm trying to add the following to my ASP.Net solution. I installed it using the nuget package "Install-Package Combres.Mvc"
so far I'm not having the best luck with it as I keep getting the following error
'System.Web.Mvc.HtmlHelper' does not contain a definition for 'Combres' and no extension method 'Combres' accepting a first argument of type 'System.Web.Mvc.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)
I also followed the advice of this link... and got same error:/
I'd like to make use of some compression & combination tool/framework so I'm hoping someone has any experience with this
I scrapped the whole combress/casette route after a few failed attempts. I read up a bit and saw that Asp.Net MVC 4 supports bundles/combining & compressing natievly. Which worked quite well for me.
Do you have
<%# Import Namespace="Combres" %>
On the top of the page to include the Combres namespace?
For more information (and the Razor syntax) you can also look at: http://combres.codeplex.com/wikipage?title=5-Minute%20Quick%20Start&referringTitle=Home