assemblies

ASP.NET: WebResource.axd call 404 error: how to know which assembly/resource is missing or responsible?

折月煮酒 提交于 2019-11-28 19:16:04
I get a 404 HTTP status error (not found) on a specific WebResource.axd call inside an ASP.NET 3.5 (AJAX) web application. I guess the error is thrown because a specific referenced assembly is missing in the bin folder/GAC. But I don't know which, since the page which requests the resource is very complex (I'm using third-party controls and ASP.NET Ajax.) Is it possible to know from the encrypted "d" querystring parameter of the query, like: .../WebResource.axd?d=... which assembly should create the content and is possibly missing? Note: There are other WebRequest.axd calls which execute with

Cannot add System.Web.dll reference

岁酱吖の 提交于 2019-11-28 19:06:06
I'm trying to use the HTTP functions contained in the System.Web.dll assembly. However, whilst the dll seems to exist in the same directory as every other dll Visual Studio 2010 references in my project, it fails to link in and raises a warning - "The referenced component 'System.Web' could not be found". The dll, however, is definitely there within the same folder as all others referenced by the project and selecting it in 'browse for reference' mode allows me to add it - it then fails to fill in the 'Path' property. Am I doing something wrong? How can I make System.Web available in my

Is it possible to Load an assembly from the GAC without the FullName?

丶灬走出姿态 提交于 2019-11-28 18:50:11
I know how to load an assembly from a filename, and also from the GAC. As My .msi file will put a dll project into the GAC, I'm wondering if it's possible to load it from the GAC unknowing the FullName (I mean just with the assembly name, or even the dll filename), because I have to Load this assembly from another project. Here is a piece of code that allows to do this, and an exemple: string path = GetAssemblyPath("System.DirectoryServices"); Assembly.LoadFrom(path); Note if you need a specific processor architecture, since it supports partial name, you can write this kind of things: // load

Maven, Proguard and assembly issues

↘锁芯ラ 提交于 2019-11-28 18:48:54
I'm trying to get Maven working with ProGuard. What I want to achieve is the following: Run ProGuard over my source files and produce obfuscated classes Create a manifest file that references the main class so that I can execute it as a jar Unpack all of the associated library jars and create one huge jar containing them all. This file should only contact .class and .xml files only. Assemble them into .zip and tar.gz files that include various README.txt files and so on. So far I've got something like this: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin<

How to check if an assembly was built using Debug or Release configuration?

时光总嘲笑我的痴心妄想 提交于 2019-11-28 17:46:39
I'm starting deployment of my web application and I need to guarantee that all the assemblies that are going to be deployed were built using Release configuration. Our system was developed using C#/.Net 3.5. Is there any way to achieve this? David Check this . The idea is that you get the list of assembly attributes using Assembly.GetCustomAttributes() and search for DebuggableAttribute and then find if such attribute has IsJITTrackingEnabled property set. public bool IsAssemblyDebugBuild(Assembly assembly) { return assembly.GetCustomAttributes(false).OfType<DebuggableAttribute>().Any(da => da

Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Elmah.MVC issue

点点圈 提交于 2019-11-28 17:06:17
问题 Locally - my MVC 4, asp.net, c# app runs fine on IIS 8 / Windows 8. When deployed to Windows Server 2008, I get this error: Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) and [FileLoadException: Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral,

Assembly version from command line?

99封情书 提交于 2019-11-28 16:48:26
Is there a Microsoft tool to get the assembly version of a DLL file from a command line? (I know that I can code my own tool.) OregonGhost This is an area where PowerShell shines. If you don't already have it, install it. It's preinstalled with Windows 7. Running this command line: [System.Reflection.Assembly]::LoadFrom("C:\full\path\to\YourDllName.dll").GetName().Version outputs this: Major Minor Build Revision ----- ----- ----- -------- 3 0 8 0 Note that LoadFrom returns an assembly object, so you can do pretty much anything you like. No need to write a program. If you use mono and linux,

Should I have a separate assembly for interfaces?

柔情痞子 提交于 2019-11-28 16:37:43
问题 We currently have quite a few classes in a project, and each of those classes implement an interface, mostly for DI reasons. Now, my personal feeling is that these interfaces should be put into a separate namespace within the same assembly (so we have a MyCompany.CoolApp.DataAccess assembly, and within that there's an Interfaces namespace giving MyCompany.CoolApp.DataAccess.Interfaces ). However, somebody has suggested that these interfaces should actually be in their own assembly. And my

Namespace or Assembly?

我只是一个虾纸丫 提交于 2019-11-28 16:17:25
I am getting very confused between Namespaces and Assemblies. Are System.Data and System.Web Namespaces or Assemblies? I have noticed these are called namespaces and at the same time they are present in GAC_32 folder. So what exactly are they? System.Data is a namespace , System.Data.DLL (the file) is an assembly . A namespace is a logical grouping of types (mostly to avoid name collisions). An assembly can contain types in multiple namespaces ( System.DLL contains a few...), and a single namespace can be spread across assemblies (e.g. System.Threading ). Namespace is a logical grouping of

Best practices for assembly naming and versioning?

為{幸葍}努か 提交于 2019-11-28 16:14:08
问题 I am looking out for some good practices on naming assemblies and versioning them. How often do you increment the major or minor versions? In some cases, I have seen releases going straight from version 1.0 to 3.0. In other cases, it seems to be stuck at version 1.0.2.xxxx. This will be for a shared assembly used in multiple projects across the company. Looking forward to some good inputs. 回答1: Some good information from this article on Suzanne Cook's blog on MSDN (posted 2003-05-30): When to