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

Jul 12, 2010

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


Similar Messages:

.net - Equivalent Of Reference 'Copy Local' In Web Site Project?

Nov 25, 2010

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,

View 2 Replies

Howto Get Local Site To Work - Setting To Change The System

Jan 5, 2010

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?

View 5 Replies

Visual Studio - Why Does Website Reference Assembly From GAC, When Adding Local Reference

Jan 7, 2010

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.

View 3 Replies

Web Forms :: Object Reference Not Set To An Instance Of An Object Error When Remove Reference To Site Master Page

Sep 30, 2010

in my default.aspx page i have a dropdown List and a textbox with 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]....

View 2 Replies

Using Javascript Local Reference?

Jan 25, 2010

In .Net I can use the "~/image/image.png" as a reference to 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?

View 4 Replies

Site Is Too Slow In Local Machine?

Jan 17, 2011

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

View 1 Replies

Configuration :: Hosting The Site On Local Server On IIS 7?

May 4, 2010

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)

View 2 Replies

Local IIS 4 Site Click Events Not Firing?

May 21, 2010

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)

View 2 Replies

Upload Multiple Images From Local Drive Into Site

Mar 9, 2010

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.

View 3 Replies

Configuration :: Publish Site Into Domain Name Via Local Directory

Feb 27, 2011

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

"Error 1 The 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.

View 2 Replies

Security :: WebClient Credential - How To Download Page From Local Site

Mar 3, 2010

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);

View 1 Replies

.net Site Tries To Contact A Local Sql Server First (Causes Delays On Page Loads)?

Apr 7, 2010

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.

View 1 Replies

C# - Can One Local .resx String Reference Another Local .resx String

Jun 18, 2010

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?

View 1 Replies

WCF / ASMX :: Add A Web Reference To A .Net 1.1 Site From Visual Studio 2010?

Dec 13, 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.

View 1 Replies

Local Report Processing - Change The Timeout Value?

Apr 9, 2010

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 local report, and after about 30 seconds of trying to get the data back from my 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. My questions is, for local report processing how do you change the timeout value?

View 18 Replies

Change Localhost To Local Ip Address Of Pc When Host Application On IIS?

Dec 8, 2010

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?

View 1 Replies

Security :: VS2008 Development Server (local Host) & Hosted IIS7 Site Different Configuration - How To Test Application

Mar 19, 2010

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.

View 3 Replies

To Change The Paypal Web Reference?

Mar 10, 2011

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 .

View 1 Replies

How To Change A Web Reference In A Production .NET Website

Feb 25, 2010

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?

View 1 Replies

WCF / ASMX :: Change Web Service Reference At Run Time?

Nov 12, 2010

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.)

View 1 Replies

Databases :: How To Change Assembly Reference To Oracle.DataAccess In Prod

Mar 8, 2011

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.

View 2 Replies

Error From IIS When I Change Web Site To .NET 4.0?

Jun 30, 2010

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" and I 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.

View 10 Replies

Web Forms :: Can Add A StyleSheet Reference In A Web Content Form To Change The Look And Feel Of An Accordion

Mar 11, 2011

How can I add a StyleSheet reference in a Web Content form to change the look and feel of an accordion

View 3 Replies

C# - Change Web Site Theme For Client From MaterPage

Aug 12, 2010

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 ?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved