[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.
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,
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?
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.
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.
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
I'm aware that this is very basic but I couldn't find it on the internet.I just created my local website (stand alone pc, XP-pro, MS Visual studio 2005)When I run it the website is accessable via the localhost but how to access if from
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)
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)
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:�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.
Writing a web app 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.
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.
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
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?
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.
(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?
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.
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.
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.
I'm having a problem with an asp.net Web 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.
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?
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:
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.)
In development I installed "ODAC Entity Framework and LINQ Beta (188.8.131.52.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=184.108.40.206, 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=220.127.116.11, 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=18.104.22.168, 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=22.214.171.124, 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 126.96.36.199. 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=188.8.131.52).
So on production I change the Version attribute to: 184.108.40.206. But now I get the same error: System.IO.FileLoadException: Could not load file or assembly 'Oracle.DataAccess, Version=220.127.116.11, 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.
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.