.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

Application runtime functioning in Win7, but not in XP?

Posted By:      Posted Date: September 21, 2010    Points: 0   Category :WPF
 

Hi

I created a small application to read/write data in MSSQL2005. The app was working fine until I made a small update on it a week ago.

The update included an extra form to which data is written to textboxes and a button which is used to print the form using PowerPacks PrintForm. I also introduced an icon to the application. Today I have received several complaints from fellow employees that the application no longer runs. It brings up the "Send error report" message upon trying to open the app. I've noticed that it still operates as per usual on Windows Vista and 7 machines, and crashes on XP machines. 

Please, I need some help!!!




View Complete Post


More Related Resource Links

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 


unable to find a version of the runtime to run this application

  
I have an application written using Visual studio 2005 (in VB.Net). When I run it on any machine I get "unable to find a version of the runtime to run this application” and this same application successfully some other PCs   And these following processes I have already done: Repair and reinstall .net framework2.0 I also rebuild my application setup. Scan my PC with antivirus and install new updated antivirus I have format my pc and reinstall dotnet framwork2.0 and my project. And also download .net framework cleanup tool install it.     So if any one has solution excluding the above then plz give me as soon as possible.      

know the port No. Of my web application at Runtime

  
I have many application in my solution. I have to move from a application to another. At the localhost, port no of different appliction is different. i want to know the port no for other application at run time so that i make a url to move another application.  

