CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 4/17/2006 8:34:56 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 22 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
oldduck
Asp.Net User
Problem With Tutorial4/17/2006 8:34:56 AM

0/0

I've been working through the tutorial on Web Application Projects (http://webproject.scottgu.com/) but I've run into problems in the section on User Controls (http://webproject.scottgu.com/VisualBasic/usercontrols/usercontrols.aspx).

First of all, in the section where you are instructed to add a command to the pre-build compile event the code to use is shown as:
    copy $(SourceDir)\MyUserControl\Library\*.ascx $(ProjDir)\UserControls\

At least in my system (WinXPro/SP2), the resulting command has two backslashes in a row following the value substituded for the symbolic directories (e.g. copy C:\Documents and Settings\Wayne\My Documents\Visual Studio 2005\Projects\\MyUserControlLibrary\*.ascx).... It appears that when the system substitutes a path for a symbolic directory it always adds a trailing backslash?

Even after removing the extra backslash, I always get an error code 1. When I copy/paste the generated command string to the command line it fails with "file not found"

After fighting that for a while I decided to manually copy the ascx file to that directory and see if I could get on with the tutorial - no joy! After manually copying that file to the UserControls folder if I then add the code shown

    <scottgu:Calculator ID="calc" runat="server"></scottgu:Calculator>

The "Calculator" is flagged with an error that it is not a known element (even in the tutorial it is flagged)

Has anyone figured out how to resolve these problems?


Wayne
tjmallen
Asp.Net User
Re: Problem With Tutorial4/17/2006 8:44:35 PM

0/0

I am having the same problems on a WinXP SP2 system. I also observed the double slashes, and could not get the pre-build event to work after removing a slash in the command line, or even copying in the full, explicit paths starting with  C:\...  I then tried manually copying the .ascx file into the usercontrols directory as you did, and I saw the same "unknown element" error.

After extensive fiddling around (rebuilding, deleteing and then re-adding the reference, etc.) the control suddenly started to appear in design view. I narrowed it down to this sequence of actions that got it to come up:

1)  I included the SampleControl.ascx file in the project

2)  I  deleted the Src property of the @ Register directive, then re-added it by typing "src=" and using the "Pick Url..." context menu to browse to the file and select it

3)  I switched to design view and could then see the control on the page

4)  I removed SampleControl.ascx from the project

Once I could see the control in design view, I could build and run the app with no problem. It still works even if I close and re-open Visual Studio.

Sorry it's not an answer as to why this is happening or how to fix it the RIGHT way, but perhaps it will help the forum moderators with troubleshooting....

 

oldduck
Asp.Net User
Re: Problem With Tutorial4/17/2006 9:13:44 PM

0/0

Thanks for that information. I had tried using the "Pick URL" but in my case, it doesn't list the ascx file as being in that directory (even though Solution Explorer shows it?)

 

Still stuck.


Wayne
Celestine
Asp.Net User
Re: Problem With Tutorial6/16/2006 9:48:21 PM

0/0

Two months later, I am having the same problem with the tutorial, after having jumped through the same hoops.  Is there any solution for this?
DaVince
Asp.Net User
Re: Problem With Tutorial6/22/2006 5:14:16 PM

0/0

I put the following as my pre-build command:

copy "c:\documents and settings\davince\my documents\visual studio 2005\projects\myusercontrollibrary\myusercontrollibrary\*.ascx" "$(projectdir)usercontrols\"

I couldn't find a macro that would equate to the Visual Studio 2005\Projects\ directory - that would have been helpful.  Also the quotes were needed to make it work.

Any body know how to make this work with relative refrerences?

-->DaVince

 

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
A Handbook for Medical Teachers Authors: David Newble, Robert Cannon, Zig Kapelis, Pages: 222, Published: 2001
Proceedings of the Twentieth Annual Conference of the Cognitive Science Society: August 1-4, 1998, University of Wisconsin-Madison Authors: Cognitive Science Society Conference (, Morton Ann Gernsbacher, Cognitive Science Society, Sharon J. Derry, Pages: 1304, Published: 1998
The Software Catalog: Microcomputers, Winter, 1990 Authors: Menu International Software, Pages: 0, Published: 1990
Applied Mathematics and Parallel Computing: Festschrift for Klaus Ritter Authors: Klaus Ritter, Herbert Fischer, Bruno Riedmüller, Stefan Schäffler, Pages: 376, Published: 1996
Organic Chemistry Authors: Joseph M. Hornback, Pages: 1328, Published: 2005

Web:
Integration of Persons With HIV in a Problem-Based Tutorial: A ... cessfully incorporated into problem-based tutorials. Teaching and Learning in Medicine, 15(4), ... a PHA in a problem-based, small group tutorial setting. ...
Problem in Tutorial: msg#00200 Howdy, I was just going through one of Brian Cowell's tutorials, and I either 1) found a problem or 2) still have no clue what I'm doing: In: ...
Problem understanding tutorial - Codewalkers Problem understanding tutorial- Tutorials. Visit Codewalkers to discuss Problem understanding tutorial.
Intermediate Algebra Tutorial on Intro to Problem Solving Setting up an equation, drawing a diagram, and making a chart are all ways that you can go about solving your problem. In this tutorial, we will be setting ...
Pragmatic Forums | Problem with tutorial 2 - numberOfRowsInSection ... Problem with tutorial 2 - numberOfRowsInSection only called once. Forums → Writing Your First iPhone Application → ...
The interconnection problem - a tutorial The interconnection problem - a tutorial. Full text, pdf format Pdf (1.31 MB). Source, Annual ACM IEEE Design Automation Conference archive ...
Datagrid problem 4guysfromrolla tutorial - Dev Articles Datagrid problem 4guysfromrolla tutorial- ASP Development. Visit Dev Articles to discuss Datagrid problem 4guysfromrolla tutorial.
YouTube - No Lid Space? No Problem! A tutorial on working the ... Techniques for eyeshadow application for smaller lid space.
The Celebrity Problem (Rodin Tutorial) - Event-B The next model that you will work with is the so-called celebrity problem. In the setting for this problem, we have a “knows” relation. ...
Re: importing PSD problem post tutorial : Adobe After Effects Re: importing PSD problem post tutorial - Creative COW's Adobe After Effects forum is headed by a team of noted media professionals that lead nearly 60000 ...

Videos:
No Lid Space? No Problem! A tutorial on working the crease with smaller lid space - Part One lid space
No Pearls, you say? 019 says "No problem." (SatSR Tutorial) A step-by-step video tutorial to one of the more challenging missions in Sonic and the Secret Rings. Oh yes, of course I got a Gold Medal. I was ni...
No Lid Space? No Problem! A tutorial on working the crease with smaller lid space - Part Two. Techniques for eyeshadow application for smaller lid space.
Big Images Problem? - Resizing Tutorial [EASY!!] Can't make your images fit for your Youtube Backround? This tutorial will show you how to resize your images so that it can be uploaded on your Youtu...
*Tutorial* Fixed problem with MPD16 and Reason 3.0 Fixed my issue with MPD16 and Reason 3.0. Watch the clip if you were having trouble with recording the track via mpd16. peace!
Limewire Connection Problem - Tutorial If your having problems with the connection status on your Limewire, e.g. there is only 1 green bar; this is a tutorial for those of you who have Nor...
Camtasia Tutorial: Remove Alvin & the Chipmunks problem http://screencastprofits.com/quicktips/alvin This Camtasia tutorial explains a recent problem with the audio in Camtasia videos. It's a sample of the...
Installing Ubuntu with Windows Dual-Boot This screencast shows how to install Ubuntu on a system that already has Windows installed.
PS3 Hard Drive Corruption - Tutorial to FIX Problem (Read Description for TIPS) (PLEASE WATCH IN HQ) Put this at the end of the Address Bar: &fmt=18 -This Does Work -If it doesn't, call sony. -I don't know if it works for 60 g...
JavaScript Tutorial 1.3: Introduction to External Input In this tutorial, we examine one way to receive and play with data given to us from the user rather than data we explicitly include ourselves. I apo...




Search This Site:










web application project not working as it used to

what control can i use so i can lay my data fields any where on the screen and still bind it.

hosting pane

convert 2005 web application using remote iis server

orcas and vs.net 2005 side by side

templates disapearance

how to use the mobile web form in visual studio 2008 beta2?

can't create event handlers.

solution file madness, getting error saying: "the project file '' has been renamed or is no longer in the solution."

no manage styles and apply styles tab anywhere...

trying to use vs 2008 training kit

new table auto creating style css - not impressed!

applying custom attribute causes vs2008/vb compiler crash

libraries

system.componentmodel.win32exception: the system cannot find the path specified

vpc image platform request

intellisence and dropdownlist

using orcas to compile to and asp .net 2.0?

how do i export xml comments with visual studio that i wrote in my code.

vs 2008 writing and debugging a windows service

linq. remove. vs 2008 final version

3.5 does not work by itself, right?

asp.net website error using fileupload control.

debug visual web developer express 2008

how to set up bo and dal in a vs project

vs 2008 - problem ide renderization

xaml in asp.net pages

unit test adapter threw exception

hosting provider only supports .net 2.0 but i developed site in .net 3.5 with visual studios '08

reportviewer and vista x64

  Privacy | Contact Us
All Times Are GMT