I am using Visual Studio 2005 Beta 2 - I have completed Soup-to-Nuts 1 thru 9 doing them in Visual J# and have had to create all added code and files that appear from one lab to the next, not to mention the problems with the differences in ADO .Net with datasets and table adapters anyway I have go thru that, now Lab 10 deals with Web applications so I decided to revist the Lab "Creating ASP.NET Web Applications with J# - Part 1" I had already done this virtually with VS 2003 but now want to do it on my machine using VS2005 - I am running into a problem right away
for create new project it says to choose ASP.Net Web application template
I could not see one in VS2005 so I chose Fi;e | New Web Site then selected
ASP.Net Web Site ( hope this is the equivalent )
I then seleceted HTTP in Location and entered http://localhost/Lab3-JS-Starter-1 in the textbox beside HTTP and clicked OK
I then get the following message:
Configuring web site 'http://localhost/Lab3-JS-Starter-1' to ASP.NET 2.0 failed. You may need to manually configure this site for ASP.NET 2.0 in order for your site to run correctly.
I do not know what to do about this - please help - thanks

Error Configuring Web Site
PKlammer
You can try issuing following command ...
aspnet_regiis -i -enable
It must do the needful for you. This issue has nothing to do with J#. If you try to create a C# app, then too u will hit this issue.
A far as add-on packages are concerned, the language in which they have been written should not bother us. I am presuming here that these packages are in the form of dlls. If i am right then you can very well use them in any other .net language, not only in j#. Just refer the dll in your project and start using it. You will never face any issue just because dll was written in a language other than J#.
You can certainly write business applications in j#. J# is a complete language and capable of enterprise development. Your customer will not run into any issues just because the application was written in J#. The only point to note is that J# redistributable must be installed on the target machine where application is supposed to run. Beta2 J# redist is freely available here. Once Visual Studio 2005 is shipped, you will be able to download final J# redist also from the same site.
As i have said that J# is full fledge language, using Visual J# and VS2005 should not be a concern. I would recommend you to buy VisualStudio 2005 only which is going to ship in near future as it is much more powerful in all aspects than VisualStudio 2003.
It depends on your requirements that you should buy SQL server or not. We shipped SQL express with Visual Studio Beta2. You can try it and decide accordingly. For any queries related to SQL express/server, i would recommend you to post them on SQL forums.
Please feel free to post back if you have any more doubts. Please do update us abt your decision on using J#.
And yeah, Enjoy your break:).
Thanks.
Anthony Wong - MSFT
Thanks for capturing your questions in great detail.
These look to be primarily related to SQL install as SQLServer 2005 beta should work with .NET 2.0 Beta.
.NET framework 2.0 is not released as yet and thats why you see Beta versions coming out to let customers get a feel of .NET framework 2.0
Having said that, i think SQL team is better placed to answer these specific questions. You might want to post your question on one of the following SQL forums http://forums.microsoft.com/msdn/default.aspx ForumGroupID=19
Please let us know incase you are unable to get satisfactory answers for your questions.
Thanks,
Varun
Desmond Green
OOps, i missed mentioning this:(. You have to issue this command in Visual Studio Command Prompt. This command prompt has the PATH variable set to the paths of all tools/script files shipped with Visual Studio.
The lab projects which you are talking about are just to give you an experience of .net development using Visual Studio. For example the one you mentioned is about structured exception handling. J# also supports this and syntax is also similar to C#.
For other features syntax may be different in J# from C# but there is nothing which blocks you from developing in J#.
And yeah, in a single solution you can have multiple language projects, for example i can have J#, C#, VB, C++ projects. I can add reference to any other project also. Let us know if you are interested in kknowing more here.
You are right that most of the examples are in C# so far but this wont be the case after VS 2005 is shipped. If you have any issues with J# then feel free to post them here.
Thanks,
Jaiprakash
DRHY
Close all your VS.Net windows. After that run this command. It won't generate any errors.
thanks again.
-Shabdar
Bruno Soares
Hello,
I just got my copy of visual studio 2005 professional edition and am trying to follow the MSDN doc on how to create a web project in visual J# and already have the same problem. I am running windows XP home edition.
The MSDN online doc said to
To create the project and form
To create the project and form
I do not see ASP.NET Web Application in my visual J# templates. I only see it showed up for visual c#, visual basic, but not visual j#. For the last two days, I have been downloading SP1 and WebApplicationProject Add-On but non of this seems to work. This is insanity. I am about to throw this computer out of my window.
dustinto
aspnet_regiis -i -enable
returns:
Command "aspnet_regiis" is not valid.
so I am still at a loss - perhaps I will consider re-installing Windows XP Pro and VS2005alexbartell
Visual studio command prompt is different from Command window and it is not a part of visual studio. You can invoke it from here...
Start > Programs > Microsoft Visual Studio 2005> Visual Studio Tools > Visual Studio 2005 Command Prompt.
Thanks.
marvind
one thing though, when I ran the command it said:
Finished installing ASP.NET <2.0.50215>.
Setup has detected some errors during the operation. For details please read the
setup log file at: ...... /ASP.NETSetup_0001.log
the last part of this log file looks like:
2005-10-07 13:13:01 Success Creating directory: c:\inetpub\wwwroot\aspnet_client\system_web\2_0_50215\CrystalReportWebFormViewer3\JS
2005-10-07 13:13:01 Success Creating list of client site scripts dirs
2005-10-07 13:13:01 Starting Copy the client side script or web admin files to a list of directories.
2005-10-07 13:13:02 Success Copy the client side script or web admin files to a list of directories.
2005-10-07 13:13:02 Starting Setting IIS key for script files
2005-10-07 13:13:02 Success Setting IIS key for script files
2005-10-07 13:13:02 Success Setting up client script files for website:*
2005-10-07 13:13:02 Starting Starting service: aspnet_state
2005-10-07 13:13:02 Success Starting service: aspnet_state
2005-10-07 13:13:02 Starting Restarting W3SVC
2005-10-07 13:13:02 Starting Connecting to Service Manager
2005-10-07 13:13:02 Success Connecting to Service Manager
2005-10-07 13:13:02 Starting Opening handle to W3SVC
2005-10-07 13:13:02 Success Opening handle to W3SVC
2005-10-07 13:13:02 Starting Stopping W3SVC
2005-10-07 13:13:02 Starting Finding out service state
2005-10-07 13:13:02 Success Finding out service state
2005-10-07 13:13:02 Starting Enumerating dependent services
2005-10-07 13:13:02 Success Enumerating dependent services
2005-10-07 13:13:02 Starting Stopping service
2005-10-07 13:13:02 Starting Finding out service state
2005-10-07 13:13:02 Success Finding out service state
2005-10-07 13:13:02 Starting Shutting down service
2005-10-07 13:13:02 Success Shutting down service
2005-10-07 13:13:02 Starting Waiting for service to shut down
2005-10-07 13:13:03 Success Waiting for service to shut down
2005-10-07 13:13:04 Success Stopping service
2005-10-07 13:13:04 Success Stopping W3SVC
2005-10-07 13:13:04 Starting Starting service: w3svc
2005-10-07 13:13:04 Starting Connecting to Service Manager
2005-10-07 13:13:04 Success Connecting to Service Manager
2005-10-07 13:13:04 Starting Opening Service handle
2005-10-07 13:13:04 Success Opening Service handle
2005-10-07 13:13:04 Starting Starting service
2005-10-07 13:13:04 Success Starting service
2005-10-07 13:13:04 Starting Waiting for service to start
2005-10-07 13:14:03 Failure Waiting for service to start: WaitForServiceState failed with HRESULT 8007041d: 'The service did not respond to the start or control request in a timely fashion. '
2005-10-07 13:14:03 Failure Starting service: w3svc: StartServiceByName failed with HRESULT 8007041d: 'The service did not respond to the start or control request in a timely fashion. '
2005-10-07 13:14:03 Failure Restarting W3SVC: RestartW3svc failed with HRESULT 8007041d: 'The service did not respond to the start or control request in a timely fashion. '
Do I need to worry about this
thanks
-Barb
zeipherus
Let me answer your first problem while creating new web site.
The problem is that ASP .net extensions are prohibhited from running on your computer. You can enable by following these steps if you are working on Windows Server 2003...
1. Open IIS Manager (open Run dialog from Start Menu and type 'inetmgr' in Start Edit Combo Box).
2. IN the IIS manager window, expand the Local Computer node.
3. Click on Web Service Extensions node.
4. Allow "Active Server Pages" and "ASP .net v2.0.xxxxx".
If you are on Windows Xp then too above steps should server your purpose.
Give us some time to reply on your second post related to SQL Express. We will surely be able to help you out.
Thanks.
miki lior
thanks
-Barb
Gabriel PURAN
OK, I am not going to worry too much about this for now - there are other issues
I have found the ASP.NET labs for VS2005:
http://pluralsight.com/fritz/webcasts.aspx - so I thought I would get started on them using visual J# instead.
Now I have the Visual Studio 2005 Team Suite and SQLServer 2005 Developer Edition CTP DVD's installed.
The one thorn that I have encountered involves SQL - the lab notes say to run the SQLQueryAnalyzer ( isqlw.exe) to create and populate a database
After installing SQLServer 2005 there does not seem to be anything like this capability - so I found this SqlServer2K5_BOL.msi documentation but then it says it needs NET Version 2.0 and can't complete the install. VS 2005 installed .Net 2.0 Beta ( guess it doesn't like the beta ). I am kind of stuck and confused
I see MSSQLSERVER and SQLEXPRESS in the Configuration manager ( only SQLEXPRESS is running ). My connection string looks like
"
Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\NORTHWND.MDF;Integrated Security=True;User Instance=True"
The question I have right now kind of relates to SQLServer but I can find no forums for this and I have been unnsuccesful finding certain concepts explained
in the searches I have done so far ( I come from a unix background with C programming previously and have no experience with any of these Windows Programming concepts up until a couple of months ago )Anyway here are my questions:
Q1: Why can I not find this SQLQueryAnalyzer
Q2: Should I be able to simply Start MSSQLSERVER and replace SQLEXPRESS with it in my connection string ( seems I tried this and ran into problems )
Q3: If I took the MSI setup file containing the application ( I have included the SQL Database Northwind ) to another computer, what do I need to do as far as SQLServer and the connection string is concerned to make this run.
Q4: Can I install .NET 2.0 instead of .NET 2.0 Beta and still have VS2005 Beta working so that I can install this SQL Books-Online file - not that I have any faith that it will answer my questions - seems to be quite frustrating searching through the maize of documentation that only creates more fog.
Q5: What is this SQL Server 2005 CTP dvd supposed to do for me Why did I even bother installing it
kwing
Hi,
Sorry, i dont have any idea that what problems it can lead you into :(. You may like to post it on our asp .net forums.
Or you may just ignore it and bother only if it starts troubling you :).
Thanks.
tshad
thanks for the replies, I have been taking a break going to the countryside away from computers for a while to clear my mind and contemplate what I am doing.
I have Windows XP Professional. When I run intemgr the only thing I see under
BARBARA(local computer) node is two other nodes: Web Sites and Default SMTP Virtual Server and then expanding these shows no "Web Services Extensions" node
I am wondering now if I should now be focusing on C# instead. Seems most of the support is for this - also the add-on packages for different things like publishing errors and other things found in the labs seem to be only for C# or VB -
I eventually intend to try and write some business applications ( ie managing rental inventory ) and try to sell this to other businesses. I don't want to run into a problem with the customers not being able to run the application without some serious upgrading or some other issues.
Should this be a concern for me with using Visual J# and VS2005. Do you think I should perhaps buy VS2003 and SQL Server 2000 instead. ( Do I need to purchase SQl Server also if I purchase Visual Studio )
thanks
Scoob
I tried:
aspnet_regiis -i -enable
it says windows cannot find aspnet_regiis ( I assume this should be typed in the Run command )
Now the add-ons that I am referring to are projects that you add to your solution as found in:
Soup to Nuts Lab 7: Exceptions Happen: Optimized Exception Handling with Microsoft .NET
the instructions are:
In this exercise, you will modify the main UI thread exception handler to publish exceptions using the Microsoft Application Management Block.
Tasks Detailed Steps
1. Add the Microsoft Exception Management Block projects to the
Northwind Solution
a. In the Solution Explorer, right-click Solution 'Northwind' (3 projects) solution node and choose Add | Existing Project
b. In the Add Existing Project dialog, browse to c:\HandsOnLabs\Soup To
Nuts\Exception Management\Code\<language>\
Microsoft.ApplicationBlocks.ExceptionManagement
( it also shows where to download this from other places on the web )
there are other projects like this that are in other virtual labs - perhaps though there is a solution to this using dll's - to get the end result - just not sure about that yet -
anyway I will wait for VS2005 - I am still unsure about remaining with J# - I have spent the last several months working with it by doing the virtual labs using VS2005 and J# - so I feel the most comfortable with it - it is just that most of the examples and documention seems to be for C# ( or VB ) - although I have enjoyed the challenge of coming up with equivalent J# code.
I do like the help that I am getting in this forum so I am still wondering if I will switch.
As far as SQL, I have posted some questions in the SQL forum regarding Servers and connection strings
anyway thanks for your help
-Barb