.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Cannot build resx file when compiling for 64-bit

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :.NET Framework
 
I have a VS 2008 .NET build that failes when compiling for x64.  Works fine for x86.  It fails building a resx file.I know what the problem is...the resx file references one of the 64-bit assemblies in the build which is not compatible with vs2008 which is inherently 32-bit.I don't know how to fix it.Here is the error... D:\Development\External\Sources\DevExpress\9.3_VS8\DevExpress.XtraLayout\DevExpress.XtraLayout\LayoutConverter\ConvertToStandardLayoutForm.resx(169,5): error MSB3103: Invalid Resx file. Could not load file or assembly 'DevExpress.Utils.v9.3, Version=9.3.2.0, Culture=neutral, PublicKeyToken=ad0fd1e58894c42d' or one of its dependencies. An attempt was made to load a program with an incorrect format. Line 169, position 5. Here is the entry in the resx file which is causing the problem... <data name="imageCollection1.ImageStream" type="DevExpress.Utils.ImageCollectionStreamer, DevExpress.Utils.v9.3" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> AAEAAAD/////AQAAAAAAAAAMAg... </value> </data> DevExpress.Utils.v9.3 is a 64 bit reference in the project.Note:  I cannot use AnyCPU or x86.  I need a version of the DLL targeted to 64-bit for reasons for have to do with interoperability with 64-bit unmanaged code.Regards,Bob Rundle


View Complete Post


More Related Resource Links

Build an Easy Maintenance Intranet Site: Using Office Docs, File System Object, and OLE Structured S

  

If you've ever needed to build an easy-to-maintain intranet site, here's a solution based on Microsoft Office documents. Many sites require constant updating of their HTML, but the use of Word documents can simplify the process. This article details the construction of a human resources site that exploits the File System Object (FSO), OLE Structured Storage, and ActiveX capabilities of Word documents. This allows the HR staff to copy their revised or newly created Word files to the site, dynamically generate a list of links to their files, and free IS from the constant recoding of HR updates into new HTML pages.

Josef Finsel

MSDN Magazine March 2000


Build xml file from gridview values on button click

  
We are looking to add GoogleMaps to our application. With that said we are going to be using the geocoding api to pass in the lat and long values to pin point locations on the the map. Reading thru the documentation we can pass in the values via XML, so we would like to see how we can take the lat and long values from our gridview and pass that to the API if and when somone clicks on the button to show the map.. The process will work like so, you arrive at the search page, you complete a search, in most if not all cases, you will always get multiple results presented in a gridview. If you should to view them all on the map, you click button and it needs to map out each location on the map. So is there anyway to pull from the gridview the lat, long and description to pass into the API?   Any links to sites that i can review would be great. thanks. 

How to manually set which localization file (resx) to load up depending on user

  
Hi,I want to use localization as user base and not language base.  I would like to name my resx to default.aspx.ABC where ABC is the user's name.How do i manually specify which resx file the page should load up?  Thanks

C# resource file(.resx) how to append values

  
hi, using resx writer and addresource method, the values are being over written in an existing resource(.resx) file. Now, how to append to this file??  

How to build an exe file over 100 MB?

  

Hello,

I'm building a wpf application on Windows 7 and Visual Studio 2008, in this application I have 2 wmv files (100MB + 200MB), and when I press F5 to build then there's error appear: Unexpected error writing metadata to file 'D:\Project.exe' -- 'Not enough storage is available to complete this operation'

And I do some research base on: http://social.msdn.microsoft.com/forums/en-US/msbuild/thread/059d2947-fea2-492f-a734-1b4c774408ce/ but I cannot change the result, so how can I solve this problem, thank you in advance.

Su Le


Why Microsoft Ajax Minifier dosen't minfi the file when used with team build 2010?

  

Hi,

I just used the wonderful tool Microsoft Ajax Minifier and it's working very well when I build my MVC application on my machine but when I check-in in source control and started build by the Team Build 2010 it doesn't create the min files, for sure I can't put the mini files inside the source control as the recommendation from the Microsoft Ajax Minifier because it's like the dll it's generated every time you build your application so no need to put it in source control beside it can't be because you  will need always to check-out this file to build and this will prevent other from build using the team build, so what I need to do to make generate the mini file with team build 2010????


Send SQL Input file using Build Process Template

  

