-
Re: Preparing SolidWorks for first use message dialog with add-in
Jesse Seger Aug 31, 2010 12:44 PM (in response to scott cleveland)This has little to do with the .NET Framework version. It has to do with Visual Studio Tools for Applications. It must configure itself on first use. you have seen posts on this because VSTA is new for 2010.
I'm not sure why your add-in is requiring this to run. I'll keep an eye out to see if I come across anything.
-
Re: Preparing SolidWorks for first use message dialog with add-in
scott cleveland Aug 31, 2010 1:29 PM (in response to Jesse Seger)So you are saying it is the VSTA that SolidWorks uses to expose SW via and add-in? In my add-in I go through the machine processes via:
Process objCurrentProcess = Process.GetCurrentProcess();
Process[] objProcess = Process.GetProcesses();and I go through the processes looking for one that is needed in the add-in. If I by pass this routine I do not get the Preparing Dialog. Any suggestions are welcomed. Thanks!
-
-
Re: Preparing SolidWorks for first use message dialog with add-in
Garrett Klein Oct 15, 2010 1:04 PM (in response to scott cleveland)I ran across this last week, unfortunately the end result was reformating my computer. I tried reregistering using ngen, uninstalling, resetting my registry, repairing. Eventually I decided it was more effiecient for me to stop messing with it. Id like to know if you do come up with a solution.
-
Re: Preparing SolidWorks for first use message dialog with add-in
Luke Malpass Oct 16, 2010 4:53 AM (in response to scott cleveland)Sounds unrelated to what you are describing and likely not directly related to those lines of code.
Try creating a blank add-in that just creates a taskpane in SW so you know it is running, and nothing else, and see if it causes it.
Are you using a stand-alone app that hooks into SW (in which case this isn't an "add-in" by definition). In which case yes VSTA will likely have some form of involvement in the binding process when you cast it to a runtime callable wrapper.
Luke Malpass
AngelSix (SolidWorks Tutorials and Books)
-
Re: Preparing SolidWorks for first use message dialog with add-in
Eduardo Brites Jan 21, 2011 6:14 AM (in response to Luke Malpass)I have a similar problem, everytime I install the latest Windows Updates (Windows7 32-bits) If I run SW2010/SW2011 from Visual Studio, that message shows up for about 2/3 hours... The problem does not occur if I run SW manually.
The Api support said I needed to reinstall .NET Framework which I did, yet, the problem persists...
I would like to know a better workaround than simply waiting 2/3 hours...
-
Re: Preparing SolidWorks for first use message dialog with add-in
scott cleveland Jan 21, 2011 6:47 AM (in response to Eduardo Brites)This solved the problem for us:======================================================
SolidWorks uses .NET technology and to gain maximum performance the SolidWorks components based on .NET are compiled to native dlls at installation time.
Depending on the characteristics of the hardware and the machine load this step may take a few minutes longer than the actual SolidWorks installation.
To ensure correct functioning SolidWorks 2010 SP3 and later will wait for that compilation step to complete, showing the message "Preparing SolidWorks for first use. This may take several minutes."In case the message does not disappear within a reasonable period of 2 hours, please open a DOS command prompt, navigate to one of these folders:
Use "cd <folderpath>"32bit machine:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
x64 machine:
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727and type the following command:
ngen.exe executeQueueditems
This should cause .NET to compile all .NET components that have been queued up as soon as possible instead of in the background when the machine is idle.
The .NET components in the queue may come from SolidWorks, 3rd party applications based on .NET, and the .NET framework itself.On a 64-bit machine, please invoke the above command from both a 32-bit and a 64-bit DOS command prompt.
I have restarted SW after this, waiting appr. 1-2 hour and then it wa working.
Regards,
Alain
-
Re: Preparing SolidWorks for first use message dialog with add-in
1-1S26RY Apr 14, 2011 5:37 PM (in response to scott cleveland)The full solution can be found as S-050248 in the SolidWorks Knowledge Base.
Regards,
Frank
SolidWorks Partner Technical Manager
SolidWorks R&D Ltd, Cambridge, UK
-
Re: Preparing SolidWorks for first use message dialog with add-in
scott cleveland Apr 15, 2011 8:30 AM (in response to 1-1S26RY)I have searched for S-050248 in the SolidWorks Knowledge Base but cannot find anything. Thanks Scott
-
Re: Preparing SolidWorks for first use message dialog with add-in
1-1S26RY Apr 18, 2011 4:18 AM (in response to scott cleveland)Hello Scott,
I suspect your Customer Portal account does not grant sufficient permissions to view published Knowledge Base Solutions.
Please contact the SolidWorks Customer Centre by dropping them an email at:
asking for you to be added as a contact person to a partner serial number in use by your company for which the current subscription state allows for full Customer Portal access.
Regards,
Frank
SolidWorks Partner Technical Manager
SolidWorks R&D Ltd, Cambridge, UK
-
-
Re: Preparing SolidWorks for first use message dialog with add-in
Joe Grantham Apr 26, 2011 12:34 PM (in response to 1-1S26RY)I cannot find that solution (S-050248) either, I even searched S-05024* to which 47, 49, etc return but not the one ending in 48. Can you please double check. Thank you.
-
Re: Preparing SolidWorks for first use message dialog with add-in
1-1S26RY Apr 26, 2011 5:29 PM (in response to Joe Grantham)Hello Joe,
Scott's inquiry with the SolidWorks Customer Center revealed Solution S-050248 was only visible to resellers.
This restriction has now been lifted. Could you please try again ?
Regards,
Frank
SolidWorks Partner Technical Manager
SolidWorks R&D Ltd, Cambridge, UK
-
Re: Preparing SolidWorks for first use message dialog with add-in
Joe Grantham May 2, 2011 2:22 PM (in response to 1-1S26RY)I can see it now, looks great and thank you for the response and resolution. This 'issue' cropped up quite a bit with the recent .net update (KB2446704) rolled out.
Thanks again,
-
-
-
-
-
Re: Preparing SolidWorks for first use message dialog with add-in
Kent Keller May 4, 2011 1:43 PM (in response to Eduardo Brites)I experienced the same problem directly after having Microsoft Office 2010 installed on my computer. From that moment on, this problem appeared.
Kent
-
Re: Preparing SolidWorks for first use message dialog with add-in
scott cleveland May 4, 2011 2:21 PM (in response to Kent Keller)Kent:
We have run into the problem numerous times, and it usally brought on by sometihng OS or .NET version install/Service Pack update/install related. If you following the instructions below, and after completing them, start SW and give it an hour or so it should finally start up 100%.
Scott
======================================================
SolidWorks uses .NET technology and to gain maximum performance the SolidWorks components based on .NET are compiled to native dlls at installation time.
Depending on the characteristics of the hardware and the machine load this step may take a few minutes longer than the actual SolidWorks installation.
To ensure correct functioning SolidWorks 2010 SP3 and later will wait for that compilation step to complete, showing the message "Preparing SolidWorks for first use. This may take several minutes."In case the message does not disappear within a reasonable period of 2 hours, please open a DOS command prompt, navigate to one of these folders:
Use "cd <folderpath>"32bit machine:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
x64 machine:
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727and type the following command:
ngen.exe executeQueueditems
This should cause .NET to compile all .NET components that have been queued up as soon as possible instead of in the background when the machine is idle.
The .NET components in the queue may come from SolidWorks, 3rd party applications based on .NET, and the .NET framework itself.On a 64-bit machine, please invoke the above command from both a 32-bit and a 64-bit DOS command prompt.
I have restarted SW after this, waiting appr. 1-2 hour and then it wa working.
-
-
Re: Preparing SolidWorks for first use message dialog with add-in
1-1S26RY Jun 29, 2011 3:51 AM (in response to Olga Sirovskaya)Hello Olga,
By the looks of it there is a typo in your command line:
>ngen.exe executeQueuedititems
This should be:
>ngen.exe executeQueuedItems
Regards,
Frank
-
-
-
-
-
-
Re: Preparing SolidWorks for first use message dialog with add-in
John Connors Apr 15, 2012 11:24 AM (in response to scott cleveland)I too have had the same problem. I've reloaded Microsoft.NET several times and nothing has worked. I've contacted my reseller but he only sent the Knowledge Base response, which doesn't give a permanent solution.
My fix was to write a batch file that I run from my desktop before starting Solidworks. It takes a few minutes to complete, but once done Solidworks (2012 SP3) starts up immediately. I've found that I need to do this after each computer shutdown or log off.
I can't believe SW hasn't figured out a permanent solution??? I'm very disappointed.
The batch file is below.
I hope this helps
Best Regards,
Johncd c:\windows
cd microsoft.net
cd framework64
cd v4.0.30319
ngen.exe executequeueditems
-
Re: Preparing SolidWorks for first use message dialog with add-in
Christopher Estelow Nov 14, 2012 12:01 PM (in response to scott cleveland)Just an FY.......I just had this problem this morning with Version 2012 and the fix that Scott Cleavland gives above worked for me. Thanks Scott!!
Regards,
Chris
-
Re: Preparing SolidWorks for first use message dialog with add-in
Luc St-Pierre Nov 15, 2012 10:05 AM (in response to Christopher Estelow)I also had this problem this morning with version 2011. Andries' solution worked for me.
-
-
Re: Preparing SolidWorks for first use message dialog with add-in
Dan Bovinich Oct 10, 2013 11:39 AM (in response to scott cleveland)This problem started today, my co-worker did not change anything, SW was working fine for at least a year. If I logged into my co-worker's machine, SW would start fine.
I had a SW VAR AE instruct me to do the NGEN from (admin) command line repair. In addition to the NGEN command line repair, we also and we went into the Window registry to give him full rights to several SW folders. We checked my co-worker's rights and he had full ADMIN rights. After all of the above repair - no change, still had the problem.
The only thing that did change to his computer, before this happened, is one of those Microsoft updates (20), the updates were not negotiable, they were automatic. I can't see why that would be the root cause, because my computer and (3) other also had the MS update and our SW opened fine with no issues.
I tried the Andries Koorzen solution above, that worked. I am not sure what else that program does, but at least we can use SW now.
SW2012, SP5, 64bit
Thanks Andries!
Dan Bovinich
-
Re: Preparing SolidWorks for first use message dialog with add-in
Jonathan McMichael Sep 28, 2014 7:00 PM (in response to scott cleveland)If anyone is still unable to get these solutions to work, I have one that may help.
I am still on XP at home and I recently upgraded my installation to 2012 so I can do some work from home. It was getting stuck on the "preparing for first time use" window as others have posted. I had wiped out the previous version of SWX all >NET and Visual Studio items so I could do a complete clean install. Then that happened.
I tried the NGEN fix in above posts but it wouldn't do the trick. In my installation when running the "services.msc" snap in I noticed I only had one item in it. It was the MS .NET Optimization service.
Since it was the only one in there I thought what the heck - might as well give it a go. Sure enough soon as I clicked "Stop Service" the command completed in SWX and now I have use of the program again! Wahoo!! So by way of attempting other known solutions I have found another one!
-Ryno