473,499 Members | 1,598 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cannot add classes and forms to a .NET project (C#)

Guy
Everytime I try to add a new class or form to .NET C# project, I get the following error

Could not run the 'C:\Program Files\Microsoft Visual Studio .NET 2003\VC#\CSharpProjectItems\LocalProjectItems\..\C SharpAddWinFormWiz.vsz' wizard

(The error is slightly different depending on which type of "thing" I try to add.

I've tried to repair the whole of .NET Visual Studio (and in fact the framework too!), but that has not solved it. Articles I have read have suggested that the problem is to do with AddIn tools. However, I have only added one (the Line Counter tool) to Visual Studio, and even that I have uninstalled and reinstalled prior to reinstalling .NET Studio

Any ideas guys? The problem is not so bad with classes - I can just add a text file and change the extension, but Forms are a bit more annoying, as there is a lot of default stuff that Visual Studio creates when a form is added

Please help!
Nov 22 '05 #1
2 1456
Hello,

Thanks for your post. As I understand, the problem you are facing is that
it fails to add a new class or form to C# project. I'd like to share the
following information with you:

1. Does this problem occurs to a specific C# project or other projects
(say, VB .NET project)? Please register Vslangproj type library as follows
and see if it works:

Regtlib.exe C:\Program Files\Common Files\Microsoft
Shared\MSEnv\vslangproj.tlb

Wizard Fix HOWTO
http://www.petedavis.net/dotnet_articles/wizardfix.html

2. I found a similar issue which was resolved by reinstalling Windows
Scripting Host:
http://msdn.microsoft.com/library/de...ist/webdev.asp

I look forward to your result.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #2
Guy
HuangTM

Thanks for your help

The second hyperlink you posted solved the problem - I reinstalled Microsoft Windows Script 5.6, and everything works again. I've copied your reply in case anything like this happpens again

Thanks again

Guy

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
299
by: Guy | last post by:
Everytime I try to add a new class or form to .NET C# project, I get the following error Could not run the 'C:\Program Files\Microsoft Visual Studio .NET...
1
3956
by: Abdalla Fawaz El-Hawary | last post by:
I have a solution includes 2 projects the 1st one is a class library project and the 2nd is windows application. Normally i can use the classes wich in the 1st project(DLL) after add refrence for...
0
1361
by: Gustavo L. Fabro | last post by:
Greetings! I found myself with a LNK2020 linking problem using VS.NET 2003 under a situation that I was able to replicate in a small project. I found one workaround for the problem too, but...
0
1311
by: L Scott | last post by:
I've created a page ancestry (framework) for our application so that all pages in our app would have the same look and feel. To do this, I created several user controls (header, footer, menu,...
4
1370
by: mharness | last post by:
Hello All, I've defined a number of classes that currently only include public variable declarations. I've been reluctant to add subroutines and functions for fear of taking a performance hit...
8
1155
by: Bruce D | last post by:
I'm developing my first VB.NET application and I want to use good coding technique, but I'm a little confused about 'modules and 'classes'. I have several windows forms that have to connect to my...
5
4006
by: Jay A. Moritz | last post by:
Error: The dependency '<my dll>' in project '<my project>' cannot be copied to the run directory because it would conflict with dependency '<my dll>'. I am getting a dependency error building...
3
1571
by: VMI | last post by:
I posted this in the MS aspnet NG and nobody replied. Hopefully, I'll be luckier here... I have VS .net 2003 v1.1 and I'm trying to view some web pages in the designer form. When I try to do this,...
5
6241
by: =?Utf-8?B?RGF2ZQ==?= | last post by:
I am unable to execute the following statement in my current project. The class PosExplorer is in a dll file (created by Microsoft). PosExplorer explorer = new PosExplorer() but now I get this...
12
2013
by: Nathan Sokalski | last post by:
I have several CustomControls that I have written for my project. However, when I try to compile I recieve the following warning & errors: Warning 32 Could not resolve this reference. Could not...
0
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7220
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5468
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.