Hi. I think the title pretty explains the problem.

Is there any activities I can use to send my input script into a SQL server? (The script only contains INSERT INFO Header() VALUES () )

If not, could anyone give me any hints or directions to start on how to make SQL custom activity. (NOT how to create custom activity in general).

 

 

Thank you for any replies!


Resetting properties in web deployment project based on custom build config file

  

I'm trying to create a general build environment for multiple projects that can take a some command line parameters and execute a build based on a custom config file.

The problem I am having is after I read in the config parameters with MSBuild.Community.Tasks XMLQuery, which works fine, I can't get aspnet_complier to see these parameters.

I keep getting "error MSB3462: Either MetabasePath or VirtualPath must be specified."

 Here is my project file:

<Project InitialTargets="PreMessage" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 
 
   <Target Name="PreMessage">
    <Message Text="Building..." />
   </Target>
 
 <PropertyGroup>
  <PreBuildEventDependsOn>
   PreBuild;
  </PreBuildEventDependsOn>
  <PrepareForBuildDependsOn>
   PreBuild;
  </PrepareForBuildDependsOn>
  <BuildDependsOn>
   PreBuild;
   $(BuildDependsOn)
  </BuildDependsOn>
 </PropertyGroup>
 
 <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tas

Read a .xml file from Resources.resx

  
I have added a .xml file to application resources. Now I want to access that xml file and fill dataset using that xml file in c#.net Can anyone help that how can i do this in C#.net
markand

Resx file assembly version error?

  

(using vb.net 2008)

I'm getting multiple compile errors that look like:

"Invalid Resx file. Could not load type Toolbox.Entities.Misc+BaseUnit, Toolbox, Version=4.0.0.5, Culture=neutral, PublicKeyToken=null which is used in the .RESX file.  Ensure that the necessary references have been added to your project. Line 147, position 5."

The type mentioned is a serializable class defined inside my project.  The Resx file is for a windows form that uses one of my custom controls, and this control has a property of the aforementioned serializable type.  The file does not appear to have any obvious structural errors, XML-wise.

The last new thing I started doing was manually updating the AssemblyVersion in the AssemblyInfo.vb file, to match the published ClickOnce version.  This is because I want the program to reference the correct version even in debug mode.

The Version mentioned in the error (4.0.0.5) does not match the the lastest assembly version.  So (and I am not an expert on these matters at all) I'm guessing that maybe the assembly version is referenced when serializing an object, and somehow the version is not getting updated when constructing the Resx files for the forms?

I have tried building and rebuilding and that has not solved anything.&nbs

File Splitter in .Net

  
I love to do utility programs in .Net. And this is one of them. As I was playing with JSplit (a free file splitter program), I wondered if I could do it in .Net. The framework supports file operations like reading files in bytes and creating them. It is indeed easy to do file operations in .Net Basics on File operations

Upload Multiple File using JQuery in asp.net

  
In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.

I have also explained how to check for file type, file maximum size limit using jQuery & also using server side validation code.

Use jQuery and ASP.NET AJAX to build a client side Repeater

  
By sending only data to the client, you can profoundly reduce the size of what you send and see a substantial increase in performance. You also allow yourself the ability to easily add features like light-weight sorting and paging on the client. This can not only improve your users' experience, but reduce server load and bandwidth requirements.

Use jQuery and ASP.NET AJAX to build a client side Repeater

  
By sending only data to the client, you can profoundly reduce the size of what you send and see a substantial increase in performance. You also allow yourself the ability to easily add features like light-weight sorting and paging on the client. This can not only improve your users' experience, but reduce server load and bandwidth requirements.

To that end, I'm going to walk you through these four steps to effectively implementing a client side Repeater, using ASP.NET AJAX and jQuery:

Creating Excel file from C#

  
I used below coding for create a excel sheet.I got from on web site.
In below coding there is no problem.Its create the excel file.If i run second time,its ask to overwrite the current excel file.If I said "Yes" then it ok ,but If I select cancel button,its generate the Error message.The exception is

Use jQuery and ASP.NET AJAX to build a client side Repeater

  
By sending only data to the client, you can profoundly reduce the size of what you send and see a substantial increase in performance. You also allow yourself the ability to easily add features like light-weight sorting and paging on the client. This can not only improve your users' experience, but reduce server load and bandwidth requirements.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend