|
|
When I use the browser and type:
http://www.example.com/dotNet/MyService/Service1.asmx
I get the following (even when I set the customErrors mode to Off, I still get the same error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
phpWebNotes is a page annotation system modelled after php.net.
<a href="http://webnotes.sourceforge.net/demo.php">http://webnotes.sourceforge.net/demo.php</a>[<a target=_blank title='New Window' href="http://webnotes.sourceforge.net/demo.php">^</a>]
|
|
|
|
|
|
You can copy file there through ftp but don't forget that you have to put it in virtual folder , they have to create it for you or give you some admin privilage to do that. I'm not sure you can run installshield there when you don't have direct access to server. For my web service I copy files in the root of my web site(bin directory_config and asmx files) cause those stupids didn't let me to create virtual directory there.
Mazy
No sig. available now.
|
|
|
|
|
Mazdak wrote:
For my web service I copy files in the root of my web site(bin directory_config and asmx files) cause those stupids didn't let me to create virtual directory there.
What is the difference between having it in the root of the website vs. in a sub-directory? I thought virtual directories are to map internal server paths into sub-folders of wwwroot. In my case, I copied the files to a sub-folder of wwwroot. I attempt to execute the webservice as follows:
http://www.example.com/dotNet/MyService/Service1.asmx
which is similar to how I run it on my local machine:
http://localhost/Service1.asmx
Thanks,
Victor
phpWebNotes is a page annotation system modelled after php.net.
http://webnotes.sourceforge.net/demo.php[^]
|
|
|
|
|
When you create a web service with VS.NET it automaticlly do the setting for you and set that directory as virtual directory so it works without problem, but when you upload your files you have to do setting manually.
Mazy
No sig. available now.
|
|
|
|
|
Makes sense... But what is the benefit of having it as a virtual directory? As I said before, I thought virtual directories are useful to map paths that are not under wwwroot to virtual directories under wwwroot.
Thanks for your help..
Regards,
Victor.
phpWebNotes is a page annotation system modelled after php.net.
http://webnotes.sourceforge.net/demo.php[^]
|
|
|
|
|
Hi!
First of all, I'd like to excuse my stupid question .
However, I'm having probelms understanding the use of simple lookup tables in c#. I do not want to use database to create them, but classes or data structures instead. How can it be accomplished? I'd appreciate if one could explain the idea and the usage thoroughly.
Little more about my problem. I'm implementing an price collection software that fetches prices from multiple web sites. So one item (lets say MS Windows XP professional) may have multiple prices and it's name may me written in multiple ways (such as Win XP Pro or Microsoft Windows XP Professional etc).
Any tips how to overcome this problem? Thanks you for your answers in advance!
Feic Kilmore
|
|
|
|
|
I think the proper way is add a LIKE operation to your query string:
SELECT * FROM mytable WHERE product LIKE 'WIN%'
Or something like this query , I think most web sites use this mechanism. This would gain most of result correctlty.
Mazy
No sig. available now.
|
|
|
|
|
Thanks for your quick response. However, I don't want to use database but classes instead. Any good tips to overcome it?
Feic
|
|
|
|
|
What do you mean exactlyy by not using database? You mean you want it disconnected from DB? So you can use DataSet and its Find() method when you after filling dataset.
Mazy
No sig. available now.
|
|
|
|
|
Besides maintaining an instance of a DataSet (which can be easily serialized to and deserialized from XML) and using Find , you can also use an IDictionary implementation like the Hashtable . This won't, however, allows you to find similar but different names without extending the Hashtable greatly.
Otherwise, you can always build your own database-like implementation with lists, collections, and the sort. To find similar names you'll offen experience O(n) operations unless you use something like a character-based or word-fragment-based B-tree.
Another option is to go with an in-memory database that exhibits the ACID properties (although it goes about transaction processing differently) known as Bamboo Prevalence (a .NET version of Prevayler, which is a Java implementation). See http://bbooprevalence.sourceforge.net/[^] for more information, or Object Prevalence with Bamboo Prevalence[^] for an article about it here on CodeProject.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Hi!
I've written a Client-Server-Application using Remoting. The Server runs as a WindowsService on a Windows 2003 or Windows 2000 Server. So far everything is working fine.
But if the Server has 2 or even more Network-Cards installed - how do I tell my RemotingApplication which one to use? and 2nd: how do I get the IP-Address of each Network-Card?
Any help would be really appreciated!
Andreas
|
|
|
|
|
You just have to specify the appropriate port. Windows device manager will internally map the port to one of the multiple network cards.
|
|
|
|
|
I already got that port-thing - my question was if I can tell the Framework/App explicitly which Network-Card to use?
anyway thanks for your answer!
Andreas
|
|
|
|
|
In my asmx page, user can request for WSDL . How can I disable it. I want only my priivate customer access to the service defenitions.
Mazy
No sig. available now.
|
|
|
|
|
After digging through the assemblies and documentation, if there is a way I haven't found it.
However, hiding information is by no means a way to secure information. Instead of worry about others getting your service definition, use the Web Services Enhancements 1.0[^] (2.0 is still a preview and shouldn't be used / can't be used due to licensing restrictions in production environments).
You can add WS-Security (remember my XML Digital Signatures article? That's a part of it) and many other things (like authentication via X.509 certificates) to ensure that no matter who gets your WSDL, only people to whom you grant credentials or certificates (or both) can access your Web Service.
This is by far a better way than just hiding it. If someone wants your service definition that badly, they will get it.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Heath Stewart wrote:
Web Services Enhancements 1.0
hmmmm. Good point. Thanks.
Mazy
No sig. available now.
|
|
|
|
|
Just day dreaming here. But how can you dial to a phone using modem/C#/.NET, then play a clip, say in mp3 format?
norm
|
|
|
|
|
norm wrote:
Just day dreaming here. But how can you dial to a phone using modem/C#/.NET, then play a clip, say in mp3 format?
The simplest way would be to use the TAPI 3 COM objects via COM Interop. Have a read on MSDN for the Tapi 3 docs. It should at least get you a starting point of making the call.
Not sure about playing mp3 down the phone though, I've only ever done that with Tapi 2 and Wav files via the Windows multimedia libraries.
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
|
Hi,
Im using C# to create a clinical information system(data management) what i would like to know is on what OS will the app run...some guys told me that .net apps are not able to run on win98 OS...this worries me alot...im at the point of no return...i heard that there is a framework or something to solve this...pls tell me
2. i want my software to send certain information from one form to a different form(in the same app) on a diff. workstation...is there anywhere where i can get resources for networking codes...maybe u guys could gimme some initial/crutial points...thx alot
Arvinder Gill
|
|
|
|
|
ASGill wrote:
some guys told me that .net apps are not able to run on win98 OS
That's incorrect - the .NET Framework is not supported on Windows 95.
ASGill wrote:
i want my software to send certain information from one form to a different form(in the same app) on a diff. workstation
.NET Remoting is your answer. This is the de facto way of marshaling and transmitting data between two different AppDomain s. See Accessing Objects in Other Application Domains Using .NET Remoting[^] for topics and examples. Also visit http://www.ingorammer.com[^] for arguably one of the best sources for .NET Remoting information. He also has a book.
And speaking of books, there's also Microsoft .NET Remoting[^] from the Microsoft Press. It's a good intro and intermediate book on .NET Remoting.
You can also search the CodeProject site for information on .NET Remoting as well.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
well thats a big relieve abt .NET apps not working on WIN 98...and also thx for the resources abt .NET Remoting i dint had any cllue abt it until you told me...great help friend!...thx a mil.
Arvinder Gill
CODER
|
|
|
|
|
I've flat out forgotten how to make my class accept [] notation, as in:
myClass[0] = 7;
any help appreciated....
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|