How To Add Class Library In Visual Studio 2010 C
Portable Class Libraries (PCLs) allow you to write code that can be targeted at a combination of .NET frameworks. You select the frameworks you want to target when creating a PCL project to gain assembly portability across those frameworks. You do lose some functionality, however -- the feature set available to your library is the intersection set of the features in the selected frameworks (see Figure 1). Nor are all classes in that intersection area necessarily available in a PCL.
how to add class library in visual studio 2010 c
Referencing Portable Applications While PCLs can't reference non-portable class libraries, other kinds of projects (those targeting a single framework) can reference PCLs, provided the PCL includes the framework that the original project is targeting. PCLs can also reference each other: Your PCL project can reference another PCL, provided that the target frameworks in the referenced library are a subset of your project's frameworks. If a PCL you want to reference targets a set of frameworks different from your project, you won't be allowed to add a reference to the PCL.
Yesterday was the first day of the Revit API training in Munich.As usual, I was able to learn something new.Frank Neuberg of MAX BÖGL assembled and tested the following summary of information sources related to using Visual Studio 2010 and its Express version for creating and debugging a Revit add-in.I've summarized some information sources to set up an integrated debugging process for class library projects together with Revit.exe (2011) in C# Visual Studio 2010 Express Edition:Currently available information on the web/blogs:Debugging using Express Editions (July 06, 2006 by Kean Walmsley)Debugging external application (September 03, 2009 by Mike Cvelide) Visual Studio 2010 and the .NET Framework (July 20, 2010 by Jeremy Tammik)Debugging with Visual Studio 2010 and RvtSamples (April 14, 2010 by Jeremy Tammik) Visual Studio 2010 and Revit API debugging issues (April 15, 2010 by Rod Howarth)Summary of changes to enable debugging class libraries with Revit.exe:A. Edit the Revit.exe.config file (normally located in the Revit Program directory).Add the following section (preferably at the end of the file): B. Edit your C# project file (like 'myCSProject.csproj') manually and add the last lines specifying the StartAction and StartProgram tags to each PropertyGroup for which you want to enable debugging with Revit.exe: bin\Debug\ false 285212672 false DEBUG;TRACE true 4096 false false false false 4 full prompt true Program C:\Program Files\Revit Architecture 2011\Program\Revit.exeC. Unfortunately the new entry for debugging with Revit.exe is not visible in the project property pallette > Tab: 'Debugging' within the C# IDE - EE, but it works anyway:
Before we start creating our awesome graphical applications in OpenGL technology, first, we have to adjust our programming environment to cooperate with this library. To begin, we have to have Microsoft Visual C++ 2010 Express installed (here is the link).
Portable Class Library, otherwise called PCL, comes with .NET framework 4.5 RC and a separate project template is available on Visual Studio 2012 RC. The portable class library can also be installed on top of Visual Studio 2010. It can be downloaded from here.
If you are developer working on applications targeting multiple platforms you might have to create duplicates of underlying class libraries targeting the specific platforms, even if they contain the same functionality or logics or algorithms. In .NET framework 4.5 RC, the Portable Class Library has been introduced to solve exactly that problem. By choosing the Portable Class Library template in Visual Studio 2012 RC you can create a single class library to hold the common business logic and share it across applications targeting different platforms like .Net Framework, Windows Phone, Metro style apps, Silverlight and Xbox. Fig 1.0 shows the PCL project template in Visual Studio 2012 RC.
How ca a single portable class library can be shared across multiple platforms? How will it be compatible? Here is the answer; when you create a Portable Class Library then Visual Studio will take care of importing only the supported set of base class libraries that are compatible with the selected platform versions. Even in the referenced base class libraries, only the supported methods or types will be exposed through intellisense. This set of libraries is wrapped under the project references in the solution explorer as .NET Portable Subset.
Crypto++ 5.6.4 and above provide a Visual Studio 2010 solution file with four projects. Crypto++ 5.6.3 and earlier provided a Visual Studio 2005 solution file with four projects. The four projects are Cryptlib, Cryptest, Cryptdll and Dlltest, and they are the same in VS2005 and VS2010. Broadly speaking, Cryptlib is the library you will usually use. Cryptest is the driver to exercise Cryptlib. The DLL provides a FIPS 140-2 Validated library in Cryptdll. Dlltest is the DLL driver program.
All the projects use static linking against the C/C++ runtime (/MT or /MTd). Sometimes you need to change the runtime library to work with other class libraries, like MFC or Qt. MFC and Qt use dynamic C++ runtime linking (/MD or /MDd). See Dynamic C++ Runtime Linking below for information on the change.
At Visual Studio 2010, Microsoft made changes to the MSBuild engine and modified the way it handled project settings and dependencies. Additionally, the VCUpgrade does a rather poor job at migrating settings. Combined, the changes created a fair amount of trouble for Crypto++ and its users who attempt to upgrade. The especially troubling part to the project was the discomfort it was causing visually impaired users who needed VS2010 for its screen reader support.
If you use vs2010.zip with a downlevel version of the library, then you might find references to missing source files. For example, Crypto++ 5.6.3 will be missing ChaCha and BLAKE2, which were added for Crypto++ 5.6.4. If you experience missing referecnces, then simply delete the missing source files from the project.
In this configuration, you will set CRYPTOPP_IMPORTS to avoid duplicate symbols from both the DLL and static library. You will link to the import library at compile time (cryptopp.lib) for the FIPS approved algorithms. At runtime you will link to the DLL (cryptopp.dll). And for the missing classes, you will link to the static library at compile time (cryptlib.lib). All three of these are in the DLL_Output directory.
For C++ projects the usual solution is to delete (or rename) the .vs folder in the same folder as the solution. You lose your setup of currently open documents but nothing important. -the-auto-complete-intellisense-database-in-visual-studio
Note that currently, a few features rely on third-party code licensed under the LGPL: constrained_cg. Such features can be explicitly disabled by compiling with the EIGEN_MPL2_ONLY preprocessor symbol defined.Furthermore, Eigen provides interface classes for various third-party libraries (usually recognizable by the header name). Of course you have to mind the license of the so-included library when using them.
The error usually occurs at runtime because the web site/application is running in a different platform than the Crystal SDK you deployed. Eg. Either your application pool is set to 32 bit and you deployed the 64 bit version of Crystal Reports for VS 2010.or, your application pool is set to 64 bit and you deployed the 32 bit version of Crystal Reports for VS 2010.Also, is this a web site or a web application. We need to know if your site has a bin directory and the logic is compiled into a dll file. If so you need to be careful because that class library file can cause issues depending on the platform it targets.\",\"author\":\"username\":\"david.hilton\",\"displayName\":\"David Hilton\",\"groupIcons\":[\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":8065506,\"creationDate\":1295894507000,\"activeRevisionId\":9143703,\"lastActivity\":1295894507000,\"parentId\":8060786,\"originalParentId\":7989051,\"likeCount\":1,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"score\":1,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false}]},\"8079560\":\"rootParentId\":8079560,\"commentsCount\":3,\"comments\":[ -place] then have people vote it up. \\n \\nSAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads [original link is broken]\",\"author\":\"username\":\"david.hilton\",\"displayName\":\"David Hilton\",\"groupIcons\":[\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"marcel.hoogantink\",\"displayName\":\"L Ecram\",\"groupIcons\":[],\"suspended\":false,\"isCurrentUser\":false,\"id\":8079577,\"creationDate\":1296241107000,\"activeRevisionId\":9154970,\"lastActivity\":1296241107000,\"parentId\":8079568,\"originalParentId\":7989051,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false],\"8187935\":\"rootParentId\":8187935,\"commentsCount\":5,\"comments\":[\"body\":\"the big problem is that all mighty SAP decided to create it's own strong name to the log4net.dll .\\n\\nCrystal loads the log4net into the GAC, and if you have a project that has it's own log4net, that you downloaded from apache's website you will face errors .\\nwhy ?\\nbecause in your project you have reference to \\nPublic key token is 1b44e1d426115821\\nwhich is the original log4net dll,\\n\\nbut during compilcation, VS2010 will take the log4net dll from the GAC , as it has the same version number !\\nbut in the gac, the stong name is\\n\\nPublic key token is 692fbea5521e1304\\n\\nand not you have a mismatch !!!!!\\n\\nif i remove crystal's version from the GAC things work nicely. but someone , somehow always installs it back into the GAC. and i even dont know from where that file comes from ! i've searched my entire computer !\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"ludek.uher\",\"displayName\":\"Ludek Uher\",\"groupIcons\":[\"name\":\"moderator\",\"title\":\"This user is an SAP Moderator\",\"priority\":20,\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"id\":8459315,\"creationDate\":1308740530000,\"activeRevisionId\":9456522,\"lastActivity\":1308740530000,\"parentId\":8191235,\"originalParentId\":7989051,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false],\"8021317\":\"rootParentId\":8021317,\"commentsCount\":1,\"comments\":[ ]\",\"author\":\"username\":\"david.hilton\",\"displayName\":\"David Hilton\",\"groupIcons\":[\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"david.hilton\",\"displayName\":\"David Hilton\",\"groupIcons\":[\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"id\":8021318,\"creationDate\":1294438986000,\"activeRevisionId\":9108365,\"lastActivity\":1294438986000,\"parentId\":8021317,\"originalParentId\":7989051,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false]}"); const simplifiedQuestionView = JSON.parse("true"); (function() window.pageContext = mergeDeep(pageContext, question: id: 7989051, plug: "log4netdll-and-other-errors-like-crystaldecisionsr", votes: 0, questionTitle: "log4net.dll and other errors like CrystalDecisions.ReportAppServer.*", isClosed: false, isLocked: false, isRedirected: false, redirectedFromTitle: "", redirectedFromId: "", closedStatusData: JSON.parse(""), userVoted: false, relations: JSON.parse("\"canClose\":false,\"canUnredirect\":false,\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"canReopen\":false,\"type\":\"question\",\"canVoteUpOrCancel\":false,\"canViewRevisions\":true,\"canUnlock\":false,\"reported\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canCancelReport\":false,\"canComment\":true,\"isCurrentUserAuthor\":false,\"canViewReports\":false"), isQuestionAccepted: true , childToViewInfo: id: "" , comments: JSON.parse("\"8060786\":\"rootParentId\":8060786,\"commentsCount\":1,\"comments\":[\"body\":\"The error usually occurs at runtime because the web site/application is running in a different platform than the Crystal SDK you deployed. Eg. Either your application pool is set to 32 bit and you deployed the 64 bit version of Crystal Reports for VS 2010.or, your application pool is set to 64 bit and you deployed the 32 bit version of Crystal Reports for VS 2010.Also, is this a web site or a web application. We need to know if your site has a bin directory and the logic is compiled into a dll file. If so you need to be careful because that class library file can cause issues depending on the platform it targets.\",\"author\":\"username\":\"david.hilton\",\"displayName\":\"David Hilton\",\"groupIcons\":[\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":8065506,\"creationDate\":1295894507000,\"activeRevisionId\":9143703,\"lastActivity\":1295894507000,\"parentId\":8060786,\"originalParentId\":7989051,\"likeCount\":1,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"score\":1,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false],\"8079560\":\"rootParentId\":8079560,\"commentsCount\":3,\"comments\":[ -place] then have people vote it up. \\n \\nSAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads [original link is broken]\",\"author\":\"username\":\"david.hilton\",\"displayName\":\"David Hilton\",\"groupIcons\":[\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"marcel.hoogantink\",\"displayName\":\"L Ecram\",\"groupIcons\":[],\"suspended\":false,\"isCurrentUser\":false,\"id\":8079577,\"creationDate\":1296241107000,\"activeRevisionId\":9154970,\"lastActivity\":1296241107000,\"parentId\":8079568,\"originalParentId\":7989051,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false],\"8187935\":\"rootParentId\":8187935,\"commentsCount\":5,\"comments\":[\"body\":\"the big problem is that all mighty SAP decided to create it's own strong name to the log4net.dll .\\n\\nCrystal loads the log4net into the GAC, and if you have a project that has it's own log4net, that you downloaded from apache's website you will face errors .\\nwhy ?\\nbecause in your project you have reference to \\nPublic key token is 1b44e1d426115821\\nwhich is the original log4net dll,\\n\\nbut during compilcation, VS2010 will take the log4net dll from the GAC , as it has the same version number !\\nbut in the gac, the stong name is\\n\\nPublic key token is 692fbea5521e1304\\n\\nand not you have a mismatch !!!!!\\n\\nif i remove crystal's version from the GAC things work nicely. but someone , somehow always installs it back into the GAC. and i even dont know from where that file comes from ! i've searched my entire computer !\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"ludek.uher\",\"displayName\":\"Ludek Uher\",\"groupIcons\":[\"name\":\"moderator\",\"title\":\"This user is an SAP Moderator\",\"priority\":20,\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"id\":8459315,\"creationDate\":1308740530000,\"activeRevisionId\":9456522,\"lastActivity\":1308740530000,\"parentId\":8191235,\"originalParentId\":7989051,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false],\"8021317\":\"rootParentId\":8021317,\"commentsCount\":1,\"comments\":[ ]\",\"author\":\"username\":\"david.hilton\",\"displayName\":\"David Hilton\",\"groupIcons\":[\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"parentAuthor\":\"username\":\"david.hilton\",\"displayName\":\"David Hilton\",\"groupIcons\":[\"name\":\"employee\",\"title\":\"This user is an SAP Employee\",\"priority\":21],\"suspended\":false,\"isCurrentUser\":false,\"id\":8021318,\"creationDate\":1294438986000,\"activeRevisionId\":9108365,\"lastActivity\":1294438986000,\"parentId\":8021317,\"originalParentId\":7989051,\"likeCount\":0,\"visibility\":\"full\",\"depth\":0,\"attachments\":[],\"canVoteUpOrCancel\":false,\"relations\":\"canReport\":false,\"visibility\":\"full\",\"canEdit\":false,\"canUseDelete\":false,\"isLiked\":false,\"type\":\"comment\",\"canVoteUpOrCancel\":false,\"canConvertToAnswer\":false,\"canBeModerated\":false,\"canViewRevisions\":false,\"showInReply\":false,\"reported\":false,\"canCancelReport\":false,\"canDelete\":false,\"canVoteDownOrCancel\":false,\"canComment\":false,\"canViewReports\":false,\"isCurrentUserAuthor\":false,\"liked\":false,\"moderatorComment\":false]"), answerPager: answersCount: 4, page: 1, pageSize: 10, pageCount: 1, sort: "votes" , answers: JSON.parse("[\"body\":\"While working on another case I've found some other causes of errors like log4net and Could not load file or assembly YourLibrary or one of its dependencies. An attempt was made to load a program with an incorrect format \\n \\nThese issues occur when you are building your project that contains class libraries (with Crystal Reports references 13.0.99) you've included from other sources. When your project is set to target the x86 platform there are no issues. Everything goes wrong when you are targetting x64, or in the case of a web site project, you get the above Could not load file or assembly 'YourLibrary' ... \\n \\nWhat I found is that this is linked to how Visual Studio builds your solution. Because Visual Studio is a 32 bit app it uses the 32 bit version of MSBuild. This is the cause of the errors. If you are targetting the x64, or have a web site that is consuming a 64 bit library file, you need to use the 64 bit version of MSBuild. This needs to be done at a command line level though, and it takes you out of using the Visual Studio IDE. \\n \\nThere is a great blog from on the MSDN site that goes into great detail on this issue, \\n[Building on Cross targeting scenarios and 64-bit MSBuild,\"body\":\"Hi Guys \\n \\nI'm also had the same issue, please try to help me. \\n \\nI'm developing a web application using Visual Studio.NET 2010 (.net 4), my application uses Crystal Reports for VS 2010. \\n \\nEverything is fine on my development machine "as usual", the drama starts when i deploy my site to my web server "asp.net discount", i'm geeing the error below. \\n \\n \\n \\n \\n \\n \\nI tried to fix it, by deploying the crystal reports dll files, i also deployed the log4net.dll file within my Bin folder, but nothing changed. \\n \\nAny ideas \\nThanks in advance. \\n \\nAbdullah EL-Gendy \\n \\nEdited by: aelgendy on Jan 22, 2011 12:10 AM\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":8060786,\"posted\":1295651298000,\"votes\":0,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[],\"body\":\"Got the same error, 'cannot find log4net.dll', with a winforms application, running on a win7/64bit desktop. \\n \\nAfter creating an MSI with the CRRuntime_13_0.msm the error shows up. \\n \\nSo I installed the CRRuntime_64bit_13_0.msi package too, and it all worked. \\n \\nShouldn't the mergemodule package contain all the files needed on a client machine (not being a development machine)? \\n \\nWhen downloading the CRRuntime_64bit_13_0.msi, from =56787567, you download a CRforVS_redist_install_64bit_13_0.zip which suggest its for an environment where VS2010 is installed too. \\n \\nWhere can I find a single mergemodule package CRforVS_redist_install_64bit_13_0.zip containg all the required files? \\n \\nregards, \\n \\nMarcel\",\"author\":\"username\":\"marcel.hoogantink\",\"displayName\":\"L Ecram\",\"groupIcons\":[],\"suspended\":false,\"isCurrentUser\":false,\"id\":8079560,\"posted\":1296240275000,\"votes\":0,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[],\"body\":\"Does the Crystal lib require a certain version of log4net? I noticed that after I installed the free Crystal for VS 2010 that I've got a log4net.dll in there with the same public key token as your Crystal DLLs (which seems odd--did you guys do your own log4net build?) and that clients can't run my app, even though they have version 1.2.10 of log4net, unless they have log4net with your public key token.\\n\\nWe build with this:\\n\\n\\n lib\\\\log4net.dll\\n \\n\\nThe user gets this error:\\n\\nSystem.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'CrystalDecisions.ReportSource.ReportSourceFactory' threw an exception. ---> System.TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception. ---> System.IO.FileLoadException: 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)\\nFile name: 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'\\n at CrystalDecisions.Shared.SharedUtils..cctor()\",\"author\":\"username\":\"former.member\",\"displayName\":\"Former Member\",\"groupIcons\":[],\"suspended\":true,\"isCurrentUser\":false,\"id\":8187935,\"posted\":1299704074000,\"votes\":0,\"isAccepted\":false,\"isLocked\":false,\"userVoted\":\"\",\"relations\":\"canCancelAccept\":false,\"canUnlock\":false,\"canUseDelete\":false,\"canVoteDownOrCancel\":false,\"canLock\":false,\"canAccept\":false,\"type\":\"answer\",\"canVoteUpOrCancel\":false,\"isCurrentUserAuthor\":false,\"attachments\":[]]"), answerForm: formAction: "/answers/7989051/post.json", textareaName: "body", textareaErrors: "", isAttachmentsEnabled: true, answerEditorialGuideline: title: "Before answering", content: "You should only submit an answer when you are proposing a solution to the poster\'s problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that your answer complies with our Rules of Engagement.", links: [ title: "Rules of Engagement", href: " -of-engagement.html", ] , answerMinBodyLength: '10', answerMaxBodyLength: '20000' , currentUser: sapInternalId: '', permissions: canVoteUpOrCancel: false, canVoteDownOrCancel: false, canModerate: false, , isVotedUp: false, isVotedDown: false , alerts: alertModeratorMinLength : "It should be given a proper explanation about why the content is inappropriate.", alertModeratorMinLengthValue : "10", alreadyReportedMessage : "You already have an active moderator alert for this content." , url: profileApiBaseUrl: ' -api.services.sap.com', followUnfollowQuestion: '/sap/nodeSubscription.json', isFollowingQuestion: '/sap/isFollowingNode.json', vote: voteUp: '/commands/0/voteup.json', voteDown: '/commands/0/votedown.json', cancelVote: '/commands/0/cancelvote.json' , rss: answers: '/feed/7989051/answers.rss', answersAndComments: '/feed/7989051/comments-and-answers.rss' , authorizeUploadContext: type: 'answer' , atMention: userSearchServiceUrl: ' ', currentUserName: '', useNewUSSCORS: true, atMentionDelayMs: 100, showMentionInRedactor: true , attachmentSettings: commentMaxAttachments: '2', answerMaxAttachments: '10', commentMaxAttachmentSizeBytes: '1048576', answerMaxAttachmentSizeBytes: '1048576', commentAttachmentsSizeBytesTotal: '2097152', answerAttachmentsSizeBytesTotal: '10485760' , editor: editorClipboardUploadEnabled: true ) )(); Home
Community
Ask a Question
Write a Blog Post
Login / Sign-up Search Questions and Answers 0 David Hilton Dec 24, 2010 at 08:07 PM log4net.dll and other errors like CrystalDecisions.ReportAppServer.* 5655 Views Follow RSS Feed There have been a number of posts on the forums lately about problems with log4net.dll and other files like CrystalDecisions.ReportAppServer.CommonObjectModel. These have all been tied together with ClickOnce deployments, or adding the Crystal Reports for Visual Studio 2010 runtime as a prerequisite. 2ff7e9595c
Comments