.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

New appliesTo attribute on assemblyBinding element in web.config after upgrading website for Visual

Posted By:      Posted Date: September 21, 2010    Points: 0   Category :.NET Framework

We just upgraded from Visual Studio 2008 to Visual Studio 2010. We had to convert our projects and solutions, but we thought no changes were need for regular ASP.net websites. However, Visual Studio 2010 modified the assemblyBinding element in the web.config file to include the appliesTo attribute. The website is still targeting .net 3.5 and will be for a little while until we upgrade everything to 4.0.

So, is this attribute necessary? If so, why? We had hoped we didn't need to update all our websites solely for the purpose of using Visual Studio 2010 as we have a lot of them. We'll take the effort to upgrade them when we finally change them to target .net 4.0. Until then, is the web.config change necessary?

Here is what we had in web.config before the upgrade to Visual Studio 2010:

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

View Complete Post

More Related Resource Links

UpdatePanel is not a known element - message when upgrading to 1.0 ajax


It worked on one of my old pages.  I change the web.config, renamed all the <asp.

On some aspx page it doesn't recognize the updatepanel.  It only does on one page.  If I create a new aspx page with a different name - then it works.

Should I just create a new web project ajax - then copy all my code into there?  Or is there a way to get those old pages to recognize the new ajax controls?

Exclude Folder from Website in Visual Studio


For projects such as forms apps and class libraries you can exclude folders which reside in the directory from the project. That menu option does not seem to exist when you create a website in VS 2005, is there any way to do it?



Login database with visual studio 2010 asp website template


Has anyone deployed a website using the login database in the visual studio 2010 asp website template? I was wondering if I could look at someone's example to see how the integrated this into their website.

'Unspecified error' doing sp_xml_preparedocument on XML element with a long attribute

In SQL Management Studio 2008 (connected to SQL 2005 database), I get this:The XML parse error 0x80004005 occurred on line number 2, near the XML text "<item value="&#xD;&#xA;libname...Msg 6602, Level 16, State 2, Procedure sp_xml_preparedocument, Line 1The error description is 'Unspecified error'.When I do this declare @doc nvarchar(max), @idoc int set @doc = '<item value="&#xD;&#xA;libname..." />' EXEC sp_xml_preparedocument @idoc OUTPUT, @doc when the value of the @value attribute is actually a string of somewhat over 830000 characters.If I truncate the string somewhat, the statements execute successfully.Anyone know how to fix this?  (and "use shorter attributes" is not an acceptable answer :-)I would use XQuery except that I can't figure out how to get the equivalent of @mp:id and @mpparentid to give me the hierarchical structure information I need.  If anyone knows how to do that, I'd appreciate a hand there too!  

Validation(): Attribute 'Factory' is not a valid attribute of element 'ServiceHost'

Hi, I'm using REST WCF3.5. In my .svc file, the Factory attribute is giving me Warning in the Visual Studio Team Suite saying "Validation(): Attribute 'Factory' is not a valid attribute of element 'ServiceHost'." <%@ ServiceHost Language="C#" Debug="true" Service="RestService" CodeBehind="~/App_Code/RestService.cs" Factory="AppServiceHostFactory" %> using System; using System.ServiceModel; using System.ServiceModel.Activation; using Microsoft.ServiceModel.Web; class AppServiceHostFactory : ServiceHostFactory {  protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)  {   WebServiceHost2 host = new WebServiceHost2(serviceType, true, baseAddresses);                 // Add the basic authenticator interceptor   host.Interceptors.Add(new BasicAuthenticationInterceptor(    System.Web.Security.Membership.Provider, "foo"));   return host;  } } I've added the reference as well & Everything works fine but I was wondering why am I getting this warning?? Thanks!  

Posting data to a website (HTTPS) from a Desktop Application in Visual Basic (.Net 3.5 or .Net 4.0)

Hello everyone, I'm trying to create a desktop application that will update my IPv4 address to an IPv6 Tunnel broker.  I have the app running up to the point where it sends the data to the website, and then I get exceptions.  I'd like someone to take a look at my code, and tell me what I've got wrong (if anything).  Here's the code that I have (the only portion that is filled in is for Hurricane Electric) Dim strUsername As String = txtUsername.Text.ToString 'User Id supplied by the User. Dim strPassword As String = txtPassword.Text.ToString 'Password supplied by the User. Dim strPasswordHash As String = "" ' this will be created from the hashing of the password supplied by the user. Dim strTunnelID As String = txtGlobalTunnelId.Text.ToString 'Global Tunnel ID (He.net and ) Dim strUrl As String = "" ' Place holder for the URL Which will be provided after the password is hashed and specified by the tunnel broker. Dim strTunnelBroker As String = cbxTunnelBroker.SelectedItem 'Sets the Tunnel Broker to the user specified one. Dim wc As New WebClient() 'Allows for posting data to the server 'holds the server response. Dim strData As String = "" 'Provides the data for the form. Dim result As String = "" Select Case strTunnelBroker Case

