Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2006

Tip: Looking for answers? Try searching our database.

No syntax control during webservice validation in Visual Studio 8

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
worm@matfyz.cz - 15 Mar 2006 11:31 GMT
Hello,

I'm writing a webservice in VS8. In this version of VS, there is a
different compilation philosophy, build causes only something called
"web site validation".  The problem is, that this validation doesn't
perform even syntax checking.  When I write something like

void My Method()  // the whitespace is intention
{
  ...
}

after build I get "validation complete" message.  The compilation error
occurs when I access the webservice.  A bit late I think.  Am I doing
something wrong?

Thanks a lot
Jan Cervak
Javier G. Lozano - 16 Mar 2006 02:35 GMT
What's the compilation error you're receiving?  The more we know, the
easier it will be to help you out.
worm@matfyz.cz - 20 Mar 2006 10:56 GMT
I get following error message:

Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.

Compiler Error Message: CS1002: ; expected

It is obviously a standard compile error, but I get it from IIS not
from Visual Studio.

I created another web service solution and everything works fine there
(build realy does the syntax control).  I compared the property
settings for this and the broken solution but I didn't find any
difference.  The only difference is, that the build in the corrupted
solution outputs only:

------ Build started: Project: S:\...\MyWebService\, Configuration:
Debug .NET ------
Validating Web Site

Validation Complete
========== Build: 2 succeeded or up-to-date, 0 failed, 0 skipped
==========

Building the working solution outputs:

------ Build started: Project: C:\...\MyWebService\, Configuration:
Debug .NET ------
Validating Web Site
Building directory '/MyWebService/'.

Validation Complete
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped
==========

It looks like VS is ignoring the webservice directory, but I' m not
able to find anything relevant in settings.

Another difference is that the corrupted solution is placed on drive S:
which is just subst for some directory on C:.  I thougt that might be
the reason, but new web service solution created on this virtual drive
was also working...
CaffieneRush@gmail.com - 20 Mar 2006 01:11 GMT
The validation refers to the page that is emitted to te browser not to
the logic errors within the server side code. It has more relevance in
web application development rather than web service development.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.