|
It ought to be bliss.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
|
|
aspdotnetdev wrote: How do I use a keyboard?
Very good it seems.
|
|
|
|
|
|
"Forums" would be the plural of "Forum"; "Forum" is my favorite part of "Penthouse".
|
|
|
|
|
I am trying to build a Http Proxy Server
It has this line of code
IPHostEntry entry = Dns.Resolve(Host);
This causes exception
[System.Net.Sockets.SocketException] = {"The requested name is valid, but no data of the requested type was found"}
But when I run the same line of code in a stand alone application, it works fine
IPHostEntry entry = Dns.Resolve("www.google.com");
Console.WriteLine(entry.AddressList[0].ToString());
What is wrong here ?
|
|
|
|
|
Where is the first line running?
Did you try debugging and checking what is the name of the host?
is it http://www.google.com or www.google.com?
is there a security permission required to access internet?
|
|
|
|
|
It is just www.google.com
As I said before, this line of code is part of my http proxy server
|
|
|
|
|
The server can be run in two ways:
1. Debug Mode from the IDE
2. Release Mode as the compiled program.
If it is working in the stand alone program, and you are getting the problem in the different project (case 1), then it is really a matter of checking different options in your program.
I can see why this error may happen between debug and release versions.
|
|
|
|
|
Tried in both debug and release mode. Same exception
|
|
|
|
|
The stand alone applications works fine, so I guess this should too. I have given all required secuirty permissions
|
|
|
|
|
IPHostEntry entry = Dns.Resolve(Host);
can you please double check if this Host name is the same as "www.google.com" and not "http://www.google.com" or something else? check it while debugging.
if still the same, you need to provide some code so that we can test it.
|
|
|
|
|
It could be the upstream DNS provider. You can either retry a few times, or cache previous entries.
|
|
|
|
|
Hi.
I need to do a server application, which runs a process at a time of day, in c #. is possible to make a web application or other wich do that...
I can not touch more than the web application server
please help
thank you very much
|
|
|
|
|
Then you have a severe problem. If all you can make is a web app, there is nothing that will trigger the app to run. Depending on requirements, this is normally a Console or Windows Forms app that you launch using the Windows Task Scheduler. You could also write a service that does this.
A web app is not suitable for a task that has to be launched at a certain time.
|
|
|
|
|
|
You can make an exe and create a task that runs it a specific time of day. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi All,
I'm creating a web application in ASP.NET and c#. What I'm trying to do is create a vertical menu similar to the blue one in this link:
http://www.alistapart.com/articles/taminglists/
I've created these menus in the past but in just a plain HTML page not ASP.NET. When I try to apply the same format to the unorder list the look isn't the same so I was trying to create it using LinkButtons like so:
<span class="subMenuDiv">
<asp:LinkButton ID="link1" runat="server" CssClass="subMenu" Text="Case Info"></asp:LinkButton>
<asp:LinkButton ID="link2" runat="server" CssClass="subMenu" Text="Reportable Info"></asp:LinkButton>
</span>
The CSS looks like this:
.subMenuDiv
{
float: right;
width: 120px;
padding: 0 0 0 0;
border: none;
margin: 0;
}
.subMenu {
width: 100%;
margin: 0;
padding: 4px 10px 4px 10px;
text-decoration: none;
background-color: #CCCC99;
border: solid 1px black;
color: #666633;
text-align: left;
}
The problem I'm having is the border of the subMenu is showing up twice, i'm not sure why but I know the padding is linked to it.
How do I get it so the border only shows on the outer edge of the linkButtons (subMenu items) and so only one border is shown?
Any help would be great.
Thanks
|
|
|
|
|
You may get a better response by posting this in the correct forum, i.e ASP.NET[^]. txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
Thanks, I totally forgot about the ASP.NET message board. I've just posted it there now.
Thanks again.
|
|
|
|
|
At a guess, there is something goofy with how the ASP controls are being rendered. There really is no need to use them at all: find CSS and HTML code that worked in the past and use it instead.
|
|
|
|
|
This should be easy, but I'm getting a lot of noise when I try to search the web for an answer.
In summary: I create a new custom control that inherits directly from Control . I want to display the name assigned to it by the IDE, in the same way that a standard TextBox has its Text property set. I assume that I can do this in the control's constructor. How do I get this information?
|
|
|
|
|
TechBearSeattle wrote: I want to display the name assigned to it by the IDE
There will always be a name assigned to your control from IDE. Something like CustomControl1, CustomControl2 and so on.
As far as displaying is concerned, If it has a paint event, you need to implement drawing it. If you want to display it only during design time, you can do a test whether it is at design time.
|
|
|
|
|
Yes, but how do I get this name? The Name property returns an empty string, presumably because it has not been initialized yet. That's my question.
|
|
|
|