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


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

SGEN error while building 64-bit application on a 32-bit machine

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ADO.Net
 

Hi,

I am using VS2010 to build a 64-bit application on a 32-bit machine with .Net framework 2.0 (32-bit) installed. When I compile the project, it gave the following error:

SGEN : error : An attempt was made to load an assembly with an incorrect format: C:\path\to\refered.dll

The 'refered.dll' exists in the folder and it is 64-bit. And I need the xmlSerializers.dll.

******

I guess it is because the sgen.exe is 32 bit on the machine and it cannot work on the 64bit dll.  Then I tried coping a 64-bit sgen.exe to the machine and let the VS call that 64bit one. But it does not work as "it is not a valid 32 bit application".

Could anyone help please? Thanks a lot




View Complete Post


More Related Resource Links

SGEN error while building 64-bit application on a 32-bit machine

  

Hi,

I am using VS2010 to build a 64-bit application on a 32-bit machine with .Net framework 2.0 (32-bit) installed. When I compile the project, it gave the following error:

SGEN : error : An attempt was made to load an assembly with an incorrect format: C:\path\to\refered.dll

The 'refered.dll' exists in the folder and it is 64-bit. And I need the xmlSerializers.dll.

******

I guess it is because the sgen.exe is 32 bit on the machine and it cannot work on the 64bit dll.  Then I tried coping a 64-bit sgen.exe to the machine and let the VS call that 64bit one. But it does not work as "it is not a valid 32 bit application".

Could anyone help please? Thanks a lot



build error on 'Building a Contact Management ASP.NET MVC Application (C#)'

  

I downloaded the code of http://www.asp.net/mvc/tutorials/iteration-7-add-ajax-functionality-cs

and I am gettin the below error on the below cs class;


Error 1 'System.Web.Mvc.MvcHtmlString' does not contain a definition for 'Replace' and no extension method 'Replace' accepting a first argument of type 'System.Web.Mvc.MvcHtmlString' could be found (are you missing a using directive or an assembly reference?)

