Hi Guys,
I'm new to guidance automation, been using it a few days, goal is to replace a custom code generator application written in house which is a pain to maintain and for new developers to learn and extend.
Anyways i've got a problem at the moment where i make a change to the package i'm working on e.g. add a receipe reference to a project or solution template theni need to Register the change so i rebuild the solution right click on the project and "Register Guidance Package". but atleast 50% of the time it hangs. Looking in process explorer basically another instance of devenv is spawn but it hangs and i have to kill it then shutdown vs, start it back up again and then do the same thing. which then hopefully works. this is going to be a major productivity killer and maybe a reason not to go down this road.
has anyone else had problems like this? any pointers...
any help greatly appreciated....
regards,
mick | | mickdelaney Friday, June 08, 2007 10:09 AM | Hi Mick,
the registration process could take some minutes (usually no more than one) and it seems that the Visual Studio hangs.
Try to register it again, and wait until it ends.In following registrations you can use the quick register command instead the register, basically *registration* is used when you've modified or add any template or hostdata information, quickregistration is used after each compile and it just take no more than 3/5 seconds.
| | Jose Escrich Friday, June 08, 2007 2:26 PM | Hi mick,
Please let us know if a that upgrade fixed it, if it didn't we can research what may be going wrong.
thanks, -Victor.
| | vga Saturday, June 09, 2007 7:26 PM | Hi Mick,
the registration process could take some minutes (usually no more than one) and it seems that the Visual Studio hangs.
Try to register it again, and wait until it ends.In following registrations you can use the quick register command instead the register, basically *registration* is used when you've modified or add any template or hostdata information, quickregistration is used after each compile and it just take no more than 3/5 seconds.
| | Jose Escrich Friday, June 08, 2007 2:26 PM | hi jose,
i realise the time constraint on register. i was literally waiting 10 mins for it. i've since updated to the june ctp so hopefully no probs will occur.
cheers. | | mickdelaney Friday, June 08, 2007 3:04 PM | Hi mick,
Please let us know if a that upgrade fixed it, if it didn't we can research what may be going wrong.
thanks, -Victor.
| | vga Saturday, June 09, 2007 7:26 PM | hi victor,
i've abandoned the clarius sf toolkit for now because of the other threads i've got open. i've gone back to the basic GAT package now and the same error has occurred when i was trying to register the package. it has hung again with no response. again the spawned visual studio instance is hanging in the background devenv.exe, (18mb memory, no cpy cycles, which is always the same). i attempted to debug this process but got 2 errors, i'm not sure these are relevant to the overal problem. it seems that there are alot of problems on my machine with GAT/SF Toolkit/DSL.
Code Snippet
System.Configuration.ConfigurationException: There was an error reading the manifest file for the Guidance Automation Extensions. The error is --> The process cannot access the file 'c:\Documents and Settings\All Users\Application Data\Microsoft\Recipe Framework\RecipeFramework.xml' because it is being used by another process. ---> System.IO.IOException: The process cannot access the file 'c:\Documents and Settings\All Users\Application Data\Microsoft\Recipe Framework\RecipeFramework.xml' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext) at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings) at Microsoft.Practices.RecipeFramework.RecipeManager.GetManifestReader(String manifestFile) at Microsoft.Practices.RecipeFramework.RecipeManager.get_MainManifest() --- End of inner exception stack trace --- at Microsoft.Practices.RecipeFramework.RecipeManager.get_MainManifest() at Microsoft.Practices.RecipeFramework.RecipeManager.GetInstalledPackages(String forHost) at Microsoft.Practices.RecipeFramework.VisualStudio.Templates.TemplateFilter.OnSited() at Microsoft.Practices.ComponentModel.SitedComponent.set_Site(ISite value) at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeManagerPackage.OnCreateService(IServiceContainer container, Type serviceType) at Microsoft.VisualStudio.Shell.Package.GetService(Type serviceType) at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeManagerPackage.Initialize()
System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Practices.RecipeFramework.RecipeManager.get_TraceSwitch() at Microsoft.Practices.RecipeFramework.VisualStudio.Services.OutputWindowService..ctor() at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeManagerPackage.Initialize()
regards,
mick
| | mickdelaney Tuesday, June 12, 2007 10:56 AM | Hi Mick,
The Registration/Unregistration recipes are really part of GAT and not SFT, so the later shouldn't affect regarding this.
By your posted exception it looks like GAX main manifest file is being locked for some other process while you're trying to register a package, which is weird. Can you run a program like Process Explorer and take a look at how is holding a handle to that file, I can't think of anyone else but other instance of Visual Studio or some Guidance Package installer that may have leacked a handle...
thanks, -Victor.
| | vga Tuesday, June 12, 2007 1:49 PM | Hi,
Still getting the problem.
ok i've checked the file handles whilst its hanging and the only process with a handle to the file ('c:\Documents and Settings\All Users\Application Data\Microsoft\Recipe Framework\RecipeFramework.xml' ) is the InstallUtil.exe which has spawned the hanging devenv.
difficult to know what to look for...
regards.
| | mickdelaney Wednesday, June 13, 2007 1:05 PM | hi guys,
i'm still getting the hanging every second time i register the package. basically i shutdown vs, then start it back againopen thepackage solution and register it fine. the next time i try to register it it hangs and i have to shutdown the solution reopen it again, and that happens every time now.
i was wondering since all it does is execute another instance of vs in the background whether i could do this myself manually.
so maybe i could save the solution, compile etc then execute the command line myself.
any ideas??? | | mickdelaney Monday, June 25, 2007 9:26 AM |
|