Click on Create Virtual Directory.ħ.Go to IIS and apply settings noted in step 2. Refresh IIS.Ĥ.Go back to VS 2012 and open settings (right click and select properties) for your web application.ĥ.Select Web.In Servers section make sure you have selected "Use Local IIS Web Server".Ħ.In Project Url textbox enter your application path ( localhost/Application Path). The problem with this solution if you want to add something and after running the program you find the same error, you have to copy the whole application folder in another location again and follow the above stepsġ.Open your solution/Web Application in VS 2012 in administrator mode.Ģ.Go to IIS and Note down the settings for your application (e.g.Virtual directory name, Physical Path, Authentication setting and App pool used).ģ.Remove (right click and select Remove) your application from Default Web Site. In the solution explorer>right click>add an existing item> browse the file Form1.vb from where the folder is copied ( orginal location).From the solution explorer delete the form1.vb ( or may be a different name if it was changed during developing).It will not work since it is just a copy and you will not see the designer click on the application file from there. I am not sure whether it will work for other or not.Ĭopy the whole application folder to another location. But Somehow I got an easy solution for me. "HRESULT E_FAIL has been returned from a call to a COM component"Īnd I could not open the designer view. While developing this sometimes if I run the program to check, it showed the error So if I installed the exe file in the other software it actually install all of its resources and run the program fine. I made the file properties as "content" and "copy if newer" to make deployment. I wrote a simple program to open different folder while clicking on some specific buttons. Now restart VS2017 and try to add a reference to your project again and you should see the Add Reference dialog appear.įor more clarification please follow below link ![]() Version 9.0Ĭopyright (c) Microsoft Corporation. Gacutil -i .11.0.dllĬ:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\PublicAssemblies>gacutil -i .11.0.dll Run the following command to register the assembly in the GAC: Mine was:Ĭ:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\PublicAssemblies Open the Develop Command Prompt for VS2017 (ensure you run the as administrator otherwise the GAC registration may fail)Ĭhange the current directory to the PublicAssemblies folder for your Visual Studio 2017 installation. ![]() ![]() You can follow these steps to register this assembly in the GAC: It seems that to bring up the Add Reference dialog in Visual Studio 2017 the .11.0.dll needs to be regsitered in the GAC.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |