Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










[Web Site] How To Change Reference To Local ( From GAC To Bin )


I've got MS Chart control and with a references to GAC.I found them ( C:Program FilesMicrosoft Chart ControlsAssemblies )but how to change GAC to local copy (bin) for comparability with other servers without installed MS Chart control for VS .I've tried to add dll files manually but that was a fail.It's looking like I need to config Web.Config manually.

change it,<add assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>

somehow to move it from GAC to bin , so How ?


View 1 Replies (Posted: Jul 12 10 at 8:13)

Sponsored Links:

Related Forum Messages For ASP.NET category:
.net - Equivalent Of Reference 'Copy Local' In Web Site Project?
I don't see any exact duplicates in the Related Questions above, so here goes. Please don't stone me if it is a duplicate.Is there any way to achieve the same end as setting 'Copy Local' to True on a web application reference? I could probably map a custom config section to the <compilation><assemblies> config section, and simple copy all assemblies to local, but that would be quite rude. Should I be looking at tapping into a build provider or something? I think the main issue here is identifying listed assemblies not normally present on the target platform, but this seems a very difficult task to me without simply using a hard-coded list,

Posted: Nov 25 10 at 15:09

View 2 Replies!   View Related
Howto Get Local Site To Work - Setting To Change The System
I've received a website that uses sql server on the live environment. In the code at many places sql is created, say: However, locally on my dev machine, I use sql server express edition. It looks like select * from mytable doesn't work there, but instead I should use: How can I get my local site to work? Is there a setting I can change or am I missing something else?

Posted: Jan 5, 2010, 03:19

View 5 Replies!   View Related
Visual Studio - Why Does Website Reference Assembly From GAC, When Adding Local Reference
When you use ASP.NET web site (instead of web application model) and add reference to an assembly from local folder, Visual Studio, it seems, understands that this local assembly is also in GAC and so does NOT copy this assembly to bin folder (as it does with non-GAC assemblies), but simply adds new record in web.config file.

Why such a behaviour? Is it possible to force copy to bin folder (I need this since .dll is not on target environment)? I can add assembly to bin folder as file and it will work, but in this case bin folder contents will be in source control, which is not good.

Posted: Jan 7 10 at 16:55

View 3 Replies!   View Related
Web Forms :: Object Reference Not Set To An Instance Of An Object Error When Remove Reference To Site Master Page
in my default.aspx page i have a dropdown List and a textboxwith a submit button below that there are 2 listbox... and the dropdown list holds the names of the listbox

my logic here is to select an item from the dropdown list and put some text in the text box and submit the form which will add an item to the listbox selected.. but when i do this i get an error saying Object reference not set to an instance of an object. i tried to figure out the problem and found that when i remove the reference to the Site Master Page it works fine and when i undo and apply my reference back to the Site Master Page i get the same error.

[Code]....

Posted: Sep 30, 2010 10:46 PM

View 2 Replies!   View Related
Using Javascript Local Reference?
In .Net Ican use the "~/image/image.png"as a referenceto a graphic in the image file in the image folder from whatever file or folder I am working with. How do i use this type of reference in a javascript where I need to reference a source file?

Posted: Jan 25, 2010 04:31 AM

View 4 Replies!   View Related
Site Is Too Slow In Local Machine?
im Developing a site since a very long time,Using a remote database Connection.Previously site in local machine runs fast.But now a days even login takes morethan a min (in Local) but on hosting it runs as fast as it was

Posted: Jan 17, 2011 10:37 AM

View 1 Replies!   View Related
Installation :: Access Local Site From Outside?
I'm aware that this is very basic but I couldn't find it on the internet.I justcreated my local website (stand alone pc, XP-pro, MS Visual studio 2005)When Irun itthe website isaccessable via the localhost but how to access if from

Posted: Oct 30, 2008 09:37 PM

View 12 Replies!   View Related
Configuration :: Hosting The Site On Local Server On IIS 7?
I am trying to host a site on my local system and also tried it on my university server but am finding a great difficulty hosting the site. The site is made in ASP.NET C# and also have silverlight application in it. I am not able to configure or wither host the site on the server. I am having IIS 7 and Windows 7 as the OS. I have enabled IIS 7 on it. (I am using the SQL Server 2005 Express Edition and have almost no knowledge on hosting on IIS 7)

Posted: May 04, 2010 05:09 AM

View 2 Replies!   View Related
Local IIS 4 Site Click Events Not Firing?
What would cause click events to not fire?If I run the Visual Studio debug server everything works fine, but when I run the site off my Windows 7 IIS, buttons just postback without their events firing (breakpoints show Im getting page lifecycle events, but no clicks)

Posted: May 21, 2010 04:45 PM

View 2 Replies!   View Related
Upload Multiple Images From Local Drive Into Site
i want to provide facility to my users to upload multiple images into my website using asp.net 2.0, using single file uploader i.e. want to upload all the image file from a folder.

Posted: Mar 9 10 at 6:51

View 3 Replies!   View Related
Configuration :: Publish Site Into Domain Name Via Local Directory
I have created a website that has one aspx page. I am using visual studio 3.5. I have created a virtual directory on my local pc and tested the app and it wis working. Now I need to delploy it to the domain via ftp> Here is the website folders:

1. App_Code - contain my classes
2. App_Data - contain the sql express database ... myDb.mdf
3. Myaspx page - a single page
4. Web.config

when I run it , it woks, but when I want to deploy it , the site does not work. Here what I am doing .I am publishing the site to a local folder, then upload the complete folder to the right domain name. Yet, get an error

"Error1The process cannot access the file 'B:&#65533;0 2011 demoMarchObjectDataSource_CRUD_CSApp_DataRGN.mdf' because it is being used by another process"

How can I fix this error. I thought when I publish the site, the database would also be included in the site folders, but I may be wrong.

Posted: Feb 27, 2011 08:40 PM

View 2 Replies!   View Related
Pull Image From Remote Site, Save To Local Server?
Writing awebapp that compiles data from multiple sources and displays it on a consolidated screen.It's been pulling RSS and XML feeds, but I'd like it to start displaying images as well. Problem is, our internal app uses https and the sources are all http. Linking directly to the images gives a security warning every time the page loads.Is there some way (Possibly a variation of HttpWebRequest) where I can pull images from a remote site and save them to the local server. Once the images are copied locally, I can re-serve them out via https.

Posted: Jul 01, 2007 12:18 AM

View 6 Replies!   View Related
Security :: WebClient Credential - How To Download Page From Local Site
At one point this was working, but somewhere something happened. What I am trying to do is simply download a page from our local site. I keep getting the 401 unauthorized.

I have tried NetworkCredential("user", "password", "domain")

and

CredentialCache cc = new CredentialCache();
cc.Add(new Uri("http://site/"), "Windows", new System.Net.NetworkCredential("user", "password", "domain"));

but that didnt work . We are using Windows authentication with no anonymous access.

Here is what was once working:

WebClient wc = new WebClient();
string FileName = Server.MapPath(\App_Data\rpt.htm);
wc.Credentials = CredentialCache.DefaultCredentials;
wc.DownloadFile("http://site/Report.aspx?OrderNum=7534&Type=inv&BE=1", FileName);

Posted: Mar 03, 2010 09:02 PM

View 1 Replies!   View Related
.net Site Tries To Contact A Local Sql Server First (Causes Delays On Page Loads)?
We have a site that upon every page load, it tries to contact a sql server on the local machine. It does not contact localhost, but the actual IP of the local machine. It fails, then contacts the correct DB server for membership information.In dev, apparently the server was contacting the local sqlexpress server, then contacting the correct DB as well. Only when we stopped the localmachine dev SQLExpress could we recreate the issue. We had removed entries in machine.config, and web.config to .sqlexpress, but the problem still persists.

Posted: Apr 07, 2010 07:42 PM

View 1 Replies!   View Related
Visual Studio :: 2008 Doesn't Debug Local Site?
I'm trying to start debugging site at my local IIS. But VS each time writes me:Unable to start debugging on the web server. The remote debugging components are not registered or runnning on the web server. Ensure the proper of msvsmom is running on the remote computer.Why VS writes remote debug ? I open my project from http://localhost/WebSite How to fix it?I have Win XP Pro SP3, VS 2008 Standard SP1

Posted: Nov 27, 2009 08:12 AM

View 2 Replies!   View Related
Local Report Processing - Change The Timeout Value?
Using the Microsoft Report Viewer Control to render a local report seems to operate differently than a server report with regard to the timeout options that can be specified.

I am processing a localreport, and after about 30 seconds of trying to get the data back frommy SQL Server 2005 stored procedure,I get a TimeOut Exception. I have read that the timeout is set to 30 seconds, so this makes sense. Myquestions is, forlocal report processing how do you change the timeout value?

Posted: Apr 09, 2010 02:31 PM

View 18 Replies!   View Related
C# - Can One Local .resx String Reference Another Local .resx String
I am trying to determine if it is possible to add a concatenated string to one of my local .resx files. This example should clarify:

Let's say I have a simple ASP.NET webpage composed of (1) a label whose text is an important keyword (2) an input with required field validation and (3) a button that causes validation to occur:

(lblMyInput)
(txtMyInput)
(rfvMyInput)
(btnSubmit)

Now, inside the resource file for this page, we want to localize the strings for the page's controls. However, for our error message, we want to use the literal name of the input's label. This is were my question is.

PSEUDOCODE: myPage.resx

(1) lblMyInput.Text = "Name"
(2) rfvMyInput.ErrorMessage = "The " + lblMyInput.Text + " field may not be left blank."
(3) btnSubmit.Text = "Submit/Validate"

Is there any way to pull off this type of concatenation of one resource file's string into another string within the same file?

Posted: Jun 18 10 at 20:03

View 1 Replies!   View Related
Change Localhost To Local Ip Address Of Pc When Host Application On IIS?
I host my asp.net application with wcf service on IIS 7 and I want that this location could be possible at adress of my computer in lan, that other in network could get to it..

Now it looks like: http://localhost/wcfAx/Service1.svc

How to do like that : http://192.168.2.33/wcfAx/Service1.svc?

Posted: Dec 8 10 at 11:16

View 1 Replies!   View Related
WCF / ASMX :: Add A Web Reference To A .Net 1.1 Site From Visual Studio 2010?
I am facing a problem reated to web services. A customer is running his website on an old server running .Net Framework version 1.1. We would like from this site to call a Web Service, how can I do that. I have Visual Studio 2010 intalled on my machine and when I use the option "Add Web Reference" the generated files/folders seem to not be compatible.

Posted: Dec 13, 2010 10:48 AM

View 1 Replies!   View Related
Visual Studio :: Reference A Dll And An Associated Config File In Web Site?
I am using VS 2005 to build a web site.I have a .NET DLL assembly (let's call it xyz.dll) it is unusual in the sense that it has an associated config file (xyz.dll.config).At runtime xyz.dll needs to be able to read from its config file. I added the dll as a reference and it and its config file are placed in the bin.Of course, this isn't working as expected. In debug mode the file must reside in the solution folder.

Posted: Dec 01, 2009 03:29 PM

View 1 Replies!   View Related
Security :: VS2008 Development Server (local Host) & Hosted IIS7 Site Different Configuration - How To Test Application
How can I test an application that I am publishing to a remote provider's IIS7 hosted site, with the VS2008 development server that is built in with VS2008 on an XP Machine?

My membership/roles work perfectly up on the remote host. On ths hosted IIS7 site when I try to access a secure directory it redirects to login, and I am able to login, however when I launch (debug - F5) from VS2008, it will provide that folder/resource, no questions asked. Same build, config, etc... nothing has changed.

I am running XP, and local IIS version installed is 5.1.

My guess is what is happening is that the new format required in the web.config is configured properly for IIS7 deployment, which is why it works remotely, but when running locally through VS2008/XP it is running with an older version on IIS and does not recoginize the new tags.

Posted: Mar 19, 2010 02:17 PM

View 3 Replies!   View Related
Visual Studio :: "Copy Local" Option On A Reference Not Working?
I'm having a problem with an asp.netWeb Application Project. The project references a class library project and I don't want the output (the dll file) nor the referenced dlls of that project to be copied to the web application's bin folder.If I set the "Copy Local" option on the referenced assembly to False, the assembly, and it's dependencies, should not be copied to the output folder, right?However, the assembly always gets copied to the output folder along with all its references.

Posted: Mar 03, 2008 09:42 PM

View 6 Replies!   View Related
To Change The Paypal Web Reference?
I have a site in asp.net and I use paypal sandboox what I need to do now ? (if I need to change the web referfnce what is url ? at sandbox is Works fine .

Posted: Mar 10 at 17:46

View 1 Replies!   View Related
Change The CookiePath In Webconfig To Save All Cookies Files In A Certain Folder In Local Machine?
- Could you please tell me how can I change the cookiePath in webconfig to save all cookies files in a certain folder in local machine?

Posted: Feb 09, 2009 11:53 AM

View 3 Replies!   View Related
How To Change A Web Reference In A Production .NET Website
Our web reference does not seem to be defined in web.config of the website that consumes it. I found that there is a configuration file called "Reference.map" in the "Web References" folder that looks editable, but when I edit them nothing happens. I even renamed the WSDL file in the folder to see if it would get a new one. It did not.

Do I have to do a build just to change the URL of a referenced Web Service?

Posted: Feb 25 10 at 16:06

View 1 Replies!   View Related
Web Forms :: Reference The Images On Masterpage So They Work Both On Pages In The Root Of Web Site And In Sub Folders?
I have a MasterPage which is in the root folder of my web. The MasterPage contains an image which is stored in a folder called Imaages which is below the root folder. The reference in the MasterPage is:

<imgsrc="Images/LeagueHeader.gif"alt="LeagueHeader"/>

[Code]....

The pages in the sub folders work, but the ones in the root do not.How do I reference the images on my Masterpage so they work both on pages in the root of my web site and in sub folders?

Posted: Aug 19, 2009 05:15 PM

View 1 Replies!   View Related
WCF / ASMX :: Change Web Service Reference At Run Time?
I have web project and class projects. one of the Class project has web reference. and i am consuming it in web project.Question: can I change class projects web reference url depending on environment DEV, Release, Test?Question: While in runtime why does not web reference's url take value from app.config?(it is taking value from Settings.settings.)

Posted: Nov 12, 2010 02:12 AM

View 1 Replies!   View Related
Databases :: How To Change Assembly Reference To Oracle.DataAccess In Prod
In development I installed "ODAC Entity Framework and LINQ Beta (11.2.0.2.30)" so that we could have a 32 bit version of Oracle.DataAccess for ODP.Net. In Visual Studio 2010 (on Windows Server 2008 R2) I made a reference to:

C:Oracleodp.netin4Oracle.DataAccess.dll.This adds: <add assembly="Oracle.DataAccess, Version=4.112.2.30, Culture=neutral, PublicKeyToken=89B483F429C47342" /> to the assembly in the web.config.

We set the AppPool to Enable 32 bit applications and everything works great. For anyone who doesn't know the story here, we do this because Visual Studio 2010 runs in 32 bit so you need the 32 bit ODAC/ODP.net components to get a development environment running. I then publish the files and move to a 64 bit machine.

I downloaded the "ODAC112021Xcopy_x64.zip" Then ran: install.bat odp.net4 c:oracle odac and I can see the Oracle.DataAccess.dll file at: C:Oracleodp.netin4Oracle.DataAccess.dll. Then added c:oracle;c:oraclein;c:oraclein4 to the System Path.

At this point I would think I just replace the version and PulbicKeyToken in: <add assembly="Oracle.DataAccess, Version=4.112.2.30, Culture=neutral, PublicKeyToken=89B483F429C47342" />
on production to the versioin installed on prod. So first thing I do is just remove that line on production to see what error I will get. And I still get the same error:

System.IO.FileLoadException: Could not load file or assembly 'Oracle.DataAccess, Version=4.112.2.30, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Actually this is if I move the new dll into the applicaitons bin directory. If I remove the dll from the directory I get: Could not load file or assembly 'Oracle.DataAccess, Version=4.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The system cannot find the file specified.

So I put the line back in.

I right click on on the new Oracle.DataAccess.dll and click properties. In the details tab I see verion is 4.112.2.0. That makes sense. The 64 bit XCopy version is an earlier build then the 32 bit Beta that comes with Entity Framework and LINQ(Version=4.112.2.30).

So on production I change the Version attribute to: 4.112.2.0. But now I get the same error: System.IO.FileLoadException: Could not load file or assembly 'Oracle.DataAccess, Version=4.112.2.30, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
(This is with the new dll back in the web app's bin directory as is the rest of the thread).

It's still looking for the same version of the assembly. Why is it doing that? The web.config has a connection string with the ODP.Net provider type (Oracle.DataAccess.Client). Which would take from the assembly reference. It should not care what the version number is. Could there be something in code somewhere that is specifically looking for the old dev box version? Just what is the way to make it use the new assembly?

I would think the system would just know where to find the new dll. Just as in development the add reference dialog knew that the dll was in c:oracle... rather then c:program files(x86)... like out-of-the-box Microsoft assemblies.

Posted: Mar 08, 2011 12:45 PM

View 2 Replies!   View Related
Error From IIS When I Change Web Site To .NET 4.0?
VWD 2010 Express. IIS 6.0.

I have five web sites on my IIS 6.0 server. All but one of them (the one I am trying to change) is set to use ASP.NET 2.0.50727. I changed one of my sites to use ASP.NET 4.0.30319.0. Now when I run this site I get get "Server Application Unavailable" andI get an application error (in my system event log) that says,It is not possible to run two different versions of ASP.NET in the same IIS process. use the IIS Administration Tool to reconfigure your server to run the application in a separate process.

Posted: Jun 30, 2010 03:03 PM

View 10 Replies!   View Related
Visual Studio :: Change Tool To Reference A SQL DB Stored On SQL 2005 Express?
How can you change this tool to reference a SQL DB stored on SQL 2005 Express? It keeps wanting to reference the DB in the APP_Data folder.

I've created a connection string to the SQL DB which works for browsing around the site, but not for this tool.

Posted: Sep 23, 2009 06:49 PM

View 7 Replies!   View Related
Web Forms :: Can Add A StyleSheet Reference In A Web Content Form To Change The Look And Feel Of An Accordion
How can I add a StyleSheet reference in a Web Content form to change the look and feel of an accordion

Posted: Mar 11, 2011 09:23 AM

View 3 Replies!   View Related
C# - Change Web Site Theme For Client From MaterPage
I need to change website theme (css) by clicking button on Master Page.

protected virtual CSSClick (_sender : object, _e : System.EventArgs) : void
{
//Session("Theme") = "Advanced";
}


Google & MSDN didn't gave me the answer :( So no matters on C# or VB.NET , just how to make it ?

Posted: Aug 12 10 at 12:10

View 2 Replies!   View Related
Web Forms :: Users To Change The Theme Of Site?
this is my code, i want my users to change the theme of my site.


[Code]....

Posted: Feb 02, 2011 02:51 PM

View 4 Replies!   View Related
Localization :: Change Language Of Site By Using Session?
I have no knowledge about sessions but I realize that using sessions in multi-language sites are very useful. How can I implement language selection by using sessions and sql database?

Posted: Jul 13, 2010 12:01 PM

View 3 Replies!   View Related
MVC :: Site.master Image Paths Change?
I have a problem with my paths.hen I look at the default page that has my logo on the site.master the image (on site.master) shows fine in my browser:http://localhost:50033/Img/Logos/ahn_logo.pngAs soon as I click on a link like "About Us" the view gets returned but the image path is now:http://localhost:50033/Home.aspx/Img/Logos/ahn_logo.pngand it does not show.Why does the path of the master page image change ?

Posted: Mar 03, 2010 06:27 PM

View 3 Replies!   View Related
Change Site Title And Meta Tags?
i have an admin form where the admin controls the site and i want him to be able to change the site's title and meta tagsmy question is where is the best place to store these information

Posted: Jan 27, 2009 10:50 AM

View 10 Replies!   View Related
Configuration :: Change Framework From 3.5 To 4.0 Now Site Doesn't Even Load?
Changed the framework in VS2010 for the project from 3.5 to 4.0, did a build, and the error is pretty basic, and just says "HTTP Error 404 - File or directory not found. Internet Information Services (IIS)".

I made sure IIS is set to 4.0, and have a separate App Pool. Any other tricks to get a 3.5 site to 4.0?

Posted: Sep 22, 2010 05:22 PM

View 2 Replies!   View Related
Crystal Reports :: Error Object Reference Not Set To An Instance Of An Object When Run The Site
I have the following code in my form load that loads the reports and assigns it to crystalreportviewer control. If Not IsPostBack Then

[Code]....

Following is the ApplyCRLogin Class

[Code]....

Now when I run the site it prompts me for the parameters and when I enter them and click on OK, I get the following error. "Object reference not set to an instance of an object." But the strange thing is if I comment the "If Not IsPostBack Then" condition, my report works fine. The problem is even when I want to go to the next page in report, the code get executed again and this takes time. Is there any other way to fix this?

Posted: May 27, 2010 06:09 PM

View 3 Replies!   View Related
To Change The MVC Web Project To "Use Local IIS Web Server" / MVC Fails To Run ?
I'm using MVC 1.1, VS10, .NET 4 on Windows 7 (build 7000). Created a new MVC project in VS10; and it ran fine if the MVC Web project "Use Visual Studio Development Server" option. If I change the MVC Web project to "Use Local IIS Web server" in the project
web setting. The MVC fails to run with the following error message.

HTTP Error 500.21 - Internal Server Error

Handler "e;PageHandlerFactory - Integrated"e; has a bad module "e;ManagedPipelineHandler"e; in its module list.My IIS 7.5 is configured and runningon my Windows 7 machine.

Posted: Jun 09, 2009 10:01 PM

View 4 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved