473,320 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

No option to add class file to web site in VS2005

Hello,

I have just noticed that when I choose to add a new item in VS2005,
there's no option to add a .cs file to the web site. It doesn't metter
which folder is selected when I click Ctrl-N, there's no option for
adding a class file.

I tried running "devenv /installvstemplates" based on advice I saw in
another forum, but this didn't help.

I know I can just add a text file and change the extension, but I would
be interested to know why this is happening, and how I can fix it.

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)
Oct 18 '07 #1
6 1466
Try resetting your development settings.

"Tools", "Import and Export Settings", "Reset All Settings".

Save your current settings, if you want to,
and choose "Web Development Settings" as the final choice.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Alan Silver" <al*********@nospam.thanx.invalidwrote in message news:ZE**************@nospamthankyou.spam...
Hello,

I have just noticed that when I choose to add a new item in VS2005, there's no option to add a .cs file to the web
site. It doesn't metter which folder is selected when I click Ctrl-N, there's no option for adding a class file.

I tried running "devenv /installvstemplates" based on advice I saw in another forum, but this didn't help.

I know I can just add a text file and change the extension, but I would be interested to know why this is happening,
and how I can fix it.

TIA

--
Alan Silver
(anything added below this line is nothing to do with me)

Oct 18 '07 #2
under program files\microsoft visual studio 8\web\WebNewFileItems

you will find a template file folder for csharp, vb and vjsharp

inside are the template files for each language. somehow you are missing
the c# one (did you skip installing C#).

switching to web application won't help as it uses the same template files.

-- bruce (sqlwork.com)
Alan Silver wrote:
Hello,

I have just noticed that when I choose to add a new item in VS2005,
there's no option to add a .cs file to the web site. It doesn't metter
which folder is selected when I click Ctrl-N, there's no option for
adding a class file.

I tried running "devenv /installvstemplates" based on advice I saw in
another forum, but this didn't help.

I know I can just add a text file and change the extension, but I would
be interested to know why this is happening, and how I can fix it.

TIA
Oct 18 '07 #3
re:
!did you skip installing C# ?

If the OP can create a C# project, he must have installed C#.

Maybe the project is a VB.NET project ?
No C# class file can be added, if that's the case.

If C# support is installed, and the project is a C# project,
and the template files are in VsInstallDir\web\WebNewFileItems,
he should regain the ability to add C# files by resetting VS's web settings.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"bruce barker" <no****@nospam.comwrote in message news:%2******************@TK2MSFTNGP02.phx.gbl...
under program files\microsoft visual studio 8\web\WebNewFileItems

you will find a template file folder for csharp, vb and vjsharp

inside are the template files for each language. somehow you are missing the c# one (did you skip installing C#).

switching to web application won't help as it uses the same template files.

-- bruce (sqlwork.com)
Alan Silver wrote:
>Hello,

I have just noticed that when I choose to add a new item in VS2005, there's no option to add a .cs file to the web
site. It doesn't metter which folder is selected when I click Ctrl-N, there's no option for adding a class file.

I tried running "devenv /installvstemplates" based on advice I saw in another forum, but this didn't help.

I know I can just add a text file and change the extension, but I would be interested to know why this is happening,
and how I can fix it.

TIA

Oct 18 '07 #4
This also fixes a slew of other issues such as certain nonresponsive keyboard
keys and so on.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Juan T. Llibre" wrote:
re:
!did you skip installing C# ?

If the OP can create a C# project, he must have installed C#.

Maybe the project is a VB.NET project ?
No C# class file can be added, if that's the case.

If C# support is installed, and the project is a C# project,
and the template files are in VsInstallDir\web\WebNewFileItems,
he should regain the ability to add C# files by resetting VS's web settings.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"bruce barker" <no****@nospam.comwrote in message news:%2******************@TK2MSFTNGP02.phx.gbl...
under program files\microsoft visual studio 8\web\WebNewFileItems

you will find a template file folder for csharp, vb and vjsharp

inside are the template files for each language. somehow you are missing the c# one (did you skip installing C#).

switching to web application won't help as it uses the same template files.

-- bruce (sqlwork.com)
Alan Silver wrote:
Hello,

I have just noticed that when I choose to add a new item in VS2005, there's no option to add a .cs file to the web
site. It doesn't metter which folder is selected when I click Ctrl-N, there's no option for adding a class file.

I tried running "devenv /installvstemplates" based on advice I saw in another forum, but this didn't help.

I know I can just add a text file and change the extension, but I would be interested to know why this is happening,
and how I can fix it.

TIA


Oct 18 '07 #5
In article <#B**************@TK2MSFTNGP02.phx.gbl>, bruce barker
<no****@nospam.comwrites
<snip>
>inside are the template files for each language. somehow you are
missing the c# one
Nope, there is a file called Class.cs right there.
(did you skip installing C#).
Nope, I only use C#, and have done so ever since installing VS2005.

Thanks anyway

--
Alan Silver
(anything added below this line is nothing to do with me)
Oct 18 '07 #6
In article <eQ**************@TK2MSFTNGP04.phx.gbl>, Juan T. Llibre
<no***********@nowhere.comwrites
>Try resetting your development settings.

"Tools", "Import and Export Settings", "Reset All Settings".

Save your current settings, if you want to,
and choose "Web Development Settings" as the final choice.
Thanks Juan, but it didn't help. I still don't have the option to add a
class file.

Any other ideas? Thanks again

--
Alan Silver
(anything added below this line is nothing to do with me)
Oct 18 '07 #7

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

Similar topics

16
by: | last post by:
Hi , We have a lot of code which runs fine under VC++ 6.0. We have to move to ..NET becasue one of the librairies uses .NET classes. Does every library(including those which do not use .NET...
7
by: Owen Mortensen | last post by:
(This code was working in asp.net 1.1 VS2003. After upgrade to VS2005, chokes): in the aspx file: <ItemTemplate> <asp:datagrid id="dg_instr" runat="server" AutoGenerateColumns="False"...
16
by: Robert Dufour | last post by:
Here's the class code snippet Imports System.Configuration.ConfigurationManager Public Class Class1 Public _strTestSetting As String Public Sub SetTestsetting()
13
by: active | last post by:
With VS2005 the windows form designer uses the files *.Designer.vb I hope no one at MS is reading this because I know it will upset them to know - I like the old way better! I've been looking...
4
by: =?Utf-8?B?U3VzaGlTZWFu?= | last post by:
I have question about how create solution file for exist project? So I open vs2005, File->Open web site and select dir with my site. So this site loaded but it doesn't have solution. How I can...
1
by: ollielaroo | last post by:
Hi guys, Firstly I did do a search for this one first but I couldn't find anything related in this forum. I am using Dreamweaver MX and trying to build admin pages for an ASP site. My problem is...
3
by: rmgalante | last post by:
I have a pretty large web site with about 400 files after I precompile it. When I use the VS2005 Publish tool and publish to an FTP site, which is running IIS, most of the attempts hang after about...
2
by: DDD | last post by:
I have a web site project using C#. If I release the web site in the VS2005, all works well except that DLL file name has some strange, name APP_Code_erwer234.dll. And erwer234 is a random string....
2
by: Reggie | last post by:
Hi and TIA! I have a class file located in my root directory with all me web pages. I call/use the class and it works fine. I have no imports statements aspx or codebehind. My question is why? ...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.