Error 1 'System.Web.Mvc.MvcHtmlString' does not contain a definition for 'Replace' and no extension method 'Replace' accepting a first argument of type 'System.Web.Mvc.MvcHtmlString' could be found (are you missing a using directive or an assembly reference?) C:\Users\Toshiba\Videos\New\.Net Stuff\Desktop\Building a Contact Management ASP.NET MVC Application (C#) - add ajax\ContactManager_7_CS\ContactManager\ContactManager\Hel

Error while setting up application on Win7 using Visual Studio.NET 2003

  

Hi All,

Getting the below error while setting up application on Win 7 using visual studio.NET 2003.

Error:

cannot find the components for communiacting with the front page server extensions...

 

I understand by the error, i need to install Front page server extension, but not able to figure how to install using IIS 7.5.

I had XP machine with IIS 5.1, able to find the option.

 

Need your help in resolving this.

 

Thanks

Abdul 


Ho to fire the Application Error in asax from the code?

  

 Hi All,

I have this code in Global.asax but it not firing once an error occured:

 

void Application_Error(object sender, EventArgs e)

 

    {

        // Get the error details

        HttpException lastErrorWrapper = Server.GetLastError() as HttpException;

        Exception lastError = lastErrorWrapper;

        if (lastErrorWrapper.InnerException != null)

        lastError = lastErrorWrapper.InnerException;

        Server.ClearError();

        

        string lastErrorTypeName = lastError.GetType().ToString();

        string lastErrorMessage = lastError.Message;

        string lastErrorStackTrace = lastError.StackTrace;

        Response.Redirect("ErrorPage.aspx");

    }


Please help me so I can call this method from any page?

Thaxxxxxxxxxxxxx a lot,


 

 


Data Access: Building a Desktop To-Do Application with NHibernate

  

Building an NHibernate-based desktop application isn't any harder than building a web application, and in many cases NHibernate simplifies elements of session handling and concurrency.

Oren Eini

MSDN Magazine December 2009


.NET Internals: Tailor Your Application by Building a Custom Forms Designer with .NET

  

The design-time architecture of Windows Forms in the .NET Framework has made development much more flexible than it had been with MFC. With Windows Forms, you can drag one of your custom controls from the toolbox and drop it onto the Visual Studio design surface and even though Windows Forms knows nothing about the control, it's able to host it and let you manipulate its properties-not possible in MFC. In this article, the author discusses what's going on under the covers as you design your forms and then walks through the creation of a bare-bones forms designer.

Sayed Y. Hashimi

MSDN Magazine December 2004


Error Handling: Throwing Custom Exception Types from a Managed COM+ Server Application

  

Exception handling semantics in .NET are based on type, so you can create custom exceptions that have their own properties and methods. In .NET, exceptions are first-class citizens, and since they're the built-in error handling mechanism, all .NET-compliant languages must support exceptions. In addition, COM+ services are available to .NET code as Enterprise Services, so you can leverage exceptions in your Enterprise Services design.In this article the author describes custom exceptions, throwing exceptions across COM interop boundaries, and working with Enterprise Services.

Bob DeRemer

MSDN Magazine March 2004


AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. - Error being thrown while building asp.net si

  

Everytime I build my site in VS2010 Beta I recieve a few ajax errors before the site loads here they are in order as they pop out on the build; 

 

throw new Error("AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.");


 

And then Next this line is throwing an error, I have a watermark ajax field on the page that I created a long while ago;

Sys.registerComponent(Sys.Extended.UI.TextBoxWatermarkBehavior, { name: "watermark", parameters: [{name:"WatermarkText",type:"String"}, {name:"WatermarkCssClass",type:"String"}] });


 And then lastly;

 if (Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_IsWatermarked())


 

Even with these exceptions the page loads fin

Error in / Application after adding employee search in webpart

  

Hello everyone,

I am working on sharepoint 2007 and I was editing the webpart of the software and after adding the predefined employee search table, the server has crashed while trying to access the server remotely with the following error message:

Error in / Application

However, while trying to login locally I have no problem and can easily login.

What will be the course of action in fixing this error.

Also the site is complaining of an invalid certificate even after adding an exception.

Any help would be greatly appreciated.


Thank You,

Chris Stanko


Resume SharePoint Services Web Application and returns code 1387 error

  

Hello everyone! Newbie here. I would like to ask how to start the SharePoint Services Web Application on (WSS3.0,internal database, stanalone users) without getting error 1387 ?

I would love to provide more information regarding this issue but what I got is error 1387 displayed in the browser.

I look forward to seeing you guys feedback from your expertise angle.

 

 


Deploy a .NET application on the ttarget machine

  
Hi all, I have a project, is written in C#, using .Net framework 3.5. When I build a setup installer, capacity of the setup is about 10MB. Suppose,  I put the setup files in a web , and users download it to install in their PC. But i think, Users must be download .NET framework to run my project. In this case, users ought to download a .rar file , which have more 200MB over the internet. It is very heavy :( So, I want to find out the best solution to deploy .NEt application to the client 's PC. Anybody help me,please ? Thanks so much!  

Application just crashes without error

  
Hello, I'm using Visual Studio 2010 Premium edition on a Vista 32-bit machine. I've created a WPF application that has references to some old DLL's (older version of Framework). The application needs to load some stuff and then display a map. When I run the app in the debugger of VS2010 it always works!! But when I want to start the app as a normal .exe application, it crashes without an error. It writes a line in the Windows Log: It's an Application Error 1000   Application error Norma SEH Module.exe, version 2010.8.1.0, timestamp 0x4c737108, module error clr.dll, versie 4.0.30319.1, timestamp 0x4ba1d9ef, exceptioncode 0xc0000409, errormarge 0x002b5b8c, proces-id 0x121c, Application starttime 0x01cb435c02d99ad2.   In my app.config the frameworks are defined like: <startup useLegacyV2RuntimeActivationPolicy="true"> <requiredRuntime version="v1.0.3705" safemode="true"/> <supportedRuntime version="v4.0"/> <supportedRuntime version="v1.0.3705"/> </startup> The weirdest thing is that they app.exe does work 1 time and then it won't work until I create a rebuild with VS2010. Can someone please help me out here? I've searched the whole internet and can't find anything. Thanx in advance With best regards, Alex van der Lans Team Leader | Software Engineer URL: http://www.

how can we show error in our application when exception occur in webs service

  
how can we show error in our application when exception occur in webs service

Sporadic .NET application crash with "Fatal Execution Engine Error"

  
I have a .NET application that runs for several hours.  It is a multi-threaded app that does some calculations and saves the results to the database.   On one machine in particular, it has been crashing recently with the following exception recorded in the Event Log: .NET Runtime version 2.0.50727.4206 - Fatal Execution Engine Error (6C9D7B6E) (80131506) Faulting application AnalyzerConsole.exe, version 1.0.82.0, time stamp 0x4c76d28b, faulting module mscorwks.dll, version 2.0.50727.4206, time stamp 0x4bf4c6a7, exception code 0xc0000005, fault offset 0x0011627d, process id 0x%9, application start time 0x%10. Sometimes it runs for hours without crashing, but usually it will crash eventually. I have captured a dump, and this is the call stack: > ntdll.dll!_DbgBreakPoint@0()   mscorwks.dll!WatsonLastChance()  + 0x133 bytes   mscorwks.dll!EEPolicy::LogFatalError()  + 0x23c bytes   mscorwks.dll!EEPolicy::HandleFatalError()  + 0x47 bytes   mscorwks.dll!CLRVectoredExceptionHandlerPhase3()  + 0x10dae2 bytes   mscorwks.dll!CLRVectoredExceptionHandlerPhase2()  + 0x20 bytes   mscorwks.dll!CLRVectoredExceptionHandler()  + 0xb7 bytes   mscorwks.dll!CPFH_RealFirstPassHandler()  + 0x8ac bytes   mscorwks.dll!_COMPlusFrameHandler()  + 0xb9 bytes   ntdll.d

SSIS Package working on SQL Client Machine but when trying to run on SQL Server machine giving error

  
Hi We are trying to run SSIS package on sql server machine but sometimes it is giving error for data flow task containing Script Component. Error is - [SSIS.Pipeline] Error: component "SCR DimensionRelation" (1) failed the post-execute phase and returned error code 0x80004002. This error is not coming continuously. And also not for specific DFT. It comes for different DFTs as we rerun the package. Can anybody help me on this? We are using SQL server 2008. We are not getting any error on client machine :(:(

state machine workflow project creation error

  
Hi,   I have a dev environment which i had sharepoint 2007 and now i upgraded it to sharepoint 2010. Now when i try to create a state machine workflow project it gives me an error Object Reference not set to an object. I uninstalled Sharepoint extensions 1.3 (as i 64bit win2008 vm) and when i am trying to install it. In one of the installation screens where it asks for the port no  and the select the app pool it only shows the sharepoint central v3 app pool . i was expecting to have sharepoint 2010 product app pool in the drop down. I know that there should be a app pool on port 80. Since i upgraded sharepoint to 2010. I want sharepoint visual studio extensions 1.3 to point to sharepoint 80 app pool . Please can you tell me how i can do it.    

Page cannot be found error on clearing cookies while running application

  
Hello all,            I've a web application which is running on sql state session .. And is running well under normal conditions. But when my application is in home page or landing page after loging to the application, if user clears all his history and cookies and click on any menu in the application . It is giving  Internet Explorer cannot display the webpage error.. I'm not able to debug the error.. am getting the same problem even under deploying conditions. How to handle this issue?   Thanks in advance, Hari.
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