Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compile Errors in Visual Studio 2005 after conversion

Status
Not open for further replies.

barbjoy

Programmer
Jan 23, 2009
11
US
I was wondering if someone could give some idea of how to resolve the below compile error:

ASP.NET runtime error: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

The error is related to the web.config file and the .aspx page. If fact I am getting several compile errors associated with the web.config file. Its like its not reading it or something? Another compile error referencing the web.config file below:

Could not find schema information for the attribute 'verb'. D:\....\Visual Studio 2005\
 
do you have .net 2.0 sp 1 installed? this may remedy the error.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
I am responding from home so I don't have that answer handy. I downloaded the .iso's of Visual Studio 2005 Professional off the web page. Anyway, how can I find that answer? Where would I look?
 
Visual Studio is not the framework.

Look for this folder on the machine:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

If it's not there, then you have to install the 2.0 version of the framework.
 
yes, VS is just an IDE for writing textfiles and compiling them into code:)

you can also check the add/remove programs in control panel. .net 2.0 and .net 2.0 sp1 should both appear in the list.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Thanks for your posts. They are greatly appreciated!!! I'll check on Monday when I return to work and let you know how I make out. If I don't have it on my machine where can I get it from? I don't see Visual Studio 2005 .net service pack 2 on site ....
 
I do have this folder on my machine...

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

now what?
 
Did you google the error? Everything I found so far is pointing to some AJAX toolkit.
 
Yes, I did google the error but I didn't throughly understand the explanations on how to resolve. I read that the resolution was .net 2.0 framework but as I stated in the prior post I have that folder on my C drive. I only have experience with VS2003. VS 2005 express was not giving me these errors before I installed the full version of VS2005 from Mircosoft. Could have made an error on installation? I accepted the default installation. Also another developer here installed VS2005 using the .iso files I used and is not getting the same errors I am. The below command is in the web.config file.

<controls>
<add tagPrefix="ajaxtoolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
 
I don't see Visual Studio 2005 .net service pack 2
no, you won't the .net framework has nothing to do with Visual Studio. your are looking for .net 2.0 sp1. You can use the .net framework without VS. it's just that VS makes it very easy to use. Visual Studio, however, is dependent on the 2.0 framework.

System.Web.Extensions is where the MS AJAX controls live in 2.0 (in 3.0 >) they are part of the core framework.

you need to install the MS AJAX libraries on the server in addition to the .net framework.


Jason Meckley
Programmer
Specialty Bakers, Inc.
 
o.k. I was ready to re-install the software from the .iso files but instead of choosing to install. I chose to repair/maintenace option from the first screen and the error disappeared. Don't ask me how... Now my only problem is the below error

Namespace or type specified in the Imports 'Oracle.DataAccess.Client' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases
 
o.k. was able to resolve this issue. Seems that a developer here (as instructed) went in a changed all the web.config files in preparation for converion to VS2005 but that information never filtered down. Thats why the below control was in web.config.

Not very familiar with web.config and one of the applications I was converting I never worked on but any way ....

<controls>
<add tagPrefix="ajaxtoolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>

1 - downloaded and installed MS AJAX TOOL KIT
2 - downloaded and installed service pack1
3 - copied .dll to the bin directory

Thanks for everyones help on this issue!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top