Click here to Skip to main content
15,914,111 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hello,

I finish my project and in my mahine it's working excellent, but I gave it to a friend to test it and it's not working..
The project is a CRM for physiotherapists, you can insert,update,delete patients and some other operations, I used the Entity framework for that.

When the installation is complete, a shortcut is created and when he run the app ;first it is very slow and second every time he change a tab a pop up error message appears and says something for unhandled exceptions(abort retry ignore), but the most strange it is that he cannot insert a patient. in a nutshell the application's operation it's far from how it's operate in my machine..

I used installshield to make the setup and he has .NET framework 4.5 which is the one my app developed in.

any help appreciated..I have to deliver the product at the end of the week..
thanks.
Posted

From that little, we can't answer your question, or even begin to.
Start by looking at your errors: they normally give a message which meant as a big clue as to what the problem is: get him to send you a screenshot of the actual error box.

The problem is that there are so many reasons why this could be occurring: it's clear that your software doesn't try to catch any problems and deal with them internally, so it could be almost anything, from a missing database to finger trouble. But unless you look at the messages (which often include line references, file names, and stack traces) nobody can tell at all.

Over to you for starters...
 
Share this answer
 
Comments
zapata287 23-Nov-13 8:16am    
ok, I will do this..and I post later..
thank you!
OriginalGriff 23-Nov-13 8:19am    
You're welcome - sorry we can't be more specific!
Code is working in one machine can not run to other machine. It is a very common pattern of error. Environmental Issue is the main reason for that type of error. First of all you should confident that your code is fine and just identify which environment related issue do not match. To identify and resolve issue you need to check the following environmental clause.

1. Make sure appropriate .NET framework is there which your application developed.
2. Make sure third party dll already deployed there with appropriate version.
3. Make sure database version there and from your application you point that database.
4. Check appropriate security is provided to your application/user/directory/file/database etc.
5. If any component you use from GAC make sure that is available there.
6. Check eventlog/your custom log file if any critical error found.
7. Check twice your application configuration file and make sure every config value is correct.
8. Check convention logic if your application use any convention and that convention has no problem with new target machine. For example you assume that target machine must has d:\ drive inside d drive program files directory must there. But that might not be there.
9. Check your application develop for 64 bit machine but there target machine have 32 bit.
10. Might be more
 
Share this answer
 
So, I have the error message..

it's this :
System.Data.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) ---> System.ComponentModel.Win32Exception: Logon failure: unknown user name or bad password


I have tried many things.. but it's not working on other machine..I even installed SQL server there but no..I put SQL scripts in the setup but something is going wrong and I cannot find it..

I searched the web for how to deploy apps using entity framework and how to create the Database on user's machine but I didn't manage to find a solution..

so if anyone have a similar problem if a solution I am listening..
thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900