
September 29th, 2000, 12:32 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
<i><b>Originally posted by : Adam Stevenson (alstevenson@nadev.com)</b></i><br />Howdy,<br /><br />Ok you went through or are going through the same hell I first did. You first might want to get a copy of CSharpEd (a C# editor that integrates into the compiler, if you do not have VS 7.0/VS.Net) from http://c-point.com. Second, you need to make sure that you put a namespace tag in your code:<br /><br />namespace <b>myNamespace</b> {<br /><br />public class MyClass {<br /> <br />}<br />}<br />If you compile this using /t:library switch, you will be able to create a library with the namespace 'myNamespace' and will contain the class 'MyClass'. Next, create a 'bin' directory in your web application root directory and place this dll in it. Example http://www.myplace.com/bin/. Now if you create a dll and publish it in the dirctory, and then go back to your source code and change the interface, you will have to save the dll as a new name in directory. This is mirosoft way of forcing version control. What I do is create my dlls with files names like myDLL.1.0.0.0.dll<br /><br />Now once you get this far, I would reccommend you look at www.ibuyspy.com. This site is a microsoft example site on aspx and demostrates a full application. It will show you how to use pagelets too.<br /><br />Hope this helps<br /><br />Sincerely,<br /><br />Adam Stevenson<br /><br />------------<br />Iwan Jahja at 9/18/2000 2:55:04 PM<br /><br />I tried to run the examples in QuickStart, i.e.<br />- created the xxx.asmx<br />- tested it to display the info, SDL,<br /> and invoke the various methods.<br /> everything OK.<br /> saved xxx.sdl<br />- created xxx.cs using<br /> WebServiceUtil /c  roxy /pa:xxx.sdl /l:csharp<br /> /n:xxxSpace<br />- compiled to produce xxx.dll using<br /> csc /t:library<br /> /r:system.web.services.dll<br /> /r:system.xml.serialization.dll<br /> xxx.cs<br />- created test.aspx for testing, however<br /> always got error at the first import:<br /> <%@ Import Namespace="xxxSpace" %><br /><br />i tried to place xxx.dll in different places,<br />tried to register it using regsvr32, etc, but<br />to no avail.<br /><br />how should i set it? pls help!<br /><br />thanks,<br />iwan<br /><br />
|