A possible bug with redirecting RedirectStandardInput to console application from windows form (Win7

  

More info can be found on this post:

http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/23527505-236f-4bba-99ae-f8bece281d44

 

Basically when I attempt to redirect the standard input of a console application from windows form the console application crashes immediately.

 

When I use the exact same code from a console application everything works fine (this is what leads me to believe it might be a bug).

 

Here's the shortest code you need to reproduce the problem:

 

Process myProcess = new
 Process();
myProcess.StartInfo.FileName = @"cmd.exe"
;
myProcess.StartInfo.UseShellExecute = false
;
myProcess.StartInfo.RedirectStandardInput = true
;
myProcess.Start();

 

Please note the following:

1. When I change "cmd.exe" to "sort.exe" it works find on both console and windows form applications.

2. When compiling to windows application for 64 bit platform (or AnyCPU) the "myProcess.MainModule" throws an exception: {"Only part of a ReadProcessMemory or

WriteProcessMemory request was completed"}

3. Whe

Uploading assembly at runtime through Windows Application

  

I am desigining a windows form wherein I allow the user to upload a particular assembly file. The assembly file can be present at any location on the user's hard drive. I want to now load this assembly and read the classes present in this assembly. I am doing this using Reflection, however I am not unable to unload the assembly which is once loaded  through reflection. I have tried using AppDomains, but I am unable to load the assembly through AppDomain. Whenever I try to load my assembly from the appDomain I get a error message "The specified assembly file or one of its dependencies does not exist". I have set the ApplicationBase path of the AppDomain to the location where the assembly file is being uploaded from. However I am still not able to load the assembly from the AppDomain.

Can anyone please let me know in case I am missing something. Any help on this will be highly appreciated.

Thanks,

Vandana

 


Unable to find a version of the runtime to run this application

  

Hi,

I have developed a C-sharp application. But I am not sure how to run it using the .exe file. When I open the application from within Visual Studio 2008 IDE, I can first build the application and then under "debug" menu I select "start debugging". So it starts running. So I am able to run application that way. But if I put my cursor on the \bin\Debug\Application.exe , and do a right mouse click on "run as"  I get the error Unable to find a version of the  runtime to run this application.

I could be getting this error because I have not taken any steps to create a proper executable. I just went to \bin\Debug and found Application.exe and did right mouse click on "run as". Can you tell what steps need to be taken to create a proper executable, other than just "BUILD"


Win7 64bit showing my database as ReadOnly when Application Installed

  

Hello ,

I have faced a very strange issues so far.. let me explain you all my situation..

I have an windows application.. it's developed in the .net framework 2.0 and back end with SQL Express 2005 , and I am attaching my database file while I install application on the machine.

My appliction works okay in all the operating system with 32 bit platform but when I tried to install it on the Win 7 , 64 bit it was giving me error with ReadOnly database and can't execute query.

I have checked all permission given to folder of my database in both 32bit and 64 bit win7, it looks same.. then what could be cause of such an error.. though when I tried to run it from vs in win7 64bit (Debug though visual studio), it was working correctly..

if you have any solution.. for this problem. let me know ..

thanks..

 

 

 

 

 

 


Thanks and Regards, Shailesh B. Davara sdavara.com

Win7 64bit showing my database as ReadOnly when Application Installed

  

Hello ,

I have faced a very strange issues so far.. let me explain you all my situation..

I have an windows application.. it's developed in the .net framework 2.0 and back end with SQL Express 2005 , and I am attaching my database file while I install application on the machine.

My appliction works okay in all the operating system with 32 bit platform but when I tried to install it on the Win 7 , 64 bit it was giving me error with ReadOnly database and can't execute query.

I have checked all permission given to folder of my database in both 32bit and 64 bit win7, it looks same.. then what could be cause of such an error.. though when I tried to run it from vs in win7 64bit (Debug though visual studio), it was working correctly..

if you have any solution.. for this problem. let me know ..

thanks..

 

 

 

 

 

 


Thanks and Regards, Shailesh B. Davara sdavara.com

Save Workflow Runtime as Application State or Session State for a website with multiple users?

  

I used Windows Workflow Foundation 3.5 as a page flow navigation for a ASP.NET website's Previous and Next page navigation.

The site acts like a shopping cart and each user has his own session and user data.  The app only has one WF.  I am not sure if I should generate one Workflow Runtime for every user or for simply generate one workflow Runtime for the entire application in my case?   

In the global.asax:

void Application_Start(object sender, EventArgs e)
    {
       
    } 

void Application_End(object sender, EventArgs e)
    {
                         
    }
    
    void Session_Start(object sender, EventArgs e)
    {
        // Code that runs when a new session is started
        System.Workflow.Runtime.WorkflowRuntime workflowRuntime = new System.Workflow.Runtime.WorkflowRuntime(WorkflowManager.WorkflowRuntimeKey);

      

Microsoft's Collaborative Application Markup Language (CAML) Loop

  
discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

Integrating a Legacy Web Application in SharePoint

  
This month we will continue with the theme of deploying Microsoft's SharePoint as a company intranet by describing a method for integrating a legacy Web application inside a SharePoint site.

In many companies the intranet site is not just a home page with announcements. It houses Web applications used by many different departments. In last month's article, I built a page to search the employee table in Northwind (the sample database included in Microsoft's SQL Server). This month, I will move the Web pages used to add/remove records from the table into the SharePoint intranet.

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

  
The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.

High-Performance .NET Application Development & Architecture

  
It has always been a goal of project architects to plan an effective strategy from the ground up in regards to an new application. All relevant factors are taken into consideration with respect to the application, from its design and layout to a functional website infrastructure. Pre-.NET strategies and design guidelines still effective now were developed with Microsoft's DNA (Distributed interNet Application) platform. This model successfully served the purpose of architecting N(any number of)-Tier (levels) applications. In its basic sense, as in most robust, distributed applications, you'll architect 3 main layers or Tiers: presentation, business rules and data access.

Application architecture in asp .net

  
Application Architecture is the most important process of developing a good application. Some people tends to jump into coding without any architecture laid. Later we see those people changing the architecture and finally the application had to be developed from the scratch with the correct architecture.

In this article I will describe some details about how you can improve the architecture of you application. This article is targeted to the beginner's audience.

Improving Application Performance in .Net

  
Application performance has always been a concern for Web Application developers. This article contains guidelines and tips for maximizing application performance in ASP.NET.

Logic behind N -Tier Application Development

  
In the arena of application development, developers all over the world use various programming languages, technical processes, and technical tools. While using number of technical & non technical elements the processes or methods become complex, for simplification of the application development process, developers use various techniques such as dividing the application architecture into layers or parts. In the professional & technical language this separation or division process is called N-Tier Application Development process, where "N" stands for number and "tire" stands for layers or parts.

How to create 3 tier application using LINQ

  
As you know that in 3 tier architecture there are three layers

User interface layer. (Is our Form in Windows application and .aspx page in Web application)
Data Access layer. (Which provides interface between Business logic layer and Database)
Business Logic layer.(Which stores your application logic)
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