.Net Application Stopped Working On XP But Works Fine On Windows 7?

Jun 23, 2010

I have VB.Net application that has worked fine for years on XP and Windows 7. For some reason the last update I put out does not run even the simplest VB commands.Simple Environ() fails.I have tried putting simple VB commands onto a MsgBox on the start of the app and everything raises an error. I have no idea what is going on! The exact same app runs fine on Windows 7 clients. All the XP machines including a fresh XP virtual machine with the .Net 3.5 framework even gives the errors. No VB commands are working. I thought maybe something happened to my vbproj files, so I copied an older one from a couple weeks ago when things worked fine and it still does not work.

View 2 Replies


ADVERTISEMENT

Windows Application 1 Stopped Working?

Jun 24, 2011

I am trying to get an application installed on a friends computer, written in VB 2008 Express. However, he continues to receive the Windows Application 1 stopped working message whenever he launches it.

He states that there are not any error details, and I am in a different state so I cannot even begin to diagnose the situation, so this is all I have to work with. Are there any suggestions where I can even begin to look that would cause this? He is on Win7. which is what I developed the app on. The program is pretty simple, and utlizes sql server r2. Any suggestions on some starting points to check? I have run it on 6 or 7 other computers with no problems.

View 7 Replies

Use Bmp.save To Create Some Thumbnail, It Works Fine For A While Then Stops Working?

Jul 20, 2012

I tried to use bmp.save to create some thumbnail, it works fine for a while then stops working,how to troubleshoot the problem? the code doesn't generate any error:

Dim bmp As Bitmap = WebsiteThumbnailImageGenerator.GetWebSiteThumbnail(address, 800, 600, width, height) Dim ScreenshotPath As String = Request.PhysicalApplicationPath + "Screenshots" Dim ScreenshotName As String = UserAccountDB.GetUserFullNameByUserLogon(User.Identity.Name).Replace(" ", "_") + Now.ToString("yyyy'-'MM'-'dd'-'HH'-'mm'-'ss") + ".bmp" bmp.Save(ScreenshotName) imgWebsiteThumbnailImage.ImageUrl = "~/Screenshots/" + ScreenshotName

View 1 Replies

App Works Fine In XP But Got An Error In Windows 7?

Aug 5, 2010

I used autocomplete sub in one combobox keyup.It works fine in windows xp but got an error in windows 7. The error said:invalidargument=value of '-17310416' is not valid for 'length'.Parameter name:length.(-17310416 will change based on selection of combobox)
----
Public Sub AutoComplete(ByVal cbo As ComboBox, ByVal e As System.Windows.Forms.KeyEventArgs)
Dim iIndex As Integer
Dim sActual As String[code]................

View 2 Replies

Mpd Server Working In Linux Machine - Code Works Fine Until There Are Spaces In Directory Name

Jul 21, 2011

I have mpd server working in Linux machine. Code works fine until there are spaces in directory name.

How can I handle spaces?

CODE:

View 6 Replies

Visual Studio 2010 Created Program Doesn't Work On Windows7 64 Bit While Works Fine On Windows Xp

May 15, 2012

I have one tool which we developed on visual studio 2010. there are basically two parts of my project, one is UI part which i wrote in VB and algorithm part which is in C++ on back end. When we compile C++ part it creates a .dll which is used by my front end VB program.

Now my problem is little weird since i am compiling and deploying this tool on windows xp machine but some of the users are using windows 7 64 bit machines and after running the program for about 5-10 minutes, it crashes on windows 7 with following error

Not enough storage is available to process this command and when i view details of that error, i get the following description.

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.
************** Loaded Assemblies **************
mscorlib

[Code].....

i am completely clue less for this error since this program works fine on xp but doesn't work on windows 7.

View 12 Replies

Multiple Runtime Exceptions When Clicking Run From Task Scheduler / Works Fine Running Application From Project Folder

Jun 3, 2011

