Vb program stopped working

J

John

My program has suddenly stopped working on the client pc's but still works
on the developer pc. this is the error i get on the clients:


EventType clr20r3, P1 sales.exe, P2 1.0.0.0, P3 4523f22f, P4 sales, P5
1.0.0.0, P6 4523f22f, P7 1f, P8 c6, P9 system.invalidoperationexception, P10
NIL.


It doens't appear to matter who is logged in. I have gound a lot of similar
problem searching the web but none that seem to answer it, yet. The program
does not appear to get past installing.
 
L

Linda Liu [MSFT]

Hi John,

In order to narrow down the range of the problem, I would ask some
questions.
EventType clr20r3, P1 sales.exe, P2 1.0.0.0, P3 4523f22f, P4 sales, P5
1.0.0.0, P6 4523f22f, P7 1f, P8 c6, P9 system.invalidoperationexception,
P10 NIL.

1. How do you get the above error on the client pc? Does the program show a
catching exception dialog saying this?

2. When does the error occur on the client pc, at the beginning of running
the program, or after some operation on the program? If it is the latter,
what's the operation?

3. Can the program work on another client pc?

4. It seems that an exception of System.InvalidOperationException happens.
Could you show me the detailed information of the exception?

After make the above questions clear, I think you may narrow down the range
of the program. Then you may debug your program on the developer pc by
setting break points on the lines of code that probably cause the problem.

Hope this helps.


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

John

The error is in the event log. It is during install, the program does not
appear to install. It still works on the developer pc.
 
J

John

Yes I found another clinet PC that it works on. I am becoming convinced it
is an install problem and not a run problem.
 
G

Gary Chang[MSFT]

Hi John,
The error is in the event log. It is during install, the program
does not appear to install. It still works on the developer pc.

If that error occurs in your program's installation procedure, do you mean
your application hasn't been installed to that client machine, so your
application doesn't exist in that machine?

I found the 'sales.exe' in the error message, how about it, is it your
program's image name?

The error system.invalidoperationexception is a CLR error, it could also be
issued by the installation process or your VB.NET program. In order to
isolate the problem, would you please tell how you create your
application's setup project, is there any custom action in that setup
projects?

By the way, is there any error message occur during the installation on
that client machine?

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

John

I don't do anything custom. I use the Publish to a shared folder, and the
users install it from this share. This is the error I receive when they are
installing. I get the familiar send to microsoft error window, and this
error is in the event log.




"Gary Chang[MSFT]" said:
Hi John,
The error is in the event log. It is during install, the program
does not appear to install. It still works on the developer pc.

If that error occurs in your program's installation procedure, do you mean
your application hasn't been installed to that client machine, so your
application doesn't exist in that machine?

I found the 'sales.exe' in the error message, how about it, is it your
program's image name?

The error system.invalidoperationexception is a CLR error, it could also
be
issued by the installation process or your VB.NET program. In order to
isolate the problem, would you please tell how you create your
application's setup project, is there any custom action in that setup
projects?

By the way, is there any error message occur during the installation on
that client machine?

Thanks!

Best regards,

Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.
 
L

Linda Liu [MSFT]

Hi John,

You have mentioned that you could install the program on another client pc
successfully. Is there any difference between the client pc on which you
couldn't install your program and the above client pc?

Did you install the program on the client pc which has the problem? You may
have a try uninstalling the program from the client pc first and then
reinstalling the program again.

Hope this helps.

Please try my suggestion and tell me the result.


Sincerely,
Linda Liu
Microsoft Online Community Support
 
J

John

The only difference I know of is the program was already installed on the
one pc before this problem surfaced. I am not really sure how to
"uninstall" the program. When I ran the publish command I selected run the
program from the location so I could easily get updates. The program is
still in early stages. Before about 2 weeks ago, any pc I tried it on, it
worked. Now, any new pc I have tried, doesn't work. I am only talking
about a few pc's though. when searching the we I seemed to find similar
problems related to dll's and installing, but I'm not sure which ones to
look at.
 
L

Linda Liu [MSFT]

Hi John,

If you have installed a ClickOnce application on a machine, you could
unstall the application. You could uninstall the problem from Add or
Remove Programs in Control Panel.

How is the ClickOnce application published? Is the application available
online only? If so, you may set the install mode of the ClickOnce
application to be available offline as well ( launchable from Start menu)
and publish the application again. Then you have a try installing the
application on the client pc to see if it could be installed and runs on
the pc. When the application finishes installing, a shortcut appears in the
Start menu.

Is the ClickOnce application partial trust? If so, you may debug the
application to see where the problem occurs. For more information on how to
debug ClickOnce application with restricted permissions, you could visit
the following link.

http://msdn2.microsoft.com/en-us/library/593zkfdf.aspx

Hope this helps.


Sincerely,
Linda Liu
Microsoft Online Community Support
 
J

John

Well we now have succeeded in stopping the app from working on the developer
pc as well. Maybe this will help solve the problem though. The error I get
on that pc is,
Application attmempted to perform an operation not allowed by the secruity
policy. To grant this app the required permission, contact me, or use the
..NET config tool.
....
Request for the permission of type
'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0,
Culture=neutral,publickeytoken=b77a5c56...

this sounds like a bunch of giberish to me but maybe you can explain it to
me? I'm fairly confused why this still runs on at least one client pc as
well??
 
L

Linda Liu [MSFT]

Hi John,

Thank you for your prompt response.

Let me summary the problem first. You have a ClickOnce application. You
could run it on the developer pc, but couldn't install and run it on any
new client pc, on which you never install the ClickOnce application before.
However on those client computers, on which you have installed the
ClickOnce application before, the application works. I need your
confirmation to go on the troubleshooting. If I misunderstand anything,
please point them out.

I think there might be several factors that cause the problem. The first is
the application itself and the second is the ClickOnce deployment.

I recommend that you copy the application directly to the new client pc and
run it to see if the application can run properly. If the result is yes,
the first possibility is excluded.

As for the second possibility, I strongly recommend that you publish the
ClickOnce application as available online or offline. Thus, we could
identify whether the problem occurs during installation or running. If the
application is installed properly, you could see it from the Start menu.

You have mentioned the ClickOnce application works on the developer pc. How
does the application run on the developer pc, run directly from exe file or
install the ClickOnce application and then run it? If the answer is the
former, you may have a try install and run the ClickOnce application to see
if it works on the developer pc.

You may have a try uninstalling the ClickOnce application on the old client
pc and then reinstalling it to see if the ClickOnce appilcation can be
installed and run.

You have also mentioned that you have successfully stopped the ClickOnce
application from working on the developer pc as well. Could you tell me how
you did that? Is the error that appears on the developer pc same as that on
the new client pc?

I will go on researching about the ClickOnce deployment to find any clue to
locate the real cause.

Please try my suggestion so as to narrow down the problem step by step.

I look forward to your reply.



Sincerely,
Linda Liu
Microsoft Online Community Support
 
J

John

This problem has been fixed. The Chrystal Reports Viewer was not installing
properly even though the error did not reflect this.
 
L

Linda Liu [MSFT]

Hi John,

Thank you for your update and I am very glad to hear that the problem has
been fixed.

It seems that you use Crystal Report in your application. When you deploy
an application which has used Crystal Report via ClickOnce, I suggest that
you include the 'Crystal Reports for .NET Framework 2.0' component in the
deployment package. Thus, if the client desktop hasn't installed the
Crystal Reports component when you lauch the application via ClickOnce on
the client pc, you could install the prerequisite component first by
executing the Setup.exe if you launch the application by a shared folder,
or clicking the Install button on the publish page if you launch the
application using a url.

To include the Crystal Report component in the deployment package,
right-click the project in the Solution Explorer and choose Properties. In
the Project designer, switch to Publish tab and click the Prerequisites
button. In the Rerequisites window, select the checkbox before the Crystal
Report for .NET Framework 2.0 option and press OK.

Hope this helps.

If you have any other questions in the future, please don't hesitate to
contact us.

Have a nice weekend!



Sincerely,
Linda Liu
Microsoft Online Community Support
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top