I have Microsoft Visual Studio 2010 Professional installed and have been using it for over a year.
Recently I download & attempted to install the nopCommerce example application. This installed the Microsoft Web Platform Installer, IIS 7.0 Extensions, Microsoft Visual Studio 2010 Express, Microsoft SQL Server 2008 R2 & Microsoft WebMatrix and possibly
others which I do remember.
I then had problems in VS with Master Pages & Web Forms Using Master Pages in all existing ASP.Net Web Applications & new ASP.Net Web Applications which gave the following error on line 1 of the .aspx files:
Site.Master:ASP.NET runtime error: Could not load file or assembly 'Microsoft.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
I reinstalled/reapplied VS Service Pack 1 but this did not solve the problem.
As I was not able to resolve the above problem I followed the following steps:
I uninstalled VS in Control Panel following steps I found on the Microsoft website. However, when I clicked on Change/Remove for Microsoft.NET Framework 4 Client Profile & Microsoft.NET 4 Extended to remove them they both gave this error message:
Setup encountered an unexpected error in the package contents. The package will not be installed. Please contact your vendor for a new package.
I installed both of them again and tried to remove them both but still got this error. I finished the rest of the uninstall for VS
I then reinstalled VS & ran all of the updates. I also installed .NET Framework 4 Platform Update 1 (KB2478063) and .NET Framework 4.0.2 I have gone through this whole process twice.
Now in VS when I Ctrl-F5 for my SiteMaster I get this error message:
Could not load file or assembly System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
The result of all of the above is that I am no longer able to use VS. So far I have not had any replies on the forums which have been able to help me solve the problem. Is there any way I can get Microsoft or MSDN involved in helping me solve the problem,
either by Email or on the internet?
The warning was coming from the library that used the "missing" library.
Most probably you have a different version of the System.EnterpriseServices assembly in the global cache
Please add the reference to the application which called the library which called the "missing" library.
Please check the following linK:
Thank you for the reply. I used gacutil.exe to solve the problem with the System.EnterpriseServices assembly but I then received my original error message again:
Site.Master:ASP.NET runtime error: Could not load file or assembly 'Microsoft.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
I have uninstalled VS & Microsoft.NET twice but still receive this error. This was all done on Windows XP.
As I also have Vista installed on the same computer I booted up to Vista, installed VS 2010 Professional and copied my project to a new folder. No errors were given in VS when booted up to Vista. Both copies of the project work OK when booted up to Vista.
Both copies of the project give the above error when booted up to XP.
The problems are:
the Assembly folder for XP and Vista both have the exact same objects, 411 in each
there is no assembly called Microsoft.WebPages.configuration.dll anywhere on my computer for both XP and Vista so I can not install it in the GAC as was done with the System.EnterpriseServices assembley
I have done a text search of all files in both project folders (XP & Vista) for the wording Microsoft.WebPages.Configuration and no files were found containing this wording.
I know the obvious solution would be to boot up to Vista but for other reasons I always boot up to Xp so I need to get VS working in XP.
Thanks to all who replied. I have finally solved the problem after uninstalling and reinstalling VS & .NET framework 3-4 times. What I did was to delete the following 2 lines in the Web.config file located in C:\Windows\Microsoft.NET\Framework\v.0.30319\Config
folder of Windows XP as these 2 lines were not present in the equivalent file of Windows Vista
Why this file should have impacted on my project I do not know as I would have expected
VS to have been using the Web.config file in my project folder and not the Web.config file in the C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config folder.
Now I can get back to development instead of problem solving.
Thanks to all who replied. I have finally solved the problem after uninstalling and reinstalling VS & .NET framework 3-4 times. What I did was to delete the following 2 lines in the Web.config file located in C:\Windows\Microsoft.NET\Framework\v.0.30319\Config
folder of Windows XP as these 2 lines were not present in the equivalent file of Windows Vista
Why this file should have impacted on my project I do not know as I would have expected
VS to have been using the Web.config file in my project folder and not the Web.config file in the C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config folder.
Now I can get back to development instead of problem solving.
Alan
No.. It creates another issue. You will not be able to access "Web Site Administration Tool".
In Solution Explorer, last menu "ASP.NET configuration", you will find you will not be able to open up new page for "Web Site Administration Tool".
custcomp
Member
86 Points
31 Posts
Help needed urgently please - I am no longer able to use VS
Jan 20, 2012 03:43 AM|LINK
I have Microsoft Visual Studio 2010 Professional installed and have been using it for over a year.
Recently I download & attempted to install the nopCommerce example application. This installed the Microsoft Web Platform Installer, IIS 7.0 Extensions, Microsoft Visual Studio 2010 Express, Microsoft SQL Server 2008 R2 & Microsoft WebMatrix and possibly others which I do remember.
I then had problems in VS with Master Pages & Web Forms Using Master Pages in all existing ASP.Net Web Applications & new ASP.Net Web Applications which gave the following error on line 1 of the .aspx files:
Site.Master:ASP.NET runtime error: Could not load file or assembly 'Microsoft.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
I reinstalled/reapplied VS Service Pack 1 but this did not solve the problem.
As I was not able to resolve the above problem I followed the following steps:
I uninstalled VS in Control Panel following steps I found on the Microsoft website. However, when I clicked on Change/Remove for Microsoft.NET Framework 4 Client Profile & Microsoft.NET 4 Extended to remove them they both gave this error message:
Setup encountered an unexpected error in the package contents. The package will not be installed. Please contact your vendor for a new package.
I installed both of them again and tried to remove them both but still got this error. I finished the rest of the uninstall for VS
I then reinstalled VS & ran all of the updates. I also installed .NET Framework 4 Platform Update 1 (KB2478063) and .NET Framework 4.0.2 I have gone through this whole process twice.
Now in VS when I Ctrl-F5 for my SiteMaster I get this error message:
Could not load file or assembly System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
The result of all of the above is that I am no longer able to use VS. So far I have not had any replies on the forums which have been able to help me solve the problem. Is there any way I can get Microsoft or MSDN involved in helping me solve the problem, either by Email or on the internet?
Thanks, Alan
postonoh
Member
498 Points
259 Posts
Re: Help needed urgently please - I am no longer able to use VS
Jan 20, 2012 03:55 AM|LINK
http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/thread/c1cab62a-bbd7-4c6c-bd84-da0aa2521b6d
check out the website
http://www.pearsonassessmentsupport.com/support/index.php?View=entry&EntryID=2461
custcomp
Member
86 Points
31 Posts
Re: Help needed urgently please - I am no longer able to use VS
Jan 20, 2012 04:18 AM|LINK
Hi,
Thanks for the tip. I am just leaving for work so I will try it out when I get home this evening.
I am holding thumbs it solves my problem.
Thanks again, Alan
Hua-Jun Li -...
All-Star
75950 Points
5608 Posts
Re: Help needed urgently please - I am no longer able to use VS
Jan 23, 2012 02:17 AM|LINK
Hi,
The warning was coming from the library that used the "missing" library.
Most probably you have a different version of the System.EnterpriseServices assembly in the global cache
Please add the reference to the application which called the library which called the "missing" library.
Please check the following linK:
http://forums.asp.net/t/956018.aspx/1
http://geekswithblogs.net/lorint/archive/2010/03/21/138639.aspx
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
custcomp
Member
86 Points
31 Posts
Re: Help needed urgently please - I am no longer able to use VS
Jan 24, 2012 04:44 PM|LINK
Hi Hua-Jun Li
Thank you for the reply. I used gacutil.exe to solve the problem with the System.EnterpriseServices assembly but I then received my original error message again:
Site.Master:ASP.NET runtime error: Could not load file or assembly 'Microsoft.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
I have uninstalled VS & Microsoft.NET twice but still receive this error. This was all done on Windows XP.
As I also have Vista installed on the same computer I booted up to Vista, installed VS 2010 Professional and copied my project to a new folder. No errors were given in VS when booted up to Vista. Both copies of the project work OK when booted up to Vista. Both copies of the project give the above error when booted up to XP.
The problems are:
the Assembly folder for XP and Vista both have the exact same objects, 411 in each
there is no assembly called Microsoft.WebPages.configuration.dll anywhere on my computer for both XP and Vista so I can not install it in the GAC as was done with the System.EnterpriseServices assembley
I have done a text search of all files in both project folders (XP & Vista) for the wording Microsoft.WebPages.Configuration and no files were found containing this wording.
I know the obvious solution would be to boot up to Vista but for other reasons I always boot up to Xp so I need to get VS working in XP.
Alan
custcomp
Member
86 Points
31 Posts
Re: Help needed urgently please - I am no longer able to use VS
Jan 25, 2012 12:26 AM|LINK
Thanks to all who replied. I have finally solved the problem after uninstalling and reinstalling VS & .NET framework 3-4 times. What I did was to delete the following 2 lines in the Web.config file located in C:\Windows\Microsoft.NET\Framework\v.0.30319\Config folder of Windows XP as these 2 lines were not present in the equivalent file of Windows Vista
remove assembly="System.Web.WebPages.Deployment, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
add assembly="Microsoft.WebPages.Configuration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Why this file should have impacted on my project I do not know as I would have expected VS to have been using the Web.config file in my project folder and not the Web.config file in the C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config folder.
Now I can get back to development instead of problem solving.
Alan
gonghaima
Member
2 Points
1 Post
Re: Help needed urgently please - I am no longer able to use VS
Jul 14, 2012 04:30 AM|LINK
No.. It creates another issue. You will not be able to access "Web Site Administration Tool".
In Solution Explorer, last menu "ASP.NET configuration", you will find you will not be able to open up new page for "Web Site Administration Tool".