How to fix "Validation(): Element 'xxxx' is not supported" Visual Studio 2010

Since about a month ago,I started to get validation warnings at design time on asp.net server controls (any control actually) within the html design view for VS 2010,intellisense on all controls would not work at all,the messages look like this: Validation(): Element 'Label' is not supported. Validation(): Element 'GridView' is not supported ....etc The compilation done successfully but the warnings still exist and intellisense is not working at the source tab I tried to reset the settings of VS 2010 ,disabled all extensions and few other ideas but none of them solved the issue,I got stuck. I did a search over the internet about this issue and found this article on Doug Kennard's blog: http://www.gotknowhow.com/articles/fix-validation-element-not-supported-visual-studio-2010 Splendid,that article is a life savior.

web.config - adding css friendly adapters to existing website

Hi Forum,  Please help me with the major headache I've wasted hours trying to figure out!  I have done everything explained in the tuturial to add css friendly adaters to an existing site and still no luck.  I am thinking that it has to do with modifying my current web.config file to use the css adapters.  Problem is, I can't find any specific instructions as to what I have to do to the current web.config file to make the site compatible with the css adapters!  I tried to modify the config file based on what on the example, but nothing seems to work.  Any help would be greatly appreciated!  Thanks, D

Help... Edit .Net 1.1 Website in Visual Studio 2005

is it possible to edit a Website using .Net framework 1.1 in Visual Studio 2005.. I have imported this website to VS 2005.. after the conversion, it cannot be run in localhost using .Net 1.1 help!!

Visual Studio Hangs when Creating a New Website or Project

Greetings, Just as the subject says, my VS'05 installation hangs when trying to create a new website.  I even installed a fresh version of VS08 along side '05 and '08 is doing the same.  Any ideas on a fix or where to look? Thank you in advance. 

Linq to xml to retrieve element value by its attribute

Can someone please tell me how to select the mac element value.  Here is my code that not working.  Thanks. Attempt1:        '* from string        Dim xdoc As XDocument = XDocument.Parse(xmlString)        Dim LQElements = From xe In xdoc.Elements("mac") _                         Where xe.Attribute("type").Value = "eth" _                            Select xe.Value        For Each LQElement In LQElements            Dim mytype As String = LQElement.ToString        Next Attempt2: '* from string Dim xdoc As XDocument = XDocument.Parse(xmlString) Dim LQElements = (From xe In xdoc.XPathSelectElements("//mac") _ Where xe.Attribute("type") = "eth" _ Select New With { _ .type = xe.Attribute("type").Value, _

Website is ignoring System.Web.HttpForbiddenHandler and allowing download of web.config

My website is allowing the web.config file to be downloaded. However in my C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config file I have this line <add path="*.config" verb="*" type="System.Web.HttpForbiddenHandler" validate="true"/> Which should mean any config file can't be downloaded. What am I missing?

how to convert web application to website in visual studio 2008

Dear all,                      I have to integrate web application into website. What are the changes i have to do. I need information very urgently. can any one help here. 

Visual studio converting from website to web application

I have followed the MSDN instructions in converting an VS 2008 Website project into a VS 2008 Web application project. I am running across the following two issues, let me know if anybody has any suggestions:1) When using the "Convert to Web Application" option, it shows an error "Generation of designer file failed. Unknown server tag XXXX"Most of the server controls are registered in web.config with:<add tagPrefix="UControls" namespace="APP_NAME.UI.WebApp.Utils" assembly="APP_NAME.UI.WebApp"/>How can I make the web application converter recognize the web.config settings?2) After the convertion above, when I try to compile the project I get errors of the form "Name 'CETest' Is not decaled". These are classes from an external library in the code behind files. The code behind files on the old website did not use "Imports" but again relied on web.config "<add namespace="APP_NAME.Business.Entities"/>"Is it possible to not use imports in the code behind file for web application ilike n the website project? Or is there other alternatives? Or will this be fixed if #1 is fixed?Any suggestions would be appreciated.

Visual Upgrading with Powershell

Hi, is there a Powershell command that allow me Visual Upgrading different Sites in a script after a Database attached migration?  Thanks

how to compile a website in Visual Web Developer 2010 Express



I created a "website" in VWD 2010 Express.  The project contains no bin folder and I can't seem to compile it.    I don't have a web host, so for now I'd like to run my site on "localhost" on my machine: i.e. I'd like to drop the DLL (if there is one) and my aspx files into a folder on my hard drive and run the site from there.  The site runs if I open VWD and run the asp.net web server, but I would prefer to not have to open VWD each time I want to load my site.  Thanks.

Visual studio 2010 missing ajax and no web.config when creating new project



when i opened my Visual Studio 2010 i noticed that my ajax tab was missing from my toolbox and ajax control kit too.

Then i noticed even that when i create new website, there is no web.config in it and it should be.


please help, this is urgent (can't do nothing without ajax)

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend