Quantcast
Channel: Configuration & Scripting
Viewing all 780 articles
Browse latest View live

Cannot verfy access to path

$
0
0

Hello!!

I have a problem with acess to my site, i add Network Service to wwwroot and give network service access to read, But not working!?

The message: The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that <domain>\<computer_name>$ has Read access to the physical path. Then test these settings again.

I don't understan what is wrong?!  

I'm newbe on IIS7, i know my website work, ihave runnit on IIS 6.0 and working fine! 

Thanks for help!  


Inheritance issue with client certificate

$
0
0

Hi there,

we have a website with an application underneath it. The website needs to accept (but not require) client certificates in order to redirect the user depending on their certificate. we did that with this web.config value:

<system.webServer><security><access sslFlags="Ssl, SslNegotiateCert"/></security></system.webServer>

The application, to which the user gets redirected, contains two folders which require client certificates, which is done the following way:

<system.webServer><security><access sslFlags="Ssl, SslNegotiateCert, SslRequireCert" /></security></system.webServer>

At the rootlevel, however the application should ignore client certificates:

<system.webServer><security><access sslFlags="Ssl"/></security></system.webServer>

The problem is that when navigating to the root level of the application the browser asks for a certificate. It doesn't matter if you select one or not, the pages show. So it seems like the application is inheriting from the website (accept but not require client certificates). In order to stop this behaviour i altered the websites web.config like this :

<location inheritInChildApplications="false"><system.webServer><security><access sslFlags="Ssl, SslNegotiateCert"/></security></system.webServer></location> 

But I'm still seeing the same behaviour.

Is there any other way I can prevent this? Or anything that might interfere?

The Application uses .NET 4.5 and runs on IIS 7.5

Cheers Tobi


How do I remove Etag from IIS7.5

$
0
0

I just want to optimize my asp.net web site which is hosted on IIS 7.5 web server. I have tried all the below methods using asp.net web.config file. But none of working. Please help me to resolve this.

<httpProtocol><customHeaders><remove name="ETag" /></customHeaders></httpProtocol>
<httpProtocol><customHeaders><addname="ETag"value=""/></customHeaders></httpProtocol>
<httpProtocol><customHeaders><addname="ETag"value="&quot;&quot;"/></customHeaders></httpProtocol>

How to enable PUT and DELETE verbs on IIS 7

$
0
0

Hi,

I am completely a newbie in working with IIS and so I don't know even that I am writing this post in the correct section of the forum or not.

I have just seen the video by Henrik  Frystyk Nielsen from PDC 09 on developing Rest Applications with .Net framework.

So I have just created a new  project with downloading "WCF REST Service Application" template.

Using this template, there are already couple of auto generated methods which are using PUT and DELETE verbs which are not working for me.

I am using Fiddler to create request over IIS 7.

Through fiddler GET and POST verbs are working fine but when i use the PUT or DELETE one it shows the error 405 "Method not Allowed".

I am working on Windows 7 Ultimate 64 bit and it uses IIS 7 (which is by default I suppose, I have just enable the IIS from "Add or Remove Programs").

I have tried to enable them from "Request Filtering", but that is not working.

So anyone please let me know how to enable PUT and DELETE verbs in IIS 7.

 

Thanks,

Nikhil Thaker (MCTS - ASP.NET 3.5)

 

IIS 7.5 FAILOVER CLUSTER

$
0
0

Hi,

I have configured a failover cluster for IIS 7.5 website under windows 2008 R2 entreprise edition following the steps described in this article:

http://support.microsoft.com/kb/970759

everything works fine with the generic script provided in this article but I want to add a function to restart the application pool in the second node once there is a fail in the first one.

is it possible ?

this is the script:

'<begin script sample>


'This script provides high availability for IIS websites
'By default, it monitors the "Default Web Site" and "DefaultAppPool"
'To monitor another web site, change the SITE_NAME below
'To monitor another application pool, change the APP_POOL_NAME below
'More thorough and application-specific health monitoring logic can be added to the script if needed

Option Explicit

DIM SITE_NAME
DIM APP_POOL_NAME
Dim START_WEB_SITE
Dim START_APP_POOL
Dim SITES_SECTION_NAME
Dim APPLICATION_POOLS_SECTION_NAME
Dim CONFIG_APPHOST_ROOT
Dim STOP_WEB_SITE


'Note:
'Replace this with the site and application pool you want to configure high availability for
'Make sure that the same web site and application pool in the script exist on all cluster nodes. Note that the names are case-sensitive.
SITE_NAME = "Default Web Site"
APP_POOL_NAME = "DefaultAppPool"

START_WEB_SITE = 0
START_APP_POOL = 0
STOP_WEB_SITE  = 1
SITES_SECTION_NAME = "system.applicationHost/sites"
APPLICATION_POOLS_SECTION_NAME = "system.applicationHost/applicationPools"
CONFIG_APPHOST_ROOT = "MACHINE/WEBROOT/APPHOST"

'Helper script functions


'Find the index of the website on this node
Function FindSiteIndex(collection, siteName)

    Dim i

    FindSiteIndex = -1    

    For i = 0 To (CInt(collection.Count) - 1)
        If collection.Item(i).GetPropertyByName("name").Value = siteName Then
            FindSiteIndex = i
            Exit For
        End If        
    Next

End Function


'Find the index of the application pool on this node
Function FindAppPoolIndex(collection, appPoolName)

    Dim i

    FindAppPoolIndex = -1    

    For i = 0 To (CInt(collection.Count) - 1)
        If collection.Item(i).GetPropertyByName("name").Value = appPoolName Then
            FindAppPoolIndex = i
            Exit For
        End If        
    Next

End Function

'Get the state of the website
Function GetWebSiteState(adminManager, siteName)

    Dim sitesSection, sitesSectionCollection, siteSection, index, siteMethods, startMethod, executeMethod
    Set sitesSection = adminManager.GetAdminSection(SITES_SECTION_NAME, CONFIG_APPHOST_ROOT)
    Set sitesSectionCollection = sitesSection.Collection

    index = FindSiteIndex(sitesSectionCollection, siteName)
    If index = -1 Then
        GetWebSiteState = -1
    End If        

    Set siteSection = sitesSectionCollection(index)

    GetWebSiteState = siteSection.GetPropertyByName("state").Value

End Function

'Get the state of the ApplicationPool
Function GetAppPoolState(adminManager, appPool)

    Dim configSection, index, appPoolState

    set configSection = adminManager.GetAdminSection(APPLICATION_POOLS_SECTION_NAME, CONFIG_APPHOST_ROOT)
    index = FindAppPoolIndex(configSection.Collection, appPool)

    If index = -1 Then
        GetAppPoolState = -1
    End If        

    GetAppPoolState = configSection.Collection.Item(index).GetPropertyByName("state").Value
End Function


'Start the w3svc service on this node
Function StartW3SVC()

    Dim objWmiProvider
    Dim objService
    Dim strServiceState
    Dim response

    'Check to see if the service is running
    set objWmiProvider = GetObject("winmgmts:/root/cimv2")
    set objService = objWmiProvider.get("win32_service='w3svc'")
    strServiceState = objService.state

    If ucase(strServiceState) = "RUNNING" Then
        StartW3SVC = True
    Else
        'If the service is not running, try to start it
        response = objService.StartService()

        'response = 0  or 10 indicates that the request to start was accepted
        If ( response <> 0 ) and ( response <> 10 ) Then
            StartW3SVC = False
        Else
            StartW3SVC = True
        End If
    End If
    
End Function


'Start the application pool for the website
Function StartAppPool()

    Dim ahwriter, appPoolsSection, appPoolsCollection, index, appPool, appPoolMethods, startMethod, callStartMethod
    Set ahwriter = CreateObject("Microsoft.ApplicationHost.WritableAdminManager")

    Set appPoolsSection = ahwriter.GetAdminSection(APPLICATION_POOLS_SECTION_NAME, CONFIG_APPHOST_ROOT)       
    Set appPoolsCollection = appPoolsSection.Collection

    index = FindAppPoolIndex(appPoolsCollection, APP_POOL_NAME)
    Set appPool = appPoolsCollection.Item(index)
    
    'See if it is already started
    If appPool.GetPropertyByName("state").Value = 1 Then
        StartAppPool = True
        Exit Function
    End If

    'Try To start the application pool
    Set appPoolMethods = appPool.Methods
    Set startMethod = appPoolMethods.Item(START_APP_POOL)
    Set callStartMethod = startMethod.CreateInstance()
    callStartMethod.Execute()
    
    'If started return true, otherwise return false
    If appPool.GetPropertyByName("state").Value = 1 Then
        StartAppPool = True
    Else
        StartAppPool = False
    End If

End Function


'Start the website
Function StartWebSite()

    Dim ahwriter, sitesSection, sitesSectionCollection, siteSection, index, siteMethods, startMethod, executeMethod
    Set ahwriter = CreateObject("Microsoft.ApplicationHost.WritableAdminManager")
    Set sitesSection = ahwriter.GetAdminSection(SITES_SECTION_NAME, CONFIG_APPHOST_ROOT)
    Set sitesSectionCollection = sitesSection.Collection

    index = FindSiteIndex(sitesSectionCollection, SITE_NAME)
    Set siteSection = sitesSectionCollection(index)

    if siteSection.GetPropertyByName("state").Value = 1 Then
        'Site is already started
        StartWebSite = True
        Exit Function
    End If

    'Try to start site
    Set siteMethods = siteSection.Methods
    Set startMethod = siteMethods.Item(START_WEB_SITE)
    Set executeMethod = startMethod.CreateInstance()
    executeMethod.Execute()

    'Check to see if the site started, if not return false
    If siteSection.GetPropertyByName("state").Value = 1 Then
        StartWebSite = True
    Else
        StartWebSite = False
    End If

End Function


'Stop the website
Function StopWebSite()

    Dim ahwriter, sitesSection, sitesSectionCollection, siteSection, index, siteMethods, startMethod, executeMethod, autoStartProperty
    Set ahwriter = CreateObject("Microsoft.ApplicationHost.WritableAdminManager")
    Set sitesSection = ahwriter.GetAdminSection(SITES_SECTION_NAME, CONFIG_APPHOST_ROOT)
    Set sitesSectionCollection = sitesSection.Collection

    index = FindSiteIndex(sitesSectionCollection, SITE_NAME)
    Set siteSection = sitesSectionCollection(index)

    'Stop the site
    Set siteMethods = siteSection.Methods
    Set startMethod = siteMethods.Item(STOP_WEB_SITE)
    Set executeMethod = startMethod.CreateInstance()
    executeMethod.Execute()

End Function



'Cluster resource entry points. More details here:
'http://msdn.microsoft.com/en-us/library/aa372846(VS.85).aspx

'Cluster resource Online entry point
'Make sure the website and the application pool are started
Function Online( )

    Dim bOnline
    'Make sure w3svc is started
    bOnline = StartW3SVC()

    If bOnline <> True Then
        Resource.LogInformation "The resource failed to come online because w3svc could not be started."
        Online = False
        Exit Function
    End If


    'Make sure the application pool is started
    bOnline = StartAppPool()
    If bOnline <> True Then
        Resource.LogInformation "The resource failed to come online because the application pool could not be started."
        Online = False
        Exit Function
    End If


    'Make sure the website is started
    bOnline = StartWebSite()
    If bOnline <> True Then
        Resource.LogInformation "The resource failed to come online because the web site could not be started."
        Online = False
        Exit Function
    End If

    Online = true

End Function

 
'Cluster resource offline entry point
'Stop the website
Function Offline( )

    StopWebSite()
    Offline = true

End Function


'Cluster resource LooksAlive entry point
'Check for the health of the website and the application pool
Function LooksAlive( )

    Dim adminManager, appPoolState, configSection, i, appPoolName, appPool, index

    i = 0
    Set adminManager  = CreateObject("Microsoft.ApplicationHost.AdminManager")
    appPoolState = -1

    'Get the state of the website
    if GetWebSiteState(adminManager, SITE_NAME) <> 1 Then
        Resource.LogInformation "The resource failed because the " & SITE_NAME & " web site is not started."
        LooksAlive = false
        Exit Function
    End If


    'Get the state of the Application Pool
     if GetAppPoolState(adminManager, APP_POOL_NAME) <> 1 Then
         Resource.LogInformation "The resource failed because Application Pool " & APP_POOL_NAME & " is not started."
         LooksAlive = false  
     Exit Function
     end if

     '  Web site and Application Pool state are valid return true
     LooksAlive = true
End Function


'Cluster resource IsAlive entry point
'Do the same health checks as LooksAlive
'If a more thorough than what we do in LooksAlive is required, this should be performed here
Function IsAlive()   

    IsAlive = LooksAlive

End Function


'Cluster resource Open entry point
Function Open()

    Open = true

End Function


'Cluster resource Close entry point
Function Close()

    Close = true

End Function


'Cluster resource Terminate entry point
Function Terminate()

    Terminate = true

End Function
'<end script sample>

IIS 8 Shared configuration and Group Managed Service Accounts

$
0
0

Hello,

Can group managed service accounts be used for the credentials for shared configuration? I've setup a gmsa on a fresh install of server 2012 and tested it via an app pool and it works fine but it refuses to co-operate when asking it to export the configuration to a file share (it has permissions to this). This seems a fairly useful candidate for gmsas (to me at least) as its one less account to have to manage?

setup is a lab enviroment (hence stuff on the DC, inc TFS), 1 DC vhost running 2x web servers (identical config via export roles) and 1 x sql server. all running server 2012. file share for iis is on the DC and is accessible from the web servers. run all the powershell for creating the key, installing and testing the gmsa on each host and everything from the various posts on the subject on msdn/technet.

says "Cannot write to the specified path, Make sure the Path and Credentials are valid"

using [domain]\[gmsa]$ and no password for the credentials

any ideas or is it something IIS8 cannot do or am i being dumb and trying to square peg / round hole the concept?

cheers

toby

edit: i've setup a task scheduler job via powershell using this account writing a file to that share and it did so without a problem, i hope that rules out permissions.

SendResponse state

$
0
0

Hi there,

I have ASP .net 2.0 application who is facing to following problem: sometimes I find out many HTTP requests with SendResponse state in IIS manager. As far as I know these requests are in the last stage of IIS procesing and should be immediately send to clients. Sometimes they are send in a few seconds, but sometimes they are stucked there for 200 seconds.

Can you explain me why aren't they send asap? Why do they stay for a such long time in queue? Is there any possible way how to monitor this queue in performance monitor?

Application is hosted on Windows Server 2008 R2, with all updates installed.

Thank you

Dave

 

Set up IIS servers to not cache the .noCache file type

$
0
0

Hi,

How can I set up my servers which needs to be configured so that
the file type .noCache file type will not be cached.

 

Any reference link or method explanation will be helpful.

 

THanks

 


Dos command to get web Application Start time and Application pool load state

$
0
0

Hi, in Windows Server 2008 R2,

I have IIS web application 'CAT' that is set to preloadEnabled:"true" and it's pool CATPOOL is set to autoStart:"true" and startMode:"AlwaysRunning"

This ensures that whenever CAT is restarted, the CATPOOL is preloaded.
The cache preload can take upto 30minutes.

Now, I am looking for a dos command (like appcmd) that will tell:
a) when the app 'CAT' was started and
b) the current state of the CATPOOL (if preloading is in progress or finished)
Note that the ouptut of -> 'appcmd list apppool "CATPOOL"' will return state:"Started" even though the cache preload has not finished yet !

c:\Windows\System32\inetsrv>appcmd list apps /path:/CAT /text:*
APP
  path:"/CAT"
  APP.NAME:"Default Web Site/CAT"
  APPPOOL.NAME:"CATPOOL"
  SITE.NAME:"Default Web Site"
  [application]
    path:"/CAT"
    applicationPool:"CATPOOL"
    enabledProtocols:"http"
    serviceAutoStartEnabled:"false"
    serviceAutoStartProvider:""
    preloadEnabled:"true"
    [virtualDirectoryDefaults]
      path:""
      physicalPath:""
      userName:""
      password:""
      logonMethod:"ClearText"
      allowSubDirConfig:"true"
    [virtualDirectory]
      path:"/"
      physicalPath:"D:\Program Files\CatPro\CAT Reporting System"
      userName:""
      password:""
      logonMethod:"ClearText"
      allowSubDirConfig:"true"




c:\Windows\System32\inetsrv>appcmd list apppool "CATPOOL" /text:*
APPPOOL
  APPPOOL.NAME:"CATPOOL"
  PipelineMode:"Integrated"
  RuntimeVersion:"v4.0"
  state:"Started"
  [add]
    name:"CATPOOL"
    queueLength:"4000"
    autoStart:"true"
    enable32BitAppOnWin64:"false"
    managedRuntimeVersion:"v4.0"
    managedRuntimeLoader:"webengine4.dll"
    enableConfigurationOverride:"true"
    managedPipelineMode:"Integrated"
    CLRConfigFile:""
    passAnonymousToken:"true"
    startMode:"AlwaysRunning"
    [processModel]
      identityType:"NetworkService"
      userName:""
      password:""
      loadUserProfile:"false"
      setProfileEnvironment:"true"
      logonType:"LogonBatch"
      manualGroupMembership:"false"
      idleTimeout:"1.01:40:00"
      maxProcesses:"1"
      shutdownTimeLimit:"00:01:30"
      startupTimeLimit:"00:01:30"
      pingingEnabled:"true"
      pingInterval:"00:00:30"
      pingResponseTime:"00:01:30"
    [recycling]
      disallowOverlappingRotation:"false"
      disallowRotationOnConfigChange:"false"
      logEventOnRecycle:"Time, Memory, OnDemand, PrivateMemory"
      [periodicRestart]
        memory:"0"
        privateMemory:"0"
        requests:"0"
        time:"00:00:00"
        [schedule]
    [failure]
      loadBalancerCapabilities:"HttpLevel"
      orphanWorkerProcess:"false"
      orphanActionExe:""
      orphanActionParams:""
      rapidFailProtection:"true"
      rapidFailProtectionInterval:"00:05:00"
      rapidFailProtectionMaxCrashes:"5"
      autoShutdownExe:""
      autoShutdownParams:""
    [cpu]
      limit:"0"
      action:"NoAction"
      resetInterval:"00:00:00"
      smpAffinitized:"false"
      smpProcessorAffinityMask:"4294967295"
      smpProcessorAffinityMask2:"4294967295"



Thanks,

-srinivas y.

How to Create a Custom HTTP Error Response using AppCmd

$
0
0

I am trying to create a Custom HTTP Error Response using AppCmd as explained in 

http://technet.microsoft.com/en-us/library/cc753103(v=ws.10).aspx

The only difference is that I want to create custom error response for only one particluar virtual directory. 

To make it clear, I have a Web Site under IIS named 'MyHost'. My host has multiple virtual directories under it have different applications.

What I want to do is create a custom error response for only one virtual directory.

Ofcourse, i can do it using the standard User Interface but what I see is that IIS7 modifies my web.config which I do not want due to some old code and dependecies.

Thus, I want to modify the ApplicationHost.config itself and put the <httError> section using AppCmd.

Or if there is any other better way, please suggest.

Thanks in advance.

Web Analytics Software - Recommendations

$
0
0

Hello, 

Any recommendations out there (from experience and/or in-depth knowledge) of any Web Analytics software for internally hosted sites for a Large Enterprise? 

 Anything with Centralized Management would be great.  

 We have external sites, internal sites for production, intranet sites, etc.  

 Running Windows 2008R2 with IIS 7.5 - Multiple IIS servers.  

 I have a lot of reading to do (http://en.wikipedia.org/wiki/List_of_web_analytics_software), but wanted to get some experiences/input to make my research a bit easier. :)  

Thanks!

How to sync 2 complete identical IIS 7.5 webservers with webdeploy 3.5 (msdeploy)

$
0
0

Hi all,

I could configure my script correctly for IIS6 with webdeploy but for one reason or another I can't make it work with IIS 7.5??
Hope one of you will be able to help me, it certainly is a detail I overlooked but still can't find itYell

Situation:
So I have 2 identical frontend servers W2K8R2 both of course running IIS7.5. The goal is to load balance them for redundancy.
Only issue is the sync that I can't get fixed. So here is the line I'm using to sync them both.

Msdeploy -verb:sync -source:webServer -dest:webServer,computername=SERVERNAME2 skip:Directory="C:\\temp" > WebSyncLog.log

I'm trying to use the push method here, the script is running on the 'source' webserver and SERVERNAME2 is the destination server.
The goal is to synchronize 'ALL' the sites hosted from one webserver to the other.

Hope you can help me with this one, I'm sure it's something stupid I'm overlooking but can't find out what??!!!
So again thanks for your help!

Amazing regards from Belgium! Laughing

Fabrice

General appcmd set config question - how does omitting the "target" work?

$
0
0

As I understand it, these are functionally (almost?) equivalent:

appcmd set config /section:httpProtocol /+customHeaders.[name='P3P',value='policyRef="""             http://contoso.com/P3P.xml             """']

appcmd set config "MyWebsiteName" /section:httpProtocol /+customHeaders.[name='P3P',value='policyRef="""             http://contoso.com/P3P.xml             """']

in the first one, what goes on when there are MANY sites on the server?

NOTE: perhaps httpProtocol is a bad example, because it might just "fall up" into applicationHost.config if there are no "deeper" settings... but hopefully you understand where I'm coming from and can inform me how this tool determines where stuff goes...

I ask because much of the doco leaves out the website name/id and I wonder if this is an assumption that there will only ever be one SITE per SERVER to apply these changes or if the assumption is that mostly the place where these things are set is in appconfig and so this is where the "ommitted" value goes (to the first place it finds that setting).

Of course I could be wrong and omitting might SEARCH ALL OBJECTS in the server and replace EVERY set value to this new operation...

eg: in the above, every web.config that has a "httpProtocol section will get this item added...

Any info appreciated. Thanks.

Live Streaming Handler

$
0
0

My brain hurts.  I recently upgraded an iis 7 machine with IIS media services 4.1.  Now I get a 500 error message when trying to publish files from expression web 4.  The failed request tracing log reports invalid index for Live Smooth Streaming Module.  Please help.

Here is a copy of what is returned.

ModuleNameLiveStreamingHandler
Notification16
HttpStatus500
HttpReasonInternal Server Error
HttpSubStatus0
ErrorCode2147943813
ConfigExceptionInfo
NotificationMAP_REQUEST_HANDLER
ErrorCodeInvalid index. (0x80070585)

Failed to load resource: the server responded with a status of 405 (Method Not Allowed)

$
0
0

Good Evening all

i am trying to post data coming from a form to the server and return a string , when i test this service works nicely. Its a Rest web api. now iam consuming it in Javascript Ajax like this

<script type="text/javascript">
function ProcessRegistration() {
jQuery.support.cors = true;$.getJSON("http://www.mydomain.mymaindomain.com/api/Registration/Create", function (data) { 
alert(data);

}); 
} </script> 



When i run this and i get an Error

 
Failed to load resource: the server responded with a status of 405 (Method Not Allowed)http://www.mydomain.mymaindomain.com/api/Registration/Create 
 

i have added the headers in IIS

 "Access-Control-Allow-Origin" "*" 

in my web config of the service i have added

 

<system.webServer><httpProtocol><customHeaders><add name="Access-Control-Allow-Origin" value="*" /></customHeaders></httpProtocol><........... 

i have done all suggested by my research but i still get that error, try to restart the server but still the same.


Compiler Error Message: CS0246: The type or namespace name 'IHSHeaderFunctions' could not be found (are you missing a using directive or an assembly reference?)

$
0
0

I've just been volunteered to get get our old (v basic) intranet site up.  The website is running, but unable to browse to it.  Bear in mind I have had zero exposure to any coding thus far.

It's IIS  on Win2003 SP2

Extract from default.aspx  The line in bold is generating the error listed in the subject.  After a bit of searching, it makes reference to DLLs - it wasn't that specialist. 

---

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%

IHSHeaderFunctions IHSHF = new IHSHeaderFunctions();

    Response.Write(IHSHF.outputHeader("Home Page", User.Identity.Name.Split(new char[] { '\\' })[1]));
 %>
 
<center><h3>CIT Home Page</h3>
<br />

---

<div class="expandable">Show Detailed Compiler Output:</div> <div id="compilerOutputDiv" sizset="false" sizcache008193564559855737="2970 115 51">
c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.DirectoryServices\2.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\App_Web_emvilcdl.dll" /D:DEBUG /debug+ /optimize- /win32res:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\emvilcdl.res" /w:4 /nowarn:1659;1699;1701  "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\App_Web_emvilcdl.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\App_Web_emvilcdl.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\App_Web_emvilcdl.2.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\App_Web_emvilcdl.3.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\1037d5f6\1548fe50\App_Web_emvilcdl.4.cs"


Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.3053
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

e:\IHS Scripts\zzznofile.aspx(4,5): error CS0246: The type or namespace name 'IHSHeaderFunctions' could not be found (are you missing a using directive or an assembly reference?)
e:\IHS Scripts\zzznofile.aspx(4,36): error CS0246: The type or namespace name 'IHSHeaderFunctions' could not be found (are you missing a using directive or an assembly reference?)
e:\IHS Scripts\Default.aspx(7,1): error CS0246: The type or namespace name 'IHSHeaderFunctions' could not be found (are you missing a using directive or an assembly reference?)
e:\IHS Scripts\Default.aspx(7,32): error CS0246: The type or namespace name 'IHSHeaderFunctions' 
</div>

Contents of zzznofile from above

%@ Page Language="C#" AutoEventWireup="true" CodeFile="zzznofile.aspx.cs" Inherits="zzznofile" %>

<%
    IHSHeaderFunctions IHSHF = new IHSHeaderFunctions();

    Response.Write(IHSHF.outputHeader("User Management", User.Identity.Name.Split(new char[] { '\\' })[1]));
 %>
 
 <center>
 <h3>Page Does not Exist</h3>
<br />
<table>
<tr><td>
<h5>This page has not been built yet. Please try again soon. </h5>
</td></tr>
</table>

 </center>
 <br />
 

 
 
 
 <%
    Response.Write(IHSHF.outputFooter());
 %>

Any ideas/comments/suggestions gratefully received

Thanks

Richard

port forwarding in iis

$
0
0

hello,

I have a server listening on port 8080.

In some places it may happen that this outgoing port is blocked or filtered.

I host several websites allready, on the default 80 port. 

Question : Is it possible to host another website (example.com) on the port 80 and it acts as a proxy, it transmit the request to my app on the 8080 port, get the answer, and iis reply to the client ?

What simple solution would you recommend to achieve this ?

I have windows 2008 r2 with iis7.

Thank you Laughing

IIS7.5 FTP User Authentication

$
0
0

Hi,

I have installed Windows Embedded Standard 2009 on the target machine along with IIS feature enabled. I have created a new FTP site with the name "FTPSite" and now I need to enable FTP Authentication (Basic) using commandline.

I have gone through the MSDN Technet website for enabling FTP Authentication using the commandline and got the following one,.

"appcmd.exe set config -section:system.applicationHost/sites /siteDefaults.ftpServer.security.authentication.basicAuthentication.enabled:"True" /commit:apphost"

"appcmd.exe set config -section:system.applicationHost/sites /siteDefaults.ftpServer.security.authentication.AnonymousAuthentication.enabled:"True" /commit:apphost"

The above commands are executing well in the commandline and received "Applied Configuration changes to section "system.applicationHost/sites" for "MACHINE/WEBROOT/APPHOST" at configuration commit path "MACHINE/WEBROOT/APPHOST""

But when I checked in the IIS console, the FTP Authentication were not enabled and remains in the Disabled state.

Could someone tell what went wrong and why the FTP Authentication is not reflected in the IIS console?

Many thanks,

Prabu M

 

Windows command to change Connect to Server's name

$
0
0

Hi, I am writing a script to automatically create a Connect to Server entry in IIS 7 Manager. This is to simulate user manually click Connect to a Server option within the IIS Manager. Looks like InetMgr.exe might be an option. But it doesn't seem to take parameters related to this. Can someone shed some light?

Thanks

IIS7 Compression not honoring minfilesizeforcomp setting

$
0
0

Trying to figure out why IIS7 will not honor the minfilesizeforcomp setting for http compression.   Right now, I'm compressing JSON data that sometimes is as small as 77 bytes all the way "down" to 151 bytes - obviously a less than optimal use of CPU cycles and bandwidth.....   My minimum setting is 1024 bytes.

 

I have not tested but I've seen others complain that they couldn't get this setting to be honored for static files either, although I have not tested this myself.

 

Below is the relevant xml from applicationHost.config

 

        <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" minFileSizeForComp="1024">
            <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
            <dynamicTypes>
                <add mimeType="text/*" enabled="true" />
                <add mimeType="message/*" enabled="true" />
                <add mimeType="application/x-javascript" enabled="true" />
                <add mimeType="application/json" enabled="true" />
                <add mimeType="application/json; charset=utf-8" enabled="true" />
                <add mimeType="*/*" enabled="false" />
            </dynamicTypes>
            <staticTypes>
                <add mimeType="text/*" enabled="true" />
                <add mimeType="message/*" enabled="true" />
                <add mimeType="application/javascript" enabled="true" />
                <add mimeType="*/*" enabled="false" />
            </staticTypes>
        </httpCompression>

 

Any ideas or alternatives???

Viewing all 780 articles
Browse latest View live


Latest Images