So I wrote a VB.net project in Visual studio.I have a scheduled task that is set to run the program every morning at 10AM. If I use windows explorer and double click the application, it runs fine.If I open task scheduler, open the task properties, and browse to the application, then choose run, the program fails, due to Runtime exceptions.I know I have the path entered correctly, since I can debug the instance when it crashes from the task scheduler. VS2010 pulls up my source code.The exception is System.IO.FileNotFoundException, remember, it works fine when I double click the app. If attach a debugger to the process after it is executed from the task scheduler, I can then restart the debugger, and Voila!, The application runs fine.

View 1 Replies

Application Has Stopped Working Error

Oct 29, 2009

I keep getting an error that says hte application has stopped working and Windows is searching for a solution. When I click to debug, it tries to start a new instance of VB, but then tells me that a debugger is already running. Why is this happening?

The error is a uncaught Win32 exception and occurs somewhere inside a thread that I create, but I have no idea where.

View 3 Replies

Application Suddenly Stopped Working?

Feb 6, 2009

i tried updating my application on a vista home basic laptop. i get "myapp.exe has stopped working" then i restore back to the old version, it still give the same error. I am sure the old version is working because I tested it before updating it.

View 2 Replies

Backup / Restore Function Working Fine On Windows XP?

Mar 9, 2010

I have a backup / restore function working fine on Windows XP. When I deploy the application onto a Vista OS OI recieve the following error, can somebody please advise me how I can resolve this issue?

System.IO.FileLoadException: Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.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)

File name: 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'

View 2 Replies

Application Stopped Working And Just Crashes On Startup?

Sep 12, 2009

Application stopped working and just crashes on startup?

View 11 Replies

IDE :: Application Stopped Working After Shutdown Event

Feb 16, 2012

Visual Studio 2008, VB.NET, .NET Framework 3.5. Development Machine Vista Business. Problem occurs in Vista, Windows 7. It does not occur on XP. Others involved: Bennet-Tec Tlist tree control, Farpoint Spread for Winforms 5 spreadsheet control, ADO.NET with Access Database. Message issued:

[Code]...

View 4 Replies

What Does Windows Program Has "stopped Working" Really Mean

Dec 12, 2009

I have a VB 2008 program which intermittently causes Windows 7 to decide that it has "stopped working" and the only option is to close and restart it.What does this message really mean? The program's main thread is still running OK, because I can see it updating its window, so I assume one of the other threads had done something to cause the message, but how do I debug what that may be?

View 6 Replies

Parameter Invalid ' While It Works Fine On Pc?

Mar 7, 2011

I have a small project I'm working on and from time to time I show it to my friend. He and I both have Visual Basic 2010 Express installed.

[Code]...

View 16 Replies

.net - Me.Close() Causing The Application To Throw A "has Stopped Working" Message?

Feb 16, 2011

I have to build an application using it in order to communicate with some software. Basically, I need to be able to call this exe and have it run to perform some tasks, then close itself down.I have the tasks running on page load but since I don't want the application to actually open, I use a Me.Close() to close it once it's finished the tasks. So, the whole thing works great (the tasks are even performed) except the Me.Close() causes a message to come up saying the application "has stopped working." Is it because I'm trying to close it while it's loading itself?I am forced to perform these tasks in VB, so please don't just say I should not be using VB.NET for this.

View 2 Replies

VB 2010 Application Works On Windows 7 Machine But Will Not Work On Other Windows 7 Machines?

Jan 22, 2011

I have developed a VB 2010 express application that works on my windows 7 machine, but when I deploy it to other windows 7 machines the application will not run at all. I created an msi script to install the software on other machines and it includes the .NET 4.0 framework an all of my application dll's and such. Any idea what might be he problem?

View 2 Replies

Code Works In A Windows Forms Application, But Not In A Windows Service

Jan 19, 2010

I'm porting code that I wrote for use in a Windows Forms application to a Windows Service, but for some reason, the code that worked in the Windows Forms application is now throwing errors in the Service

View 7 Replies

Export Data From A Datagridview Which Works Fine?

May 20, 2010

I am trying to export data from a datagridview which works fine, but it crashes when pat_eid value is empty, as pat_eid has been set a primary key and cant accept null values in the database level.

So, I want to enter a message box if column(0) which is the pat_eid has an empty field. Please could you advise me how to do that.

[Code]...

View 14 Replies

Sql Statement Gives A Error While It Works Fine In Access?

Dec 8, 2009

I'm creating a db tool for automatic database repairs i have the following sql statement:

[code]...

Where the 'BrokenDbFile' is the location of the db where data has to come from and the 'sqlString' = the access statement.it gives a error when i put it in a try the exception is of type OleDbExceprion and de message text is "De instructie INSERT bevat een syntaxisfout" in Dutch Where it says that the syntax of the INSERT INTO is not correct. but when i paste the string from my inteli snce into access it works fine.

View 11 Replies

VB Program Works Fine When Stepping Through But Crashes When Ran With The .exe?

Aug 12, 2011

Problem: The excutable of the vb program crashes when trying to run but when I step through the program inside of visual studio it runs successfully.

Details: The program performs a winscp.com transfer from a ftp server and then takes the downloaded file and extracts the data from it before sending it to a webpage. The program also decrypts a des3 encrypted file which holds the login details for the sftp server and the webpage.

My Thoughts: I was thinking this could be something to do with the excutable jumping ahead of the slower transfer and decrypt functions thus causing a "file not found" exception to be produced and the program to exit. Lending to this if I slowly (aka spend 10+ seconds stepping through the code) move through the code it works just fine.

As requested Crash Messages:(I capture everything in exceptions and exit properly so no "crash" is reported but the error I get in my logs is as follows:)

1st run with standard test case:Could not find file 'C:UsersAdministratorDesktop..ILC2INFOENC.txt'

2nd run standard case (the file above was not deleted by my cleanup function either as it could not be found)Could not find file 'C:UsersAdministratorDesktop..ILCNETSL10663.csv'

Background:The first file that is found missing is the encrypted login information file while the second file is the winscp.com downloaded csv file.

View 1 Replies

Query Fails When Run Via Visual Studio Works Fine Elsewhere

Jul 21, 2011

I receive this error: [code]whenever I run a query via a visual studio project in vb.net. If I run the same query via Open Office Base, it takes a long time but it works. How do I go about troubleshooting whats causing this?

View 2 Replies

Threads Not Starting In ASP.Net On Server But Works Fine Locally?

Mar 15, 2012

The code works fine when I run it locally, yet as soon as I have uploaded to our dev server it doesnt run, but also doesnt error.I did some research and found that I should have the thread impersonate the WindowsIdentity, which I have done but still the thread does not work, I also tried increasing the max threads in IIS and still nothing.Im running IIS 7.5 on Windows 2008 R2.The method being executed on a new thread is in a class in the App_Code folder and looks like:

Public Class RosterEmailer
Inherits System.Web.UI.Page
Dim thisID As String
Dim thisName As String

[code]....

View 2 Replies

Custom Scrollbar ... Works Fine Until Move / Resize It In Designer

Oct 28, 2011

I have been scouring for examples to give me some idea on what I need to do to create a skinable scrollbar. The only thing close that seems to work like I need is Cool Scrollbar The problem I am running into is on the designer...when I move it, resize it, or change the direction of the control (ScrollbarLayout), it seems to want to re-name the class the item is an object of from CBar to cbar.CBar. Once I position and align it properly to check, I can go through the Form1.Designer and simply remove the cbar. and get no errors. When I run the program, it is fine, so this is telling me that there is something wrong with the movement in the class...

[Code]....

View 5 Replies

VS 2008 SQL Constraint Exception - Works Fine In Query Builder

May 3, 2011

I have created a query method for my tableAdapter in the dataset designer. I typed the command text manually, but tested it in the query builder after I got a Constraint Exception when debugging. When running in the query builder via 'Execute Query' I get exactly the results I expect. When running the application I get this exception: "Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints." I tried temporarily setting my dataset's EnforceConstraints property to FALSE but still get the same exception. I can't understand why the Query Builder would return the correct datatable but running the app would not. Is this a bug?

View 3 Replies

Web Browser Copy Paste To Textbox Works Fine On One Computer But Not The Other?

Jun 6, 2012

Here's the code that I have:

TextBox3.Text = ""
WebBrowser1.Document.ExecCommand("Copy", False, vbNull)
TextBox3.Paste()
TextBox1.Text += TextBox3.Text & vbCrLf & vbCrLf 'This code just adds the pasted text from one textbox to another.

