Error:Could not load type from assembly Culture=neutral, PublicKeyToken=null' because it contains an object field at offset 75 that is incorrectly aligned or overlapped by a non-object field.
I got an error while I creating a structure.
[FieldOffset(72)]
[MarshalAs(UnmanagedType.ByValArray,SizeConst= 3)]
public int[] DC;
[FieldOffset(75)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
public float[] WIN;
[FieldOffset(83)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
public byte[] name;
[FieldOffset(103)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
public byte[] SET;
[FieldOffset(106)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
public byte[] ID;
Error as like this-->object field at offset 75 that is incorrectly aligned or overlapped by a non-object field. But here size constant is 3 so I think after 72 offset will be 75..If I change the offset to 76 it will works fine. I think reason is that
size of int is 4. After changing that code will be like this.
[FieldOffset(72)]
[MarshalAs(UnmanagedType.ByValArray,SizeConst= 3)]
public int[] DC;
[FieldOffset(76)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
public float[] WIN;
[FieldOffset(84)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
public byte[] name;
[FieldOffset(104)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
public byte[] SET;
[FieldOffset(107)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
public byte[] ID;
But at that time I got the error as object field at offset 107 that is incorrectly aligned or overlapped by a non-object field..Can anyone tell me what is the main reason behind this..
Thanks..
Hi,
Please firstly take a look at this documentation:
MarshalAsAttribute.SizeConst Field
Indicates the number of elements in the fixed-length array or the number of characters (not bytes) in a string to import
Change your code like this should work:
[FieldOffset(72)]
[MarshalAs(UnmanagedType.ByValArray,SizeConst= 3)]
public int[] DC;
[FieldOffset(84)]//72+4*3
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
public float[] WIN;
[FieldOffset(116)]//84+4*8
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
public byte[] name;
[FieldOffset(136)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
public byte[] SET;
[FieldOffset(139)]
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
public byte[] ID;
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
Hi,
I am using VS 2012 to create custom sequential workflows (2010 model). The workflows created in VS 2010 are working fine, but the workflow created in VS 2012 is throwing the error.
When the workflow is run, I am getting the below error:
Error:
Could not load file or assembly 'Microsoft.Activities, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Stack Trace: at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean
forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.Assembly.Load(AssemblyName assemblyRef) at System.Workflow.Activities.Rules.SimpleRunTimeTypeProvider.get_ReferencedAssemblies() at System.Workflow.Activities.Rules.RuleValidation.DetermineExtensionMethods()
at System.Workflow.Activities.Rules.RuleValidation.get_ExtensionMethods() at System.Workflow.Activities.Rules.RuleValidation.GetNamedMethods(List`1 targetTypes, String methodName, BindingFlags methodBindingFlags) at System.Workflow.Activities.Rules.RuleValidation.ResolveMethod(Type
targetType, String methodName, BindingFlags methodBindingFlags, List`1 argumentExprs, ValidationError& error) at System.Workflow.Activities.Rules.MethodInvokeExpression.Validate(CodeExpression expression, RuleValidation validation, Boolean isWritten) at
System.Workflow.Activities.Rules.RuleExpressionWalker.Validate(RuleValidation validation, CodeExpression expression, Boolean isWritten) at System.Workflow.Activities.Rules.RuleValidation.ValidateConditionExpression(CodeExpression expression) at System.Workflow.Activities.Rules.RuleExpressionCondition.Validate(RuleValidation
validation) at System.Workflow.Activities.Rules.RuleConditionReference.Evaluate(Activity activity, IServiceProvider provider) at System.Workflow.Activities.IfElseActivity.Execute(ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T
activity, ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.FaultAndCancellationHandlingFilter.Execute(Activity activity, ActivityExecutionContext executionContext) at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime
workflowCoreRuntime) at System.Workflow.Runtime.Scheduler.Run()
How to fix this?
ThanksHi,
The machine in which the workflow was created is different from the machine it is deployed.
Which dll should be available? Is the dll not part of SharePoint 2013?
Is this part of workflow Manager?
Thanks -
UI Customisation Error - Could not load type ~.PlumHandler from assembly portal50
Setting up the .Net development portal for UI customisation (5.0.1). I get a clean build but when I try to run the portal I get the following error.
Server Error in '/portal' Application. <HR noShadeIZE=1>
Configuration ErrorDescription: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not load type com.plumtree.portaluiinfrastructure.activityspace.PlumHandler from assembly portal50.Source Error:
Line 10: </sessionState>
Line 11: <httpHandlers>
Line 12: <add verb="*" path="*.pt"
Line 13: type="com.plumtree.portaluiinfrastructure.activityspace.PlumHandler,portal50" />
Line 14: </httpHandlers>
Source File: C:\Program Files\plumtree\ptportal\5.0\webapp\portal\web.config[b] Line: 12
<HR noShadeIZE=1>
Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288
Looking in class viewer there is no com.plumtree.portaluiinfrastructure.activityspace.PlumHandler class in the com.plumtree.portaluiinfrastructure.activityspace. Is there a class file missing ?Quick fix: Add the file "PlumHandler.cs" (found in the root of your portal webapp directory) to your portal50 project.
Proper fix: You should not be recompiling the entire UI and redeploying it, which is what you are doing (or you would not get that error).
You should create a new project, compile only the classes you want to modify into a new Assembly DLL file, add that new DLL to the webapp bin directory, and add that Assembly name to the CustomActivitySpaces.xml config file. (It should have the same format as ActivitySpaces.xml file.)
That way, you will not overwrite or delete standard portal classes, and you will also find it much easier to upgrade or apply patches in the future. -
I have created a ASP.NET web Site (not Web application), using Visual Studio 2012 Ultimate and "SQL Server Compact 4.0 Local Database" in my C# Code.
I am able to successfully compile & publish the website to another IIS Web Server, with Operating System Windows Server 2008 R2 Standard. I can even test, successfully, this website on the machine I developed it in.
I am publishing the website, from within Visual Studio, to a Network web server running IIS. To Publish I am using Build-> "Publish Web Site". In the Publish Profile, I am using Web Deploy Method. Even though I am using, successfully,
"SQL Server Compact 4.0 Local Database" in my website, the "settings" (in Publish Profile) does not detect any Databases in the project. Which may not be a problem.
When I try to bring up the web site on the IIS Web Server machine I get the following error..
Could not load file or assembly 'System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies .
As my project is a Web Site, not Web Site Application, I do not have a references node in the Solution Explorer. I think the System.Data.SqlServerCe.dll, which is type GAC in my project, is not getting published to the webserver, which is causing this Error.
Can I copy this .dll over manually ? If yes, where to put on the ISS Web Server ? I do not see any bin folder.
Any help to resolve this error will be appreciated.
diana4Hello.. I went ahead and created web application project and have gone past that error. But I have a new error now
System.Data.SqlServerCe.SqlCeException: Unable to load the native components of
SQL Server Compact corresponding to the ADO.NET provider of version 8876.
Install the correct version of SQL Server Compact. Refer to KB article 974247
for more details.
Compiling and Publishing (Deployment) are both successful
In my project, when adding reference to SQL Server Compact Edition , there are 2 possible locations to reference the DDL from:
C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Private
C:\Program Files\Microsoft SQL Server Compact Edition\v4.0\Desktop.
I have tried both. I get the same error as shown above.
Interestingly, in My WebConfig, I do not see any reference to System.Data.SqlServerCe.
Yet, the Website works when I click on Ctrl+F5
diana4 -
Trinidad error -- Could not load type properties in jdev11
Hi,
i am trying to run sample application "Build an End-to-End Web Application with ADF Faces and Oracle TopLink" at this url--
http://www.oracle.com/technology/obe/obe1013jdev/10131/10131_adftoplink/master-detail-edit_page_adf_toplink.htm
when i try to run .jspx in jdev11, it shows
Target URL -- http://127.0.0.1:8988/MDTopLink-UserInterface-context-root/deptEmp.jspx
Aug 23, 2007 7:50:55 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing JavaServer Faces implementation (1.2_03-b09) for context '/MDTopLink-UserInterface-context-root'
Aug 23, 2007 7:50:59 PM com.sun.faces.spi.InjectionProviderFactory createInstance
WARNING: JSF1033: Resource injection is DISABLED.
Aug 23, 2007 7:51:00 PM org.apache.myfaces.trinidad.component.UIXComponentBase _createType
SEVERE: Could not load type properties
java.lang.NullPointerException
at oracle.oc4j.loader.CompilingSearchPolicy.getClass(CompilingSearchPolicy.java:101)
at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1618)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1579)
at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1564)
at org.apache.myfaces.trinidad.component.UIXComponentBase._createType(UIXComponentBase.java:1409)
at org.apache.myfaces.trinidad.component.UIXComponentBase.<clinit>(UIXComponentBase.java:97)
at oracle.adfinternal.view.faces.renderkit.rich.DialogRenderer.<init>(DialogRenderer.java:34)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1095)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1168)
at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:566)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:454)
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1259)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:833)
at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:433)
at com.evermind.server.Application.getHttpApplication(Application.java:693)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2039)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:2022)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHttpApplication(HttpSite.java:1974)
at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:423)
at com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpRequestHandler.java:543)
at com.evermind.server.http.HttpRequestHandler.initRequest(HttpRequestHandler.java:345)
at com.evermind.server.http.HttpRequestHandler.serveOneRequestOpen(HttpRequestHandler.java:264)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:155)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:142)
at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:878)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Any suggestions to solve this ?
Thanks,
Tilak KumarHi,
in which step does this happen? Also,how closely did you follow the how-to. Did you select ADF Faces 10.1.3 library in the library manager?
Note that there exist a specific JDeveloper 11 forum as well:
JDeveloper and OC4J 11g Technology Preview
Frank -
This code work fine in server 2008, but get this error in server 2012. Do yo have any idea?
Need some more info as to where this is installed and how.
First thing to try would be to uninstall the solution and reinstall.
Check the GAC for your assembly as well as web.config.
If you don't see it in one of those places, something went wrong with the install and you'll need to start over.
Brandon James SharePoint Developer/Administrator -
Error could not load file or assembly netpont.licencing error'
Hi,
iam new to netpoint SDK, i have created table and i have two fields like accounid,accountame i try insert through netpoint.api.dll
pls herewith below i have attached follwing code. Please guide me
how to insert a sample data in sample database.
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using netpoint.classes;
using netpoint.api;
using netpoint.api.account;
using netpoint.api.common;
using netpoint.api.prospecting;
public partial class _Default : netpoint.classes.NPBasePage
protected void Page_Load(object sender, EventArgs e)
protected void Button1_Click(object sender, EventArgs e)
System.Data.Odbc.OdbcConnection cn;
System.Data.Odbc.OdbcCommand com;
string strsql;
NPBasePage bp = (NPBasePage)Page;
cn = new System.Data.Odbc.OdbcConnection("Driver={SQL Server};Server=btsserverdc02;Database=library;Uid=sa;Pwd=sa2000");
strsql = "insert into Users values('" + txtsample1.Text + "','" + txtsample2.Text + "' )";
cn.Open();
com = new System.Data.Odbc.OdbcCommand(strsql, cn);
com.ExecuteNonQuery();
cn.Close();Here's a sample page to display the logged in users' email address:
<%@ Import Namespace="netpoint.classes" %>
<%@ Import Namespace="netpoint.api" %>
<%@ Import Namespace="netpoint.api.account" %>
<%@ Page language="c#" MasterPageFile="~/masters/common.master" Inherits="netpoint.classes.NPBasePage" %>
< script runat="server"> //REMOVE SPACE BETWEEN < AND SCRIPT
private NPBasePage bp;
private NPUser u;
public void Page_Load(object sender, System.EventArgs e){
if (!base.IsPostBack)
this.bp = (NPBasePage) this.Page;
this.u = new NPUser(this.bp.UserID);
if (this.bp.UserID != "")
user.Text = u.Email;
else
user.Text = "Not logged in";
</script>
<asp:Content ContentPlaceHolderID="mainslot" runat="server" ID="main">
User Email: <asp:Label ID="user" runat="server" Text="Label" Width="97px"></asp:Label> </div>
</asp:Content> -
Hi,
I have a web site developed with vs 2010 (32-bit) and crystal report 13 (for sv 2010). It's working well i when crystal report installed in gac. I need to this app on a server WITHOUT crystal report installed. so I copied all required crystal assemblies into the bin folder and publish it. I always get following error message
Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I tried a lot of solutions in this forum, but none of them resolved my issue.
Please help!!
thanks,
MaxStick with x86 or x64, not Any CPU.
Don't include log4net manually
Look at these Kbases:
[1543854 - Error: Could not load file or assembly log4net|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343333333833353334%7D.do]
[1550854 - "Could not load file or assembly 'log4net' or one of its dependencies" Error when building Visual Studio 2010 solution utilizing the Crystal Reports .NET Runtime|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353330333833353334%7D.do]
[1544693 - Error BC30560: 'CrystalReportViewer' is ambiguous in the namespace 'CrystalDecisions.Web'|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343334333633393333%7D.do]
[1548993 - Server Error in '/' Application when running .NET Web Application using Crystal Reports for Visual Studio 2010|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533343338333933393333%7D.do]
- Ludek -
I am trying to use SQL Server 2008 Developer on Windows Server 2008. Whenever I try to connect to the server, I get this error: "Could not load file or assembly 'Microsoft.SqlServer.Diagnostics.STrace, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
or one of its dependencies. The system cannot find the file specified."
I found some info at
http://blogs.msdn.com/b/ashishme/archive/2009/08/15/could-not-load-file-or-assembly-microsoft-sqlserver-diagnostics-strace-version-10-0-0-0-culture-neutral-publickeytoken-89845dcd8080cc91-or-one-of-its-dependencies-the-system-cannot-find-the-file-specified.aspx,
but this didn't help me because it is not on my system, even after reinstalling both SQL Server and .NET Framework 4. I also saw a this page: http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/1115cd55-721d-4974-99b1-d142d1e6a927,
but this also didn't fix my problem.
What can I do, or where can I get the missing assembley?
Thanks in advance.You can get the missing assembly (Microsoft.SqlServer.Diagnostics.STrace.dll)
by installing the "Shared Features" of SQL Server 2008.
You could only install SQL Server 2008
R2 (any edition) on Windows 7.
Do not install more than 1 SQL Server 2008 R2 edition
into the same computer; Some of the components are not compatible.
E.g: BIDS from R2 Express Advance edition cannot
recognize Integration Service from R2 Enterprise Trial edition - it would throw above missing dll error. -
Could not load file or assembly AjaxToolkit error in SharePoint 2013 Visual Webpart
I wanted to use ajax controls in visual webpart for sharepoint 2013 so i followed steps.
1-I cut this snippet (see below) from <head></head> Section and paste in <body></body> Section for my master page since it's a requirement for SharePoint 2013 ajax functionality.
Snippet:
<!--MS:<SharePoint:AjaxDelta id="DeltaSPWebPartManager" runat="server">-->
<!--MS:<WebPartPages:SPWebPartManager runat="server">-->
<!--ME:</WebPartPages:SPWebPartManager>-->
<!--ME:</SharePoint:AjaxDelta>-->
2-downloaded a latest ajax tool kit and then added ajax toolkit dll from the toolkit library in my solution's bin-->debug folder
now add ajax entries in web.config in these sections
in <SafeControls>
<SafeControl Assembly="ajaxcontroltoolkit, Version=4.1.7.1213, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e, processorArchitecture=MSIL" Namespace="AjaxControlToolkit" TypeName="*" />
in <assemblies>
<add assembly="AjaxControlToolkit, Version=4.1.7.1213, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" />
in <controls>
<add tagPrefix="ajax" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=4.1.7.1213, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" />
finally registered ajax in visual web part as
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>
added following calender control
<asp:TextBox MaxLength="10" ID="txtToDate" runat="server" CssClass="FormTextBoxSmall"></asp:TextBox>
<asp:ImageButton ID="calReqDateTo" runat="server" ImageUrl="" />
<ajaxtoolkit:CalendarExtender id="CalendarExtender2" runat="server" targetcontrolid="txtToDate"
format="dd/MM/yyyy" popupbuttonid="calReqDateTo" />
reset iis and deployed my solution but when i deployed it throws error
"could not load file or assembly AjaxToolkit,Version=4.1.7.1213 "
please helpHi,
In this below thread they have discussed and resolved your issue.
http://social.technet.microsoft.com/Forums/sharepoint/en-US/60fa19fe-86a0-446b-b61f-11a82fe4287f/how-to-implement-ajax-toolkit-for-sharepoint2013?forum=sharepointdevelopment&prof=required
Please let us know if you need further details
Sekar - Our life is short, so help others to grow
Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
you see a reply being an answer to the question of the thread, click "Mark As Answer -
I have updraded my pocket pc application from VS 2005 to VS 2008 and had to convert all the sqlce* files to 35 from 30. all upgraded System.Data.SqlServerCe.dll to version 3.5.0.0 and runtime version as v2.0.50727. My Target Framwork is .NET Framework 2.0.
All the other sqlce* files are:
sqlceca35.dll
sqlcecompact35.dll
sqlceer35EN.dll
sqlceme35.dll
sqlceoledb35.dll
sqlceqp35.dll
sqlcese35.dll
The application is compiling without errors with the above dll's and creating its own webservice dll. the webservice dll is the copied to webserver which has the following dll's:
sqlceca30.dll
sqlcecompact30.dll
sqlceer30EN.dll
sqlceme30.dll
sqlceoledb30.dll
sqlceqp30.dll
sqlcese30.dll
and System.Data.SqlServerCe.dll as Assembly version 9.0.242.0 and file version as 3.0.5300.0.
but when i try to run my application using the emulator, i get the following error:
Could not load file or assembly 'System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from
HRESULT: 0x80131040)
i cannot upgrade the dlls on the webserver as other apps are using the 30 dlls and if i try to use 30 dlls in my application, my application fails to build on System.Data.SqlServerCe.dll with Assembly version 9.0.242.0 and file
version as 3.0.5300.0.
i have spent a few days now trying to resolve this issue and none of the solutions provided on web have helped me so far. the application does not have app.config, but adding the following code to web.config did not help either:
<
runtime>
<
assemblyBinding
xmlns="urn:schemas-microsoft-com:asm.v1">
<
dependentAssembly>
<
assemblyIdentity
name="System.Data.SqlServerCe"
publicKeyToken="89845DCD8080CC91"
culture="neutral"/>
<
bindingRedirect
oldVersion="0.0.0.0-9.0.242.0"
newVersion="3.5.0.0"/>
</
dependentAssembly>
</
assemblyBinding>
</
runtime>
any help will be highly appreciated.The binary 'System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' is only to be used for windows desktop projects. For devices the PublicKeyToken is different and you should use the device
binary "System.Data.SqlServerCe, Version=3.5.0.0, Culture=neutral, PublicKeyToken=3be235df1c8d2ad3" to compile your device project.
Also in addition to what Erik mentioned, please check if you have
Microsoft SQL Server Compact 3.5 for Windows Mobile installed on your machine.
-Tarun Ramsinghani
Please mark this post as answers if it solves your problem. -
Issue: We have upgraded TFS 2013 App Server and Build Servers from TFS 2013 RTM to TFS 2013 update 4. Everything looks good but we are receiving the below error:
Could not load file or assembly 'LibGit2Sharp, Version=0.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Kindly share your thoughts/inputs to resolve the issueHi John,
Hope there is nothing wrong with the update.
Yesterday, Our developers were troubleshooting the issue with the builds and found that
Build Activities dll has the reference of LibGit2Sharp.dll
version 01.12.0.3051.0. After TFS upgrade, Build activities does not have a reference for the new version of
LibGit2Sharp.dll [required] which has caused the issue in the build process.
Error: Could not load file or assembly 'LibGit2Sharp, Version=0.13.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Resolution: New version of LibGit2Sharp.dll
was added and referenced to Microsoft.TeamFoundation.Build.Activities.dll
which has resolved the issue with the builds.
I think this should be referenced somewhere regarding TFS Update 4 so that everyone will be able to spot the issue and fix the issue without any issues. -
Error starting Queue Viewer: Could not load file or assembly
Dear All,
I'm having problems with Queue Viewer from my Windows 7 client.
The error has started from the Exchange 2013 SP1 installation on the Exchange Server; from that time, if I open the Queue Viewer from the Toolbox, I receive this error:
Could not load file or assembly 'Microsoft.Exchange.Data.Transport, Version=15.0.843.0.Culture=neutral, Public............... The system cannot find the file specified.'
Now I'm trying to install the SP1 on my local Windows 7 client, but the prerequisite check fail because it not find the necessary role.
There is a way to fix this problem?
ThanksHi ,
Please check the below mentioned links as well as check can you able to open the exchange toolbox directly in exchange 2013 sp1 servers.
http://support.microsoft.com/kb/2938053/en-us
http://blog.messageconcept.com/en/exsbr-on-exchange-server-2013-sp1/
After you install the exchange 2013 sp1 you need to install the hotfix mentioned on that link .
Regards
S.Nithyanandham
Thanks S.Nithyanandham
Thanks.
The queue viewer runs correctly on the Exchange Server and we don't use Third-party transport agents. -
I tried the following:
.\Convert-WindowsImage.ps1
-SourcePath C:\Backups\All\Files\Windows8-ReleasePreview-64bit-English.iso -VHDFormat VHD -SizeBytes 52GB -VHDPath C:\AllSharedC\VPC\Win8.vhd
and got the following error in the log. .Net 4.0 full and WMF 3.0 RC are all installed.
Log
Windows PowerShell transcript start
Start time: 20120601112809
Username : Sys\User
Machine : Sys (Microsoft Windows NT 6.1.7601 Service Pack 1)
ERROR : Could not load file or assembly 'System.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
INFO : Log folder is C:\Users\Byron\AppData\Local\Temp\Convert-WindowsImage\942fccac-662a-4b2a-bfa9-6831892cad5c
INFO : Done.
Windows PowerShell transcript end
End time: 20120601112809
How can I solve this?Running on Win7 Ultimate with sp1. I'm sure I got all the prerequites installed.
System Requirements
Convert-WindowsImage can only be run on Windows 8 Consumer Preview, Windows 8 Release Preview, Windows Server 8 Beta, and Windows Server 2012 Release Candidate
operating systems.
Sorry man. As per above -
Could not load file or assembly error
Hi,
We have a SharePoint application and custom solution upgraded from MOSS 2007 to SP2010. In one of the services I get an error - Could not load file or assembly 'Microsoft.SharEPoint.Portal.SingleSignOn, Version 12.0.0.0 ..............' or one of its dependencies.
I chked Visual Studio solution and I do not see any explicit reference to this dll. I read on web that Microsoft.SharePoint.Portal.SingleSign should be replaced with reference to SecureStoreService for SP2010. However in my custom solution I do not
see any explicit ref to SingleSignOn...
Anybody has any inputs on what I am missing here...
Thanks.
-http://lrathi.blogspot.comDoes the custom solution make any changes to the web.config file and adds assembly references there?
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com
Maybe you are looking for
-
IPod restarts when syncing music
My iPod restarts when its in the middle of syncing music. Sometimes it just restarts and other times it says the required folder cannot be found. Can anyone help me?
-
sir i want to use cloudspace database where can i found it (free version) and also its driver and how can i use it with java application without odbc bridge plz help me by example of code this and also links where i can download this (free) thanks
-
Key command for "undo" not customizable anymore?
Hi! In the LP8 manual the key cmd. for "undo" is claimed to be exchangeable by the user, but it is not (dimmed). I used to set it to <cmd.-y) - similar to protools, because <cmd.-z> is a rel cripple grip. it still works with importing my old LP7 pref
-
[beryl] white screen after libx11/libgl-dri upgrade
hello archers after upgrading libx11 & libgl-dri this morning i suddenly have the white screen problem in beryl. the cube rotates and the cursor changes when howevering over windows, but the desktop is all white. the only thing that was changed in my
-
Hi @ all! I'm trying to create a small portal application consisting of more than one JSPDyn Page. At the moment I have: - 2 JSPDynPages - 2 .jsp files - 1 Bean for communication Under certain conditions (successful login) I want to call ano