Configuration :: How To Release Different Version Of .dll
Aug 27, 2010
Visual Studio 2008 I have web application in production where Web project is using Business project (.dll). Now i have made some changes in Business and need to move, say business.dll, to production. I am changing the version number of new business dll. While deploying it is giving error (System.IO.FileLoadException: Could not load file or assembly... ) and web project is not able recognige business.dll becuase version has changed now. I do not want to release web project as there are no changes there.
We have an application that is already deployed in the production environment. And currently it is using Dundas evaluation version. We tried updating it to the licensed version by simply pasting the dll file. but we got the error message as "The file has not been pre-compiled and cannot be requested".
I'm on Windows Server 2008 with IIS 7.5 I have set up two web applications on the web site; one for the debug-build and one for the release-build for our system. I have not been able to figure out how to setup the two web applications so that they do not share the same native module.
I have tried many different configuration but obviously there is something I do not understand.
These are the changes I have made to applicationHost.config:
Under the section <globalModules> the following to rows are added at the end:
<add name="RXDebug" image="g:workspaces ewreposdebuginRXWeb.dll" /> <add name="RXRelease" image="g:workspaces ewrepos eleaseinRXWeb.dll" /> The web.config for the debug-application looks like this: <?xml version="1.0" encoding="UTF-8"?> <configuration>............
I am working on an ASP.NET web app using Visual Studio 2008 and a third-party library.
Things are fine in my development environment. Things are also good if the web app is deployed in Debug configuration. However, when it is deployed in Release mode, SerializationExceptions appear intermittently, breaking other functionality.
In the Windows event log, the following error can be seen:
"An unhandled exception occurred and the process was terminated.
Message: Unable to find assembly 'MyThirdPartyLibrary, Version=126.96.36.199, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89'.
StackTrace: at System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly() at System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name) at System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String memberNames, BinaryTypeEnum binaryTypeEnumA, Object typeInformationA, Int32 memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
Using FUSLOGVW.exe (i.e., Assembly Binding Log Viewer), I can see the problem is that IIS attempts to find MyThirdPartyLibrary in directory C:windowssystem32inetsrv. It seemingly refuses to look in the bin folder of the web app, where the DLL is actually located.
I have source-version of project and i need to deploy it on IIS. General project it properly deploy using VS2008, but issue is, if new revision is created then i need to point new source to deploy web-site. In this case i need to remove created virtual dir for previous version. Is this possible to toggle virtual directory between two sources. I think one solution is to change virtual directory path to new one.
I have developed a small website which is working on SQL server.. And also found Deployment process which is working well in my system. But my actual need is when I am deploying a project there should be some time limit to work that particular application like a trial version to give demonstration to others.
Here is my problem: But i had searched few forum on that, the problem is framework version. However, all the while the pc is using same framework v1.1.4322. After i compile the dll at folderA for example, the i copied it to folderB due to using same dll. Just that, cause the below error.
We have a web application(.net 3.5 on IIS7) which is currently referencing a specific version of a third party dll (abcpdf6.dll). I would like to move this reference from the project to the web.config and assign it an alias so when a new version becomes available I can just change the reference in one place.
My Exe had a reference to a older version of a dll in the GAC both old & new versions are present in the config file i have given the binding redirect setting to refer the new version of the dll , thouhg when exe is running it is still refering to the old version , could some one shed some light here.
I have 3 dll's compiled and put inside the bin dir of a website. They were referenced some time ago on a different computer with their respective source code.
I don't have the original source code for this version (all 3 dlls are like one app. They use each other functions) but I do have a newer version.
What I wanted to do was to completely remove any reference for the old version and just add a reference to the new version dlls. I tried:
Rightclick on dll---> delete , tried: look inside project file,sln, anywhere - web.config etc. to find the reference ..... Nothing. The old dlls come back after I recompile.
One of the new dlls has a different name than the same one in the older version. When I replace the older versions with the new ones and add the third dll with the different name and delete the older one and recompile. The older one just comes back from nowhere, and I get an error that I have some functions running both on the older dll and the newer one and it won't compile.
How do I completly remove the older version so I can start over with the new one?
We are developing a web site and in this site we have a link to a clickonce deployed application. This is a direct link to the executable (Remote share execution). For this to be possible the client must have .NET framework SP2 installed. The problem is i need to get the SP version of the clients machine. I can access client information using Request.UserAgent but this doesn't have a clue about the service pack.
I would like to make the build information for the running web application but I dont know where I set or configure this nor do I know how to retrieve this information.
In a project you may set the build information in the file AssemblyInfo.cs under the projects Properties folder. Here is a snippet of the AssemblyInfo.cs file:
But there is no such file for an web application project, so I have to get this information from one of the compiled DLLs that is in the same assembly as my web application then? Or how is this done?
The reason I want this information is because my customer would like to have a webpage within the web application where he could see the current version. This is also nice to have when testing and debugging etc.
I installed Cahrt control of ASP:Net and It works fine on local. I made neccessary changes on web.config but When I deploy it to my site I am getting the error ! It says as below;
Server Error in '/' Application.
Description:An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load file or assembly 'System.Web.DataVisualization, Version=188.8.131.52, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
I want to make a deployment package for my asp.net 3.5 application. Actually i have to send this to my client who would run this application on his intranet. I tried setup n deployment package type project and it created .msi file.while installing this it create all the files which are lying in the project application. But i want to send all the files in complied format only not directly code files.
How could i convert the aspx.cs files into nonreadable complied files..
I am developing a .NET 3.5 web application. We are using some of the Microsoft Reporting tools, which are a pain but a digress, and when I deploy, I get errors when trying to load the site.
This is the error:
However, my web config reads:
I specify 184.108.40.206 in everything. The only concern I have is that the build server uses .NET 4.0 but I have specified to build with 3.5 and on my deployed server I have the 220.127.116.11 dll files for the report viewer. why the server is looking for 10 when everything says 9?