Forum Replies Created

Ganesh Member
# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


Order allow,deny
Deny from all


AuthUserFile /var/www/clients/client25/somesite.com/web/.htpasswd
AuthName "Private access"
AuthType Basic
require user someone

And here ist the .htpasswd:

someone:$apr1$cgUOc8vC$S0GFcoEbawj/oboIEbJx81 
Ganesh Member

The easiest way to do this is to use a RAS control. There are a number of them on the market now. Your best bet is to hit AltaVista and search for “RAS near OCX” (advanced search).

Otherwise, you need to use the RASDial() function found in the RASAPI16.DLL and RASAPI32.DLLs. The calling parameters for this function are too long to go into here. Your best bet is to search for RASDial on the MSDN Library CD-ROM … While you’re at it, I’d look for RASHangup, too.

Ganesh Member

It sounds like you have fields in the database containing links to the previous address. Unfortunately it won’t be a simple matter. You will need to manually search each field and look for the old link, and update any address to the new link, or use a relative link so that should you move it in future, you will retain navigation.

Ganesh Member

I have experienced the ‘17832’ error many times while using Named Pipes. SQL Server has only one default pipe that it listens on for client requests. Requests get queued and often times the connection times out, resulting in the ‘17832’ error. I have increased the number of pipes available to SQL, thus balancing the load and reducing the chance for timeout errors. Also, you might try connecting via TCP and/or increasing the Application logon timeout value. See MS Knowledge Base Article # Q165189 for details.

Ganesh Member

If you are working on NT on a stand-alone PC you should install the MS-loopback adapter.

You can find it in the network part of the settings.

After you have installed it you can run setup from sql-server.

Ganesh Member

guess you installed SQL from CD?
I have encountered some cryptic ( and i mean cryptic like couldnt register file ? check your path for spaces ) installation problems with different applications like MS Office, Developer Studio. I found out that the problem was the CD player, and when i tried another CD player it worked just fine.

I am using an Compaq server, and they are known to have trouble with the CD player

Maybe you have a different problem, but I suggest you try another CD player to eliminate the hardware.

Ganesh Member

A “Stateful” condition is one in which the server knows something about the client. A “Stateless” condition is one in which the server knows nothing about the client. The PHP session helps the stateless client/server protocol appear to be stateful. I say “appear” because the server truly does not know anything about the client, except what is presented in the HTTP request variables. These variables include, inter alia, any HTTP cookies that the server set and that the client returned. So to sum up, the server sets a session cookie, stores session data, and expects the client to send the session cookie with all subsequent requests. If the client does not send the session cookie, the server cannot find the session information and the stateful appearance will be lost. Or if another client sends an identical session cookie, the impostor client will be recognized and the server will make the “stateful” connection to the original session — possibly with bizarre consequences. Please see * The Fine Print in the same article.

TL;DR – this impostor confusion doesn’t happen in the “real world.”

Ganesh Member

One option you may want to start with is the free CloudFlare plan. They offer a variety of out of the box security features that may significantly cut down on the activity you are seeing. Implementation is as simple as updating your DNS settings.

The premium CloudFlare plan is the only way to implement a broad country filter. I suspected the majority of the activity you were seeing was from bots, in which case CF would help trim that down significantly.

Another option you could take is blocking IP ranges (ie. block russia/spain/brazil/etc, or allowing IP ranges from select countries only (ie. allow only US, CA, GB, etc). You can do this in CF, or alternatively via htaccess:
http://incredibill.me/htaccess-block-country-ips

Ganesh Member

If this is set GlobalConfiguration . Configuration . Formatters.XmlFormatter.UseXmlSerializer = true, then I’m afraid i cannot think of any other reasons why there should still be problems. Is there a specific error message? I cannot think of anything else though…

Ganesh Member

Are you checking for Model binding errors? stick this at the beginning of your controller methods:

if (!ModelState.IsValid)
{
     return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
}

Deserialise the stream yourself
In your controller, can you get the raw content of the request and try to deserialise it yourself? This will also help. (this is just for troubleshooting and should not be how you deal with the deserialisation)

try
{
    string data = Request.Content.ReadAsStringAsync() ;
    new XmlSerializer(typeof(yourType)).Deserialize(new StringReader(data));
} catch(Exception ex)
{
     Debug.WriteLine(ex.Tostring);
}
Ganesh Member

Does your web app runs correctly from your visual studio (locally)?

There might be couple of reasons like
1. There might be some missing things (like end tag etc.) in web.config!
2. Your web application might configured with incorrect ASP.NET versions!
3. Application Pool settings might not correct!

—Correct Way—
If you are manually copy paste your web application, then you need to make sure only changing content should paste and not the whole things again and again! (like if you change content of one aspx file(not cobehind), then you copy paste only aspx; if you change codebehind, then copy respected DLL as well)

Alterwate way is to publish directly from VS! Please check link for that: https://msdn.microsoft.com/en-us/library/dd465323(v=vs.100).aspx

Ganesh Member

Definitely. There are some limitations in advanced features and databases size but that won’t prevent you from learning it.

Be sure to check http://www.w3schools.com/sql/default.asp

Ganesh Member

In .NET, datetime is a Long, not a Double as it was in COM. It is the number of ticks since 1/1/1, a tick being one hundred nanoseconds.

Ganesh Member

A date/time is stored internally as a double (epoch + x seconds) what do you want to display? Just the date? A datetime is usually displayed in your user-culture i.e. regional settings.

Ganesh Member

MinGW contains The Standard C compiler packaged for Windows. On the download page http://sourceforge.net/projects/mingw/files/ , I do not see anything about ‘mingw-w64’. What I do see is mingw-get-setup.exe (86.5 kB) which is a program to get the rest of the compiler and whatever other files you want. I’d suggest you get that and see if it provides everything you need. If it doesn’t, it will probably tell you where to find it.

Part of learning C programming like this is learning the procedures and methods. This is not a one-step procedure or compiler.

Viewing 15 posts - 46 through 60 (of 63 total)
en_USEnglish