|
I have installed visual studio 2003 on my computer.When trying to run an application it gives me error message that unable to start debugging on web server this project is not configured to be debugged.I have installed IIS on my computer but it still gives me this error.What could be the reason behind this is it the IIS.What are the steps that i can take to resolve this error.Also one more thing that when initially i tried loading project in it i was asked for a conversion to the required format using visual studio conversion wizard.Originally the project was developed in visual studio 2003.
|
|
|
|
|
Dear, Try this
Go to IIS -> Right Click on you project directory -> In Directory Tab->Click on Application Setting's Create Button-> Click Ok
It may resolve your problem...
Otherwise Google this error.
Be an Eagle, Sky is Yours.
|
|
|
|
|
I have an assembly, which when is strongly types, returns incorrect results(A large Flaoting No) . But when the same assembly, has delay signing on the functionality works OK.
This assembly make use of the Legecy DLLs create in C++.
As I understand, there Strong Naming is linked with integrity of the assembly and doesnot effect the functionality.
Can some one please advise me if what could be the possible issue here.
Regards
Vineet
|
|
|
|
|
If your assembly is signed, it will only work with the versions of the referenced DLLs referenced when it was signed. If you recompile a legacy dll and the versioning changes, you will have to either re-sign the assembly or edit the configuration file for the assembly (or the exe using the assembly) to allow the new versions.
Note: you should not be signing an executable, only shared dlls should be strong named.
See this for detailed help[^]
|
|
|
|
|
I started using .NET C# with framework 1.0 , upgraded my applications through VS 2000 , 2003 , 2005 and now 2008 . each upgrade will install the new framework on my computer . Now I have all these .NET framework related applications which is taking large space
Microsoft .NET compact framework 1.0 SP3 Developer
Microsoft .NET compact framework 2.0 SP2
Microsoft .NET compact framework 3.5
Microsoft .NET Framework 1.1
Microsoft .NET Framework 1.1 Hotfix (KB928366)
Microsoft .NET Framework 2.0 Service Pack 2
Microsoft .NET Framework 3.0 Service Pack 2
Microsoft .NET Framework 3.5 Service Pack 2
, currently I am using VS2008 , can I remove application related to frameworks prior to 3.5 .
thanks
|
|
|
|
|
You should have done so as you upgraded.
only two letters away from being an asset
|
|
|
|
|
You can uninstall all of the .NET 1.x versions. Everything at 2.0 and above is dependant on the 2.0 CLR, so you cannot remove them. You must leave 2.0 and 3.0 in place in order to use 3.5. I think the .NET Framework will get a new CLR with the release of 4.0. Someone else is going to have to confirm or deny that though. I don't have the resources available to test it at the moment.
|
|
|
|
|
You should not remove ANY of them, as you may have applications that depend on them. Given the large disks on modern systems, the amount of space used by the framework binaries is pretty trivial. Vs2008 requires .Net 2.0 and all subsequent frameworks, so at most you could only remove the 1.0 and 1.1 frameworks. If you remove these, and it breaks an application that needs them, you will end up installing everything from scratch. Best advice is to leave well enough alone. Find something else to clean up if you are low on disk space, or think about moving to a larger drive.
|
|
|
|
|
hi every body..... am a student and need help over an issue....have been given .exe file of a customized media player with a few related dll's and library files. the player actually displays the video but uses the sound to generate a numeric data over screen. how can i get the algo or code for this player when i dont have the source code available....
looking forward for help please
|
|
|
|
|
raysabro wrote: am a student
Good, here is your first assignment, read this. Hint, look at item 3
http://www.codeproject.com/Messages/3122367/How-to-get-an-answer-to-your-question.aspx[^]
If the code is written in .NET you can use a tool like Reflector to look inside otherwise you'll need a decompiler. However, be warned that if this is commercial software the EULA most likely prohibits decompiling.
only two letters away from being an asset
|
|
|
|
|
Hi
I have associated a WPF application with a file(say abc.vdp)
When abc.vdp is clicked on ,application will be launched .
Before loading ,all data from folder where abc.vdp is residing will be copied into a temp folder.
When application is closed actual folder and files will be deleted and temp folder contents will be copied.But while deleting exception "folder cannot be deleted ,it is being used by another process" is thrown.This happens only if launched by .vdp files.
When executed through code folder gets deleted without exceptions.
Any idea on why is this happening ?
Please suggest a solution.
|
|
|
|
|
The only explanation is that you still have a file open in that folder.
|
|
|
|
|
Greeting,
I want to know to code an application to be multi-threaded one and each thread run on different processor using Visual Studio 2005?
Any help will be thankful if it fits into the content of this message...
Thank you..
|
|
|
|
|
You start by understanding threading and designing your app properly. Noone can tell you what to do because we know nothing of your application, data and synchronization rquirements, or anything else useful about your app. There are many different methods that can be used and various options that go with each, so it's pretty much impossible to tell you based on the information you supplied.
I suggest you start by Googling for "vb.net threading" and start reading everything you can.
|
|
|
|
|
Mr. Dave..
Thank you for being interest of such a topic..
I want to know only if it is easy to do so or not...
My application is a utility that run on windows server 2003 on computer of 4 processors..
when running this utility it will execute only on one processor and the others are not involved..
So, is multi-threading the answer to make all processors involved in executing this application. If it can be the solution, then what you think of how I could start implementing...
Thank You..
|
|
|
|
|
Whether Multithreading is the proper solution, again, depends on WHAT THE UTILITY IS DOING. Is it easy to do? That depends on what you want to have each thread do.
|
|
|
|
|
DND wrote: So, is multi-threading the answer to make all processors involved in executing this application
What is stopping you from trying it out? Operating system manages the threads and it's scheduling. On a multi-processor system, it may utilize multiple processors to execute the code in parallel or it may use time-slicing and use only one processor. You don't have any control over this.
DND wrote: If it can be the solution, then what you think of how I could start implementing...
As I said, write code and see how it behaves. Proper threading can improve application performance drastically. Threading is not very trivial. So I suggest to refer a good book before you start writing code. Here[^] is the best one you can get online.
|
|
|
|
|
Adding threads may help getting the job done sooner if:
- there are separable parts that could run concurrently (hence the algorithm isn't intrinsically sequential);
- AND you don't already have enough threads to utilize all cores.
As soon as your CPU load is close to 100%, adding threads won't help, and may even work against you.
All this assumes:
- you execute threading correctly (with sufficient synchronization);
- you don't have polling/waiting/busy loops.
Luc Pattyn
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
You can, of course, write a multi-threaded application using .NET. But you have no choice to decide which processor(s) each of your thread runs on. You just create your threads and start them and the runtime decides which processor(s) to run them on based on what is best for your application.
|
|
|
|
|
How many generations of garbage collection are there in .net? Why?
I was asked this question in an interview? I didn't know what exactly he meant by generations? can some help me in this question.
Thanks
KSR
|
|
|
|
|
|
AFAIK, There are 3 generations, zero, one and two.
All newly allocated objects goes into generation-0. GC walks though the object tree and marks all objects that are reachable. Garbage collection usually takes place in this generation. All the objects that are marked reachable will be promoted to generation-1 assuming these objects are long-living. unreachable objects will be cleaned up and GC compacts the heap. If these objects are again surviving collection, they will be promoted to generation-2. Garbage collection occurs very rarely on generation-2.
This generational algorithm helps GC to work efficiently. When memory is required, GC only needs to scan the generation-0 to free up the memory and other generations are scanned only when necessary. This will avoid scanning all objects that are present for an application.
|
|
|
|
|
In a simple garbage-collection system, memory is allocated from a pool. The pool always has one contiguous chunk of free memory. Each time a new object is created, the system carves off a suitable-sized piece of memory from the bottom of the free chunk. Even if some previously-allocated objects are no longer needed, and their memory could be reused, the system will carve space from bottom the free chunk until there's insufficient space left there to satisfy a request.
When that happens, the system trigger what's called a "garbage collection" cycle, which will check each previously-allocated object in order to see whether it's still used. The first object which is still in use will be moved to the bottom of the pool. The next object which is still in use will be moved immediately after it. Once all the objects have been moved, any space above the last object may be considered part of the free memory pool, from which pieces may again be carved.
Some early garbage-collection systems (like the one used in 1980's Microsoft BASIC) were horribly slow to determine which memory areas were still in use. Later systems have become much better in that regard. Nonetheless, every time a garbage collection takes place, it will generally be necessary to copy every single byte of data which still in use to a new address. This may take a considerable amount of time.
The .net garbage collection system improves upon basic garbage collection by splitting the memory pool into three parts. New allocations are made from the first part. When the first part fills up, rather than copy still-in-use items to the start of the first part, they are added to the end of the second part and the first part is then erased. When the second part fills up, still-in-use items there are copied to the end of the third part and the second part is erased. If the third part fills up, still-in-use items there will be copied to the start of the third part. Since many allocated objects are only used for a very short time, the second part of the memory pool will fill up more more slowly than the first part, and the third part will fill up even more slowly. The net effect of this is that the system's garbage collection efforts will mostly be directed toward cleaning objects which aren't in use, rather than those which are. Since the former type of operation is faster and more useful, this improves performance.
|
|
|
|
|
thanks a lot for raghu, navaneeth and supercat9. I got the answer and understood the explanation.
Thanks
KSR
|
|
|
|
|
Hi All,
I've been struggling with this for a few days now and I need some help. I've looked at the NCoverExplorer Community Forum but it seems that support questions aren't replied to at all so I thought I'd try here. I've never written a build script in my life so I'm still formly embedded in the confused state at the moment.
I'm using TeamCity 4.5, MSBuild & TTD.NET2.0 (NCoverExplorer) and the NCoverExplorer Extras with the MSBuildTask dlls. I cannot get the NCover target to actually work. My script is:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask AssemblyFile="C:\Program Files\Gallio\bin\Gallio.MSBuildTasks.dll" TaskName="Gallio" />
<UsingTask TaskName="NCoverExplorer.MSBuildTasks.NCoverExplorer" AssemblyFile="$(MSBuildProjectDirectory)\Ext\MSBuild\NCoverExplorer.MSBuildTasks.dll"/>
<UsingTask TaskName="NCoverExplorer.MSBuildTasks.NCover" AssemblyFile="$(MSBuildProjectDirectory)\Ext\MSBuild\NCoverExplorer.MSBuildTasks.dll"/>
<UsingTask TaskName="NCoverExplorer.MSBuildTasks.NUnitProject" AssemblyFile="$(MSBuildProjectDirectory)\Ext\MSBuild\NCoverExplorer.MSBuildTasks.dll"/>
<PropertyGroup>
<CoveragePath>$(MSBuildProjectDirectory)</CoveragePath>
</PropertyGroup>
<ItemGroup>
<ProjectToBuild Include="$(MSBuildProjectDirectory)\SampleSort.sln"/>
<TestAssemblies Include="$(MSBuildProjectDirectory)\SampleSort.Tests\bin\Release\SampleSort.Tests.dll"/>
<CoverageFile Include="$(CoveragePath)Reports\Coverage.xml" />
</ItemGroup>
<Target Name="Clean">
<RemoveDir Directories="Application" Condition="Exists('Application')"/>
<RemoveDir Directories="Reports" Condition="Exists('Reports')"/>
<MSBuild Projects="@(ProjectToBuild)" Targets="Clean"/>
</Target>
<Target Name="BuildSolution">
<MakeDir Directories="Application"/>
<MakeDir Directories="Application\Release"/>
<MakeDir Directories="Application\Release\Audio"/>
<MakeDir Directories="Application\Release\Audio\x64"/>
<MakeDir Directories="Application\Release\AudioFile"/>
<MakeDir Directories="Application\Release\Ext"/>
<MakeDir Directories="Application\Release\Int"/>
<MakeDir Directories="Application\Release\Help"/>
<MakeDir Directories="Application\Release\Mods"/>
<MSBuild Projects="@(ProjectToBuild)"
Targets="Rebuild"
Properties="Configuration=Release;Platform=x86">
<Output TaskParameter="TargetOutputs" ItemName="BuildOutput"/>
</MSBuild>
</Target>
<Target Name="Test">
<MakeDir Directories="Reports"/>
<Gallio IgnoreFailures="true"
Files="@(TestAssemblies)"
ReportDirectory="Reports"
ReportTypes="html"
ReportNameFormat="gallio"
ShowReports="false">
<Output TaskParameter="ExitCode" PropertyName="ExitCode"/>
</Gallio>
<Error Text="Tests execution failed" Condition="'$(ExitCode)' != 0" />
</Target>
<Target Name="NCoverExplorerReport">
<NCoverExplorer
ProjectName="TestProject"
ReportType="ModuleClassSummary"
OutputDir="Reports"
XmlReportName="CoverageSummary.xml"
HtmlReportName="CoverageSummary.html"
ShowExcluded="True"
SatisfactoryCoverage="50"
CoverageFiles="@(CoverageFile)"
Exclusions="Assembly=*.Tests;Namespace=*.Tests*"
/>
</Target>
</Project>
The error message is:
Stop time: 21:42 (Total execution time: 12.877 seconds)
C:\TeamCity\buildAgent\work\b4fbc63cd7cc2d0d\SampleSort.msbuild(57,3): error MSB6001: Invalid command line switch for
"NCoverExplorer.Console.exe". Value cannot be null. C:\TeamCity\buildAgent\work\b4fbc63cd7cc2d0d\SampleSort.msbuild(57,3):
error MSB6001: Parameter name: path1
Im basically completely in the dark about how to do this. I've read so many different scripts online that all appear to do it slightly differently that I can't tell what is actually required to get this to work.
Any help really appreciated, I feel like it's groundhog day trying to get this to work.
Thanks,
|
|
|
|