if the machine support .net3.5, .net2.0 project can reference .net3.5 aseembly and can load and call the functions.
But why .net2.0 project or .net3.5 project can not reference .net4.0 assembly even the machine support .net4.0
View Complete Post
When running my Windows Forms project in the debugger using F5 it uses the assembly version in the GAC in stead of the actual project referenced, thus ignoring the changes I make to my reference project.
If I remove the assembly from the GAC it works, but I woul like to be able to develop and test my assembly withoud having to remove my installed version first every time.
What is the best way to achieve this? Giving my reference project a defferent version number for instance?
Is this behaviour considered a bug that will be patched any time soon?
I have the following projects in a solution :
- A Web Application
- A Class Library
- A Web Deployment project
The Web Application compiles and run fine when I don't go through the Web Deployment Project. However when I try to use that, I get the following error:
"An error occurred creating the configuration section handler for hibernate-configuration: Could not load file or assembly 'NHibernate' or one of its dependencies. The system cannot find the file specified. (F:\Folke\Folke.csproj_deploy\Release\web.config line 4)"
This is the beginning of my Web.config:
<? Project dependency / reference and 3rd party dlls missing hi,i'm having the same problem in multiple solutions and i asked for help in a couple of "forums" already.... here is an easy explaination about my problem.we have 3 projects:Project "A" - a web applicationproject "B" - class libraryproject "C" - class libraryProject C holds a reference to a 3rd party dll. let's say thirdparty.dll. the 3rd party dll is referenced in the C.csproj file with a relative path and private = true (copy local = true): <Reference Include="ThirdPartysNameSpace.BlaBla, Version=188.8.131.52, Culture=neutral, PublicKeyToken=0912345678910123, processorArchitecture=MSIL">
</Reference> Project B holds a project to project reference to Project C.Project A holds a project to project reference to Project B.when i compile project C the thirdparty.dll is copied to its bin directory. C's bin directory contains C.dll and thirdparty.dll - correct so far.however when i then compile project B the thirdparty.dll isn't copied to project B's bin directory! B's bin only contains C.dll and B.dll. why isn't project C's bin content copied to B's bin?(sure thirdparty.dll is also missing in project A's bin directory.
There is a C#.net libraray project whose dll name is customer.dll. It has a class name customer with a function name show(). I want to call this function from another project but dont want to add reference to the caller project. Can this be done? Is there any C#.net class that can acheive this?
I had my solution all good before I tidy up my class library projects.
Since then I keep getting "could not get dependencies for project reference 'project.dll' " everytime i compiled my website.
I read on the web, that it could be a namespace problem. I've fixed all my namespaces and the problem still exists.
Does anyone has any suggestio how to solve this issue ?
Thank you for your help,
I have to admit first, that for the last few years, I've been mostly an MVP guy versus MVC. However, how I used to implement MVP is very similar to how MVC 2 is now implemented. I only have one issue with it...
When I used to create MVP apps, I could put all my logic (presenters, models) into separate assemblies/projects in the solution and my views into the main web app. This allows me to change the UI (i.e. the web based UI) to something else like a smart client or Silverlight or whatever and still have everything just work. With MVC 2, everything is all in the same project: controllers, views, models. Areas looked like a good start, but ultimately, not what I was looking for.
So, here's my question... How do I move the controllers and models out of the web project and into their own projects and still have everything work? A good, simple example would be the default MVC 2 web application template. When you open a new (non-empty) MVC web application, it creates a basic site for you. From there, how could I move the controllers and models in separate projects and still have everything just work? I can't seem to find anything on this anywhere else which has brought me here seeking help.
Whenever I try to change to Assembly Name, and 'Root Namespace' of my WPF application, it makes hundreds of errors in my project!
I'm not a programmer, I just paid a developer to create this project for me, and now I want to change the Assembly name.
How can I change the name properly without creating all these errors? I basically just right click on the project> Properties>Application tab and change it there.
I imagine the errors are something to do with references to the name in the code not automatically changing (there are no errors prior to changing the name).
I have an dought on adding name space in project. In one one of my project I want to add "System.SserviceModel.Web" name space. But the name space is not in .net tab of refence dialog box. How can I add this reference to the .net tab window?
System.Exception was unhandled by user code
Message=System.IO.FileLoadException: Could not load file or assembly 'IReportDef, Version=184.108.40.206, Culture=neutral, PublicKeyToken=ac2eee5c6b52ff89' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'IReportDef, Version=220.127.116.11, Culture=neutral, PublicKeyToken=ac2eee5c6b52ff89'
at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName)
at System.Data.XSDSchema.SetProperties(Object instance, XmlAttribute attrs)
i have a windows service that sends information to another project(let's call it Project A) that hosts a wcf service. the windows service business rules are in another project(project B) within the same solution. Do i have to add the service reference(to
wcf service) in both projects (windows service and project B) in order to communicate with project A?
thank you in advance!
Trying to remote debug ASP website from VS2010 Pro to Windows Server 2003 machine. Specifically, trying to debug a Web Service, but breakpoint says, "The breakpoint will not currently be hit. No symbols have been loaded for this document." This happens for all compiled code though. I have read this is due to missing PDB files and the work around is to manually copy them, as noted here. Problem is, I cannot find any PDB files for my project, except referenced libraries, which I can remote debug.
This is beyond frustrating. I migrated my code from VS2008 .Net3.5 to VS2010 .Net4.0 to take advantage of the inherent multithreading framework. Debugging works when using local host and was stable until deployment to test server.
Thanks in advance,
Seems like a stupid question, but I will go to Build > Build Solution many many times and the build will succeed many many times, then I will put in a minor syntax error and the build will fail, BUT the build will not fail because of the minor syntax error; it will fail because of an unresolved type that I put in about twenty compiles ago. And then I will fix the minor syntax eror, and the compiler will still complain about the unresolved type. Here is my code:
<%@ Register TagPrefix="FTB" Namespace="FreeTextBoxControls" Assembly="FreeTextBox" %><html><body> <form runat="server"> Hello World!! </form></body></html>
Pretty simple, really. I go to Buld > Build WebApplication1 and it runs OK. Now, if I put in a minor syntax error, such as substitute "forrrrrrrm" for "form" and then try to Build Solution, it complains not about the misspelled word, but about the FreeTextBox. And then if I correct the misspelled wird, it still complains about the FreeTextBox. Which leads me to believe that Building the Solution does not check absolutely 100% everything that needs to be checked. Is there a more thorough way of compiling a program that I need to use?
is it possible to convert whole visual studio 2008 web site project to visual studio 2010 web site project
my current project references
i have a very annoying iis problem
iis server stops working until app pool is recycled
i am hoping that new visual studio (net framework 4.0) may solve this very annoying unsolveable problem