Quantcast
Channel: All Forums
Viewing all 28058 articles
Browse latest View live

Event ID 2309

$
0
0

Hi, everybody !

I'm new to this forum, so in case of 'dumb' things, please do not hit me hard :)

Getting next message at event log:

Log Name:      Application
Source:        Microsoft-Windows-IIS-W3SVC-WP
Date:          1/12/2015 6:17:44 PM
Event ID:      2309
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      www9
Description:
The loghttp module in the worker process removed custom log data for '1' request(s) which was not claimed by the W3C Logging Service.
Event Xml:<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"><System><Provider Name="Microsoft-Windows-IIS-W3SVC-WP" Guid="{670080D9-742A-4187-8D16-41143D1290BD}" EventSourceName="W3SVC-WP" /><EventID Qualifiers="49152">2309</EventID><Version>0</Version><Level>2</Level><Task>0</Task><Opcode>0</Opcode><Keywords>0x80000000000000</Keywords><TimeCreated SystemTime="2015-01-12T15:17:44.000000000Z" /><EventRecordID>4616</EventRecordID><Correlation /><Execution ProcessID="0" ThreadID="0" /><Channel>Application</Channel><Computer>www9</Computer><Security /></System><EventData><Data Name="Count">1</Data><Binary></Binary></EventData></Event>

Was googling very hard and found no information about this event. Maybe somebody knows where to look ? Thank you, for your answers.


error 1001 php install

$
0
0

Hi all, I thought I would try IIS instead of wamp to run for my test server.

I am getting an error when I install my PHP Manager 1.2 for IIS 7.

It says:

Error 1001.  Could not load file or assembly 'Microsoft WEb Adminstation Version=7.0.0.0, Culture=neutral, PublicKey Token=31bf3856ad354e35' or one of its dependenceis.  They sytem cannot find the file specified.

Any help would be greatly appreciated!

Regards,

Todd

Creating/Copying Folders/Files server2server

$
0
0

Hi all,

I have a intranet MVC 5 c# application for managing all of iis 7+ servers remotely using Web.Management.Administration. 

I am wondering about the best way to back up folders for migration purposes through the application. 

Currently I am using System.IO for simple folder creation and it is fine. ( I have network sharing enabled for the identity that connects remotely to these servers )

However, when it comes down to moving an an existing IIS sites app structure to a new location, using the following System.IO code:

DirectoryInfo dirInfo = new DirectoryInfo(config.Path);

dirInfo.MoveTo(BACK_UP_DIRECTORY + info.Name);

I get a "Source and destination path must have identical roots. Move will not work across volumes."

\\server\wwwroot\test.com

I understand that the error is because dirInfo.Root = "\\server\wwwroot\" and BACK_UP_DIRECTORY is on the app host server's wwwroot folder, so they have different roots. 

I was thinking about trying to iterate through the directory, recreating it on the new location while enumerating each sub directory as well, recreating each file, etc. recursively.. Not sure if that's the best way to go about this though.

I am looking for other alternatives to moving/copying files across servers. Like from prod servers into disaster recovery servers/into backup servers.

I was thinking about creating a module for executing a powershell script off my application to do these backups/migrations for me. Is powershell the best approach or are there any other alternatives.

Any ideas would be appreciated.

Thanks,
Fernando

WordPress publish To Azure Site

$
0
0

I'm running webmatrix on a windows 7 VM and when publishing to my azure website there are updates on my local webmatrix that are not being updated on the azure site. In particular, changes to text in widgets. I tried clearing out the file in

C:\Users\{username}\Documents\IISExpress\config\PublishUI\{websitename} thinking that it would force a full update but without success.

Perl on IIS works, but errors open "Save As" dialog

$
0
0

I have perl configured and working on iis 5.1 (i.e., I can run perl scripts to process forms and generate content). However there are some errors that iis handles by popping open the "Save As" dialog. If I download and open the file it does not contain the code of the script, rather it contains the error iis encountered. While this does at least allow me to troubleshoot my code, it would be better if the error was displayed in the browser. The error file has both the error from Perl followed by an html formatted error message.

