[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

add dll to folder

when I right click and add reference to my project, it is not adding to System.Web.Extensions.dll this to my bin folder, what is the steps I need to take?
0
jaws1021
Asked:
jaws1021
  • 13
  • 6
  • 5
  • +1
3 Solutions
 
crisco96Commented:
System.Web.Extensions won't be added to your bin because it is in the GAC (global assemblly cache), if you look at your web.config you'll see a new section in it called assemblies that references the dll.
0
 
felipecslCommented:
Please check the CopyLocal property of your reference. Make  sure it is set to True. If not, it won't be copied to your output directory. What exactly are you trying to do?
0
 
felipecslCommented:
If you are trying to reference a .NET dll, it wont be copied to your bin directory because it is in the GAC, as crisco commented.
0
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
strickddCommented:
Looks like felipecsl gave you the second opinion you need...
0
 
jaws1021Author Commented:
how to check the CopyLocal property of your reference, I don't know where is that?

I am trying to add this to my project so, I hopefully don't get error messages from ajax update panel controls is not recognized my html tag, even though I declared those , it says not declared and puts red highlights to each controls inside the update panel..
0
 
crisco96Commented:
The dll doesn't need to be in you bin folder, it's in the gac
0
 
crisco96Commented:
Ok your problem is that you don't have all the necessary properties in your web.config, it should look as follows:

<?xml version="1.0"?>
<configuration>
      <configSections>
            <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                  <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                              <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
                              <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                              <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
                        </sectionGroup>
                  </sectionGroup>
            </sectionGroup>
      </configSections>
      <appSettings>
            <!-- some app settings -->
      </appSettings>
      <connectionStrings>
            <!-- some connection strings -->
      </connectionStrings>
      <system.web>
            <customErrors mode="RemoteOnly" />
            <pages>
                  <controls>
                        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                  </controls>
            </pages>
            <compilation debug="true">
                  <assemblies>
                        <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                  </assemblies>
            </compilation>
            <authentication mode="Windows"/>
            <httpHandlers>
                  <remove verb="*" path="*.asmx"/>
                  <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                  <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                  <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
                  <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>
            <httpModules>
                  <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </httpModules>
      </system.web>
      <system.webServer>
            <validation validateIntegratedModeConfiguration="false"/>
            <modules>
                  <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </modules>
            <handlers>
                  <remove name="WebServiceHandlerFactory-Integrated"/>
                  <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                  <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                  <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            </handlers>
      </system.webServer>
</configuration>
0
 
felipecslCommented:
If you select the reference in the References section of you project, go to properties (or press F4). With the reference selected, you'll have some options in the properties window, including the "CopyLocal".
However, that doesn't seem to be your problem, since this does not have to be in your app directory. Check your web server .NET version. Something else seems to be wrong
0
 
strickddCommented:
I would recommend re-installing AJAX just to be sure it gets added to the GAC. Then I would also recommend making sure it is installed on the server you are running it on.
0
 
jaws1021Author Commented:
I could open up properties page and see reference that dll there, as like you said gac. I couldn't see copylocal ,
how can I check webserver .net version?

I feel like dummie here guys :)
0
 
strickddCommented:
Since it is in the GAC it will NOT allow you to copy local and if you do get a copy locally there will be some interesting version conflicts one the server you move it to.

Take a look into mine and Crisco96's responses, they should help.
0
 
jaws1021Author Commented:
I want to make sure I am doing these correct way,

I reinstalled ajax and then, I goto and need to add sections to my existing web.config file, it says

 ((The following example shows the <system.webserver> element for ASP.NET AJAX. Add this section to the existing Web.config file as a child of the <configuration> element.))

Is that means, what ever in my webconfig file now, leave it that way and scroll down and add these section top of the existing one or go thru each section and add the missing stuff to it? I am confused about that, saying as child of .. ?

0
 
jaws1021Author Commented:
disregard this above, I am taking crisco's web config and modifying..
0
 
jaws1021Author Commented:
I also have to add namespaces inside pages tag right?
0
 
crisco96Commented:
Things you had in your web.config before you should keep, just add anything to your web.config that isn't in the example above.
0
 
jaws1021Author Commented:
I did that and still gets same error, so I am thinking, maybe sometimes I am running from different server that maybe it is not installed, how can I check and see which server I am running and can I see if it is installed on that server?
0
 
crisco96Commented:
If it's not installed on the server you will see an error about not being able to reference the dll.  Try creating a new website, make sure to select Asp.net Ajax enabled website and see if that will work.  If that doesn't then it's not installed, if it does work then make sure to merge that web.config with your web.config
0
 
jaws1021Author Commented:
I did that and same errors. I cannot believe, what I want to know, sometimes, errors dissappers then comes back..
Errors starts like that
Error      2      Validation (Internet Explorer 6): Element 'contenttemplate' is not supported.

Error      12      Element 'BoundColumn' is not a known element. This can occur if there is a compilation error in the Web site.            
0
 
jaws1021Author Commented:
The thing is I installed ajax..
0
 
jaws1021Author Commented:
guys any ideas?
0
 
strickddCommented:
These sound like issues with IIS setup. Make sure that the application is set to the proper ASP.Net version.
0
 
jaws1021Author Commented:
I looked it is set to right version, what else? My the other non ajax projects has no problems. I am so frustrated with this thing.
0
 
strickddCommented:
If you are setting you site to publish or deploy, try not doing that. Remove all files from the server and then move every file in your website out.
0
 
jaws1021Author Commented:
I didn't understand what I am going to do Strickdd?
0
 
strickddCommented:
When you move your site to your server, what do you do? Do you "Publish Website" do you have a web deployment project, what do you do?
0
 
jaws1021Author Commented:
I just fun from localhost, didn't move to server yet.
0
 
jaws1021Author Commented:
this was something to do with me copying whole project folder from my inetpub to my documents, then, take it from my documents to paste inetpub again. I don't do that again. It was nothing to do with anythinga bout web.config or iss. Thank you all for trying help.. You all deserved some points.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 13
  • 6
  • 5
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now