problem with form after converting from 2005 to 2010
-
24 Nisan 2012 Salı 16:28
Ok here the problem I got, I made a program a few years back in VB 2005. Yesterday I went to convert it over in VB 2010 as I got some things to add to it.
All in all the convertion seemed to go ok except for the form. I can't see my form and I get a bunch of resource errors about .resx files.
I did some digging and tried deleting bin and obj folders as some people here said. This didn't work.
I think it may have to do with the version of .NET I was using at the time. I am not to sure tho. If it was then I can't install lower end .NET Frameworks on Windows 7. I tried and I get messages about them not supporting my OS.
So how does one convert a 2005 project in VB to 2010 with out a resource error, missing form, and messages about .resx files ?
Thanks to anyone who can help me on this.
Tüm Yanıtlar
-
25 Nisan 2012 Çarşamba 06:06
Forms has not no changes anymore at all at Microsoft for years now. They have moved on to newer presentation formats (WPF and HTML5).
So there should not be any problem converting VB2005 (especially if that is the base of the complete application) to VB2010.
Can it be you changed something in the designer part yourself?
Be aware that if you can read the small shaded characters there is a special windows forms forum
http://social.msdn.microsoft.com/Forums/en-US/winforms/threads
Success
Cor- Düzenleyen Cor LigthertMVP 25 Nisan 2012 Çarşamba 06:07
- Yanıt Olarak İşaretleyen Mark Liu-lxfModerator 07 Mayıs 2012 Pazartesi 05:24
-
25 Nisan 2012 Çarşamba 21:38
Forms has not no changes anymore at all at Microsoft for years now. They have moved on to newer presentation formats (WPF and HTML5).
So there should not be any problem converting VB2005 (especially if that is the base of the complete application) to VB2010.
Can it be you changed something in the designer part yourself?
Be aware that if you can read the small shaded characters there is a special windows forms forum
http://social.msdn.microsoft.com/Forums/en-US/winforms/threads
Success
Cor
It a single form application.
No the designer form is the last 100% working design and the last stable working compile of the program.
The program was designed for game server admins who use the PB anti-cheat system. It scans every PB image pixel by pixel and compares it to a list of colors use in common cheats such as chems for seeing emeny players through walls in game.
Anyway the program is a CPU hog and for a long time now I been planning on fixing it but haven't had time with family matters and work. So now I got some free time and I rather get some threading coded in to stop the hangups on the program. But I no longer have 2005 VS, I got 2010 and it won't let me work on my form.
Here what my form should look like: http://punkviewer.com/images/mainscreenshotbig.png
and this is what I get when I open the project in VB 2010 after converting: http://punkviewer.com/images/pberror.jpg
and the call stacks 1 - 12 and 16 show the same error message:
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, Boolean useLongPath) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Microsoft.VisualStudio.Text.Implementation.TextDocumentFactoryService.OpenFile(String filePath, DateTime& lastModifiedTime) at Microsoft.VisualStudio.Text.Implementation.TextDocumentFactoryService.CreateAndLoadTextDocument(String filePath, IContentType contentType, Boolean attemptUtf8Detection, Boolean& characterSubstitutionsOccurred) at Microsoft.VisualStudio.Editor.Implementation.VsDocDataAdapter.InitializeNewTextBufferFromFile(String fileName) at Microsoft.VisualStudio.Editor.Implementation.VsDocDataAdapter.Load(String pszFilename, UInt32 grfMode, Int32 fReadOnly) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at Microsoft.VisualStudio.Shell.Design.Serialization.DocData.CreateNativeDocData(IServiceProvider provider, String fileName) at Microsoft.VisualStudio.Shell.Design.Serialization.DesignerDocDataService.GetFileDocData(String fileName, FileAccess access, String createTemplate, Boolean addToHostList, Boolean nestedItem) at Microsoft.VisualStudio.Shell.Design.Serialization.DesignerDocDataService.GetChildDocData(String name, FileAccess access, String createTemplate) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.GetResourceDocData(CultureInfo info, FileAccess access) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.System.ComponentModel.Design.IResourceService.GetResourceReader(CultureInfo info) at System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.SerializationResourceManager.GetResourceSet(CultureInfo culture) at System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.SerializationResourceManager.GetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) at System.ComponentModel.ComponentResourceManager.FillResources(CultureInfo culture, ResourceSet& resourceSet) at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName, CultureInfo culture) at System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.SerializationResourceManager.ApplyResources(Object value, String objectName, CultureInfo culture) at System.ComponentModel.ComponentResourceManager.ApplyResources(Object value, String objectName)
and the call stacks error message for 13 - 15:
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, Boolean useLongPath) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Microsoft.VisualStudio.Text.Implementation.TextDocumentFactoryService.OpenFile(String filePath, DateTime& lastModifiedTime) at Microsoft.VisualStudio.Text.Implementation.TextDocumentFactoryService.CreateAndLoadTextDocument(String filePath, IContentType contentType, Boolean attemptUtf8Detection, Boolean& characterSubstitutionsOccurred) at Microsoft.VisualStudio.Editor.Implementation.VsDocDataAdapter.InitializeNewTextBufferFromFile(String fileName) at Microsoft.VisualStudio.Editor.Implementation.VsDocDataAdapter.Load(String pszFilename, UInt32 grfMode, Int32 fReadOnly) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at Microsoft.VisualStudio.Shell.Design.Serialization.DocData.CreateNativeDocData(IServiceProvider provider, String fileName) at Microsoft.VisualStudio.Shell.Design.Serialization.DesignerDocDataService.GetFileDocData(String fileName, FileAccess access, String createTemplate, Boolean addToHostList, Boolean nestedItem) at Microsoft.VisualStudio.Shell.Design.Serialization.DesignerDocDataService.GetChildDocData(String name, FileAccess access, String createTemplate) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.GetResourceDocData(CultureInfo info, FileAccess access) at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.System.ComponentModel.Design.IResourceService.GetResourceReader(CultureInfo info) at System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.SerializationResourceManager.GetResourceSet(CultureInfo culture) at System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.SerializationResourceManager.GetObject(String resourceName, Boolean forceInvariant) at System.ComponentModel.Design.Serialization.ResourceCodeDomSerializer.SerializationResourceManager.GetString(String resourceName)
So I hope this detail can help you or anyone else looking at this to help me as I don't have a clue as to what needs to be done in order to fix this. All I can tell is it don't like my resource file. -
25 Nisan 2012 Çarşamba 21:43
Sorry that Beta 1 of the program, I just saw I had the wrong version. It beta 3 I needed to convert, I converted Beta 3 just fine.
So this thread is not need now as Beta 1 does not matter to me.
But I am still wondering why it never converted right as Beta 1 did work.
- Yanıt Olarak İşaretleyen Mark Liu-lxfModerator 07 Mayıs 2012 Pazartesi 05:24
-
26 Nisan 2012 Perşembe 03:23Moderatör
Hi Elochai,
Welcome to the MSDN forum.
I have no idea the information about the Beta1 and Beta3 application. But I think the root issue can locate in the differences between beta1 and beta3 application. If there is little changed, you can try to edit the Beta1 to Beta3 step by step to find what is reason.
As I read the exception, it seems that the PunkViewerBeta1.en-CA.Resx file is missing with the path ”E:\PB SS Admin\PunkViewwe\PunkViewerBeta\”. So would you like to check whether the file is there?
Hope this helps.
Mark Liu-lxf [MSFT]
MSDN Community Support | Feedback to us
- Düzenleyen Mark Liu-lxfModerator 26 Nisan 2012 Perşembe 03:26
-
03 Mayıs 2012 Perşembe 09:15Moderatör