Does anyone know how to get iis to not download error messages?

Notes:

  • iis is configured with perl.exe mapped to .pl files - works fine
  • iis version 5.1 - runs fine
  • Perl version 5.20 (activeperl)

Byte range & SetHeader Issue

$
0
0

Hi friends

I relied on a HTTPModule to modify incoming HTTP headers coming from client to IIS 7.5. Following this posthttps://msdn.microsoft.com/en-us/library/ms690796%28v=vs.90%29.aspx ll headers correctly with the exeption of byte range header! Let me clarify and consider the following incoming HTTP request:

GET /file.ts HTTP/1.1
Accept: */*
Cache-Control: no-cache
Host: 192.9.211.46
range: bytes=0-120

I expect to modify incoming requests in order to let IIS perform file opening/sharing/reading etc. Prototype is the following for instance

REQUEST_NOTIFICATION_STATUS CBdkIISHttpModule::OnBeginRequest( IN IHttpContext * pio_pHttpContext, IN IHttpEventProvider * pi_pProvider )

{

    HRESULT   result = pHttpRequest->SetHeader(HttpHeaderRange, "bytes=0-200", strlen("bytes=0-200"), TRUE);

    return RQ_NOTIFICATION_CONTINUE;
}

Issue is SetHeader is well performed (result is OK) and once OnEndRequest is reached I can see request is modified ! Nevertheless my client receive the following response

HTTP/1.1 206 Partial Content
Content-Type: video/MP2T
Last-Modified: Wed, 21 Jan 2015 09:26:21 GMT
Accept-Ranges: bytes
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Wed, 21 Jan 2015 10:47:05 GMT
Content-Length: 121
Content-Range: bytes 0-120/1204704

where is my mistake ?

regards

How to maintain same user session between a parent website and its virtual directory?

$
0
0

Hello there,

I have a parent web site (https://mysite.com) and a virtual directory under it (https://mysite.com/myvd). Both have the session state as 'In process' and runs under different app pools.

Now in my application, from parent site I am opening the pages in VD in an iframe. Say If I click log out now from the parent site. My Parent site's session is getting over however my VD's session (user context) is still there.

To address this issue, is there a way like I can maintain same session between both the parent site and VD?

Thanks in advance.

Vetrivelmurugan

Starting/stopping sites with shared config

$
0
0

Hi all,

I have a group of 3 servers here which use shared configuration. Works like a charm: any changes I make become active immediately on all 3 servers (as they should).

However, when I start/stop a site on 1 of the servers, it doesn't always start/stop on both other servers. And... should the site be starting/stopping on the other servers in the first place? What is expected behavior here? 


HTTP Error 400 : The request verb is invalid in IIS 8.5

$
0
0

I have hosted ASP NET 4.5 application in Windows Server 2012 R2 (IIS Version 8.5.9600.16384). But once in a while I am getting an error like Bad Request - Invalid Verb HTTP Error 400. The request verb is invalid while going from one page to another. There is no special sequence or specific page where I am getting this error.

httperr log file shows me an error like 

2015-01-21 04:48:18 MyIP 55452 ServerIP 80 - - - 400 - Verb -
2015-01-21 04:48:20 MYIP 55454 SerevrIP 80 - - - 400 - Verb -

I checked this post http://support.microsoft.com/kb/828726 but here it is applicable for Microsoft Internet Information Services (IIS) 6.0. Can I do this hotfix for iis 8.5 as well. I have searched about this issue over the net but could not get substantial information. So, can anyone help me resolve this issue.

EDIT : Using Fiddler I got the Raw Data of the request as

POST http://example.com/Project.aspx?prj=5566 HTTP/1.1
Host: example.com
Connection: keep-alive
Content-Length: 30634
Cache-Control: max-age=0
Authorization: Negotiate 
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://example.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://example.com/Project.aspx?prj=5566
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Cookie: ASP.NET_SessionId=4oymd5odmcaluiuzc24tbx22; _gat=1; _ga=GA1.2.1888408676.1418017144



Any help would be appreciated.

Write Permissions with Windows Authentication

$
0
0
<div>We need someone to help us with a very specific issue on a PHP site running on a Windows 2008 server. We are experiencing a permissions issue that we can’t fix without breaking the site. I’m looking for someone who has experience with this very issue and can help us solve it without it being a research project.</div> <div> </div> <div>Here are the details of our issue.</div> <div> </div> <div>We’ve developed an Intranet for a customer using Drupal 7 (PHP) and running on a linux server. It is running great. Here are a few details about the site:</div>
  • It authenticates visitors using LDAP
  • It uses Organic Groups
  • It uses lots of features to make it run acceptably fast:
    • regular caching
    • memcache
    • APC
    • others that I can’t think of right now...
<div> </div> <div>The client wanted us to support Single Sign-On. We decided the easiest way to so that was to run on a Windows server. We copied the site over and got it working on the windows server, then got signal sign-on working. What we didn’t notice at the time was that caching wasn’t working - we copied all the cached images/pages/tables over when we copied the site.</div> <div> </div> <div>When I was refreshing the site contents, I discovered that it appeared that the theme wasn’t loading. I was getting very generic looking pages. After lots of trial and error, I turned off all the caching and the site looked great again.</div> <div> </div> <div>I got error messages in the drupal admin area that it couldn’t write to some folders that it needed to. So I created a folder here:</div> <div> <div> </div>
C:\inetpub\wwwroot\sites\default\files\test
</div> <div> </div> <div>I created a php file to test permissions - it should create a file in that folder. It can’t write to the file. I tried letting it create the file in the folder. I also tried manually creating the file and giving it various permissions. It was not able to modify the file.</div> <div> </div> <div>I tried every trick that I know to make the page writable. Several others have too. I’ve also tried to make it writable by everyone - still can’t write to it. The only solution that we were able to find was to turn off “Windows Authentication” and turn on “Anonymous Authentication”. That allows us to write to the file, but it breaks Single Sign On. We need to find a way to be able to write new files AND have single sign-on working.</div> <div> </div> <div>Thanks for you help.</div>

Redistribute Web Farm Framework installer & others

$
0
0

Hi, we are working on an application that uses the Web Farm Framework, and I would like to know if it is something we could bundle with our own application installer and redistribute?

Specifically, WebFarm2_x64.msi

It also looks like the Web Platform Installer 3.0 and Web Deploy 2.0 are prerequisites of the Web Farm Framework, could those be bundled as well and installed?

I was unable to find anything in the licenses about redistribution rights.

I guess the alternative here is to have our installer check for the prerequisites and stop the installer and notify the user if the prereqs are not there.

Is bundling these with our application an option?

Thanks

Installing WSUS on Win2008R2 server already running 32bit mode sites

$
0
0

I have IIS running 2 sites on a 2008R2 64-bit Server that I brought over from a 32-bit 2003 server.  Sites are running in 32-bit mode.  When I installed WSUS it breaks all sites and WSUS doesn't work. 

This is what the pages show when I try to acces the sites . . .

HTTP Error 500.19 – Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid. Module DynamicCompressionModule
Notification SendResponse
Handler StaticFile
Error Code 0x8007007e
Requested URL http://localhost:80/
Physical Path <some Path>
Logon Method Anonymous
Logon User Anonymous

If I uninstall WSUS, my other sites work again.  I did some research and several sites state that running the following command is the fix . . .

%windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/httpCompression /-[name=’xpress’]

According to one site . . .

"This command will disable the suscomp.dll which is being installed by the WSUS. the compression schemes are defined globally and loaded in every application Pool. when WSUS x64 register this dll it will result this error when x64 version of suscomp.dll attempts to load in an application pool which is running in x32 mode."

I ran this command but I get this error in the command prompt when I run it . . .

ERROR ( message:Malformed collection indexer; format is [@position,name=’value’,name2=’value2&#8242;,…]. The @position specifier is optional, and be ‘@start’, ‘@end’, or ‘@N’ where N is a numeric index into the collection. )

I'm not sure what I'm doing wrong.  Anyone's help is appreciated.

Thanks

How to create Log for each request when IIS first time hit by request

$
0
0

How can I create Log file for a specific web application for below condition:

  1. Log for each request when it hits the IIS (time when request come).
  2. Log for each response when it goes out from the IIS (time when response goes)

Need to develop custom module which makes Log file for each request when it hits first time IIS, so each request first hit my custom module then enters into IIS for further processing. After processing the request again it goes out from my custom log.

Windows Authentication in Migrated Website

$
0
0

We have existing websites running IIS6 on Windows 2003 Servers. These websites are for our local intranet, and use Windows Authentication.

The website applications were built with Visual Studio, and require Windows Authentication so that each user is shown the items that relate to them.

Each application begins with this snippet of code in the Page_Load event:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
  If Not IsPostBack Then
    Dim usr_nm As String = "Guest"
    If HttpContext.Current.User.Identity.IsAuthenticated Then
      usr_nm = HttpContext.Current.User.Identity.Name.Split(New Char() {"\"c})(1)
    End If
    CommonTools.SqlReadConnection = WebConfigurationManager.ConnectionStrings("SQL_CONN_STR").ConnectionString
    Dim ut_data As String = String.Format(WebConfigurationManager.AppSettings("ut9513_au_list_prod"), usr_nm)
    label1.Text = String.Format("[Debug] Username :: {0}", usr_nm)
    Dim company_list As String
    Using client As New WebClient()
      Dim objUTF8 As New UTF8Encoding()
      company_list = objUTF8.GetString(client.DownloadData(ut_data)).Trim()
    End Using
  End If
End Sub

The Username always returns the default "Guest" keyword, so no records are ever displayed.

I can't figure out how to get Windows Authentication to work on these new sites.

The new machine we got is running Windows 2008 with IIS 7.5.

The website is configured with these Authentication Settings:

IIS Authentication

What could be causing this website to NOT authenticate?

I have given both the Active Directory ASPNET account and thelocal machine's IIS User account full control over the applications.

In the Application Pool, the Process Model'sIdentity is NetworkService.

Under Basic Settings, the Physical Path is set andConnect as uses Application User (pass-through authentication).

The Advanced Settings for the applications has Physical Path Credentials Logon Type set toNetwork.

I have been trying different combinations of settings over the last couple of weeks, but nothing seems to work on this new server.

Does anyone know what I could be doing wrong?

I am a Software Developer. The Network Administrator here works on the Apache servers, so he leaves the IIS website to me.

IIS 8 Application pool start options

$
0
0

Hello,

I am working on a solution that has multiple websides and multiple apppools running on same server. Recently we started migration work to Win 20012/IIS8 and discovered that severall app pools which are not supposed to start automatically (on IIS7 we set Start Automatically=False) are getting set up by our installers so that they do not start. After few tests I had to reset IIS (iisreset from command line). I noticed that those apppools started up. I did stop them manually and used iireset from CMD again to verify. Those app pools appeared to be down.

I'd like to understand what setting IIS8 uses instead of IIS7's Start Automatically? Is it 'Start Mode'? If so, what it should be set to? And lastly why the apppools stay down after deployment, but yet get started by iisreset?


Application Initialization isn't working

$
0
0

I have been trying to solve this problem for a while. I can't get this feature to work correctly.

SSL is not set on this site. There are bindings to both the SSL and the regular port.  I have a log that records when the Application_Start() method has finished. I don't see the site being hit.

The pool is configure to always run, and the site has the Preload Enabled set to True. The first option in the Default Page is set to the initializing Page.

I am running IIS 8.5.

This is the one configuration line that I have   <applicationInitialization >
      <add initializationPage="Accounts/Start" />
    </applicationInitialization>

IIS 8 (Server 2012) rewrite rules not working

$
0
0

We have a WordPress installation on a Server 2012 installation.  We have a number of redirects that are not working.  I have tried to create rules manually and through the IIS Redirect module and I cannot seem to get it to work.  Please see an example of a rule below:

<rule name="Redirect women" patternSyntax="Wildcard" stopProcessing="true">
    <match url="*" />
    <conditions>
        <add input="{HTTP_HOST}" pattern="^women" />
    </conditions>
    <action type="Redirect" url="http://my.site.com/women/{R:1}" />
</rule>


This is a WordPress multi-site so there are other rules below the alias rules but we are not sure what we are doing wrong. 

http://women.my.site.com needs to redirect tohttp://my.site.com/women/

Thanks

My css files don't work

$
0
0

Hi,

I have a website, and it's working fine when I'm using it local, but when I want to access it from Internet it doesn't show the css files. My web site doesn't have any style.

If anyone knows anything about this matter I will be pleased to know it.

Thanks.

Could not find a part of the path… " error on IIS 6.0

$
0
0

I have an ASP.NET web application running  using Active Directory authentication. I'm trying to programmatically create a new directory on a network drive  and for that i am using GetUNCPath method.My code is working fine in bebug mode but when i am publishing website and hosting on server then it is showing me error "Could not find a part of the path…".I have given all the access to drives.But still it is not working.is there any way for the same. Thanks in advance

Following is the code:

  

string a = Pathing.GetUNCPath(@"N:\\NewFolder1");

            DirectoryInfo dir1 = null;

            dir1 = Directory.CreateDirectory(a);

public static class Pathing
    {
        [System.Runtime.InteropServices.DllImport("mpr.dll", CharSet = CharSet.Unicode, SetLastError = true)]
        public static extern int WNetGetConnection(
            [MarshalAs(UnmanagedType.LPTStr)] string localName,
            [MarshalAs(UnmanagedType.LPTStr)] StringBuilder remoteName,
            ref int length);

        public static string GetUNCPath(string originalPath)
        {
            StringBuilder sb = new StringBuilder(512);
            int size = sb.Capacity;
            // look for the {LETTER}: combination ...
            if (originalPath.Length > 2 && originalPath[1] == ':')
            {
                // don't use char.IsLetter here - as that can be misleading
                // the only valid drive letters are a-z && A-Z.
                char c = originalPath[0];
                if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
                {
                    int error = WNetGetConnection(originalPath.Substring(0, 2), sb, ref size);
                    if (error == 0)
                    {
                        DirectoryInfo dir = new DirectoryInfo(originalPath);
                        string path = Path.GetFullPath(originalPath)
                            .Substring(Path.GetPathRoot(originalPath).Length);
                        return Path.Combine(sb.ToString().TrimEnd(), path);
                    }
                }
            }
            return originalPath;
        }
    }

Rewrite URL's based upon cookie value

$
0
0

How to rewrite url based upon the cookie value?  As mentioned below, I am checking cookie value. If cookie value is present just want to redirect url1 which is mentioned in rewrite maps other wise url2.  

<rule name="RedirectingtoCustomerInvoiceDetails" stopProcessing="true">
<match url="^custinvoices/([0-9a-z]+)/([0-9a-z]+)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="true">
<add input="{HTTP_COOKIE}" pattern="secuser=(.*?);" />
<add input="{CustomerInvoiceMap:{C:2}}" pattern="(.+)" />
</conditions>
<action type="Rewrite" url="" />
</rule>

<rewriteMaps>
<rewriteMap name="CustomerInvoiceMap">
<add key="true" value="http://url1.aspx />
<add key="false" value="http://url2.aspx" />
</rewriteMap></rewriteMaps/>

Viewing all 28058 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>