Question:

After I install and run the application on my main computer that I coded this app in work, but when I go to transfer/install it onto my laptop, the code will NOT copy and paste from my webbrowser to my textbox?

View 3 Replies

.Net Windows Application - How It Works

Jul 20, 2010

We have an application(.exe), longtime back some developer wrote the code and now he is not with the company. I happend to be support this application. I have to do some modifications in the code.I have a .vb file and .Config file with me. The .VB file is calling a SSIS pkg and doing some dataload and creates some files and it formate the file names what it generates and it send emails to large group of ppl.I have opend the code in Visaulstudio but i do not have any option to debug or do some breakpoints.How can I use this config file?Do I have to add both of them in the project? To debug I need SSIS pkg as well so do I have to add all these 3 of them into my solution?I know where to change the code, after changing the code how can I create a application EXE file?

View 6 Replies

.net - Out Of Process COM Server Works Fine In The Unit Test Harness But Not In The Real Service?

Jun 1, 2011

We have a WCF service hosted in IIS that currently calls a VB6 DLL to do part of its job. This works fine, but we can't deploy the service to a 64-bit target environment without configuring IIS to run it in a 32-bit worker process.I am currently investigating ways around that restriction. Porting the VB6 DLL to .NET is not possible for various reasons, so I created an ActiveX EXE wrapper around the DLL in VB6, so that the service can run in 64-bit and the VB6 parts in 32-bit.

When I tested the service I got this error:

Type: System.UnauthorizedAccessException
Message: Retrieving the COM class factory for component with CLSID {9AE7303B-D159-43F6-B1A5-52D297581820} failed due to the following error: 80070005.

After some Googling I found that this is due to either:

Calling an MS Office component
DCOM permissions not being configured
NTFS file permissions not allowing read/exec access to the IIS worker process identity (ASPNET in my environment)

Of these:

Definitely not applicable Also not applicable; I am not hosting the EXE in DCOM or COM+, just a simple COM out-of-process activation
This looks likely; however, I checked the permissions, and NTFS reports that the Users group (which ASPNET is a member of) does indeed have read/exec access to the file I tried calling the EXE from a unit test fixture, which is executed in my admin-level account rather than the IIS worker process account, and it worked fine, so the error is definitely something to do with permissions. I'm not sure what to do next.

UPDATE:The IIS virtual directory is configured for Anonymous+Windows access; the WCF service uses only Anonymous authentication, the Windows authentication is for the VS debugger. Task Manager reports that the aspnet_wp.exe process is definitely running in the ASPNET account.I explicitly granted Read and Execute access to the ASPNET and IUSR_<machine> accounts on all the COM exes and dlls involved. This made no difference.

I explicitly granted Local Launch and Local Activation access to the ASPNET and IUSR_<machine> accounts on the relevant interfaces in the DCOM configuration. This made no difference either.Keep trying to get this working somehow.Go the whole hog and host the EXE in COM+.Give up. Tell users that the WCF service must be configured to run in a 32-bit app pool on 64-bit Windows.

View 1 Replies

VS 2008 Two Location Lines Throw Errors But Text Line Works Fine

Jun 30, 2010

[code]The two Location lines throw errors but the Text line works fine. I've played around with this until I'm blue in the face but can't get it to compile.

View 4 Replies

ASPX Stopped Working On IIS 6

Apr 20, 2009

this site used to work, i had to reformat the server, republished site though frontpage and i get this

View 1 Replies

Databinding Has Stopped Working?

Oct 9, 2009

I have been developing this VB application for some time now in Visual Studio 2008. I have created datasets, ran into problems, reinstalled them, etc. and have been able to resume work with my application. Just recently, the datasets have completely stopped working meaning no data is pulled from the SQL server. I have tried recreating the datasets with no luck. When I create a new label and try to simply associate it to a SQL field through the properties of the label, Databindings... Text (to pull in the value of the field to this label), when I run the program, it does not pull the data. None of the datasets work. I have checked the code and designer and tried to compare it to my old version and everything looks fine.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved