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

'dbo.aspnet_CheckSchemaVersion error while using aspnet_regsql.exe

$
0
0

Hi

I have a database and exported from local to remote host. After that the following error occur:

Server Error in '/' Application.

Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SqlException (0x80131904): Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +1753346
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5295154
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +242
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +1682
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +269
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite) +1325
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) +175
   System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) +205
   System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +160
   System.Web.Util.SecUtility.CheckSchemaVersion(ProviderBase provider, SqlConnection connection, String[] features, String version, Int32& schemaVersionCheck) +402
   System.Web.Security.SqlMembershipProvider.CheckSchemaVersion(SqlConnection connection) +84
   System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate) +821
   System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +88
   System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +106
   System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +59
   System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +113
   System.Web.UI.WebControls.Login.AttemptLogin() +119
   System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +75
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +114
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +159
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1724

Then I use aspnet_regsql.exe for convert login file and convert all database parts but the above error presist.

I would be appreciate for eny help.


adding element to collection in applicationHost.config with Powershell WebAdministration module

$
0
0

how to add a <clear /> element and <remove attributeName=attributeValue /> to the collection with powershell webadministration module?

I can add something to collection with this command:

Add-WebConfiguration "/system.ftpServer/security/ipSecurity" -Value @{ipaddress='1.2.3.4';subnetMask='255.255.255.0'}

the result:

    <system.ftpServer>
        <security>
            <authorization />
            <ipSecurity>
                <add ipAddress="1.2.3.4" subnetMask="255.255.255.0" />
            </ipSecurity>
        </security>
    </system.ftpServer>

but I have no idea how to add <clear /> and <remove /> ellements... please help!

How to add a virtual directory inside a virtual directory using appcmd

$
0
0

Hi Everyone

Does anyone know how I can add a virtual directory to an existing virtual directory?

Example:

Default Web Site/products

Now I want to add another virtual directory under products i.e.  Default Web Site/products/images

I've tried using appcmd with various syntax but still doesnt work.

Any help is greatly appreciated.

Powershell Remove-WebApplication cmdlet will not remove Web Application

$
0
0

I've created a web application within a web site called "MyWebApp" and it's physical path to a folder called "mywebapp". When I use the Powershell v2.0 Remove-WebApplication cmdlet it will not remove the web application. 

My theory is the way Remove-WebApplication works is when it cycles through the IIS directory listing it finds the first name that matches and tries to remove it. 

Type               Name                             Physical Path
----               ----                             -------------
directory          mywebapp                         C:\USNB361VM-USDB12\LEGACY_2455460.0\Support\mywebapp
application        MyWebApp                         C:\USNB361VM-USDB12\LEGACY_2455460.0\Support\mywebapp

In this case it's a directory and not an application "Type". If there really isn't a web application to remove, the cmdlet would throw a "Cannot find path xxxxxx because it does not exist." exception, but in my case no error message was thrown.

There is no "-Type" switch I can use with this cmdlet. How can I zero in on the application type and remove the web application successfully?

<div></div>


Thanks,

Ed

iis and idn domain problem

$
0
0

Hello when i try to add a domain with å ä ö xn--ooo-95a4r.se iis does not allow me to use signs like ( - ) how can i change that?

Site path modified in IIS but not taken into account

$
0
0

Hi,

We have a recurring problem on some of our machines.

We have approximatively 30 IIS sites.

We automated our application deployment by unzipping the binary and switching the PhysicalPath of the sites using set-itempropery cmdlet.

Some of our sites are not updated : the loaded dlls are from the older version of our product.

I checked with Process Explorer, I periodically see the older dll trying to be loaded from Temporary Aspnet Files.

I tried to recycle the app pool, the problem persists, only a iisreset /restart seems to solve the problem.

Any clue ?

Start iisexpress with custom redirection.config or aspnet.config

$
0
0

I can start iisexpress.exe using a custom config file through the /config argument, but it seems that I can't specify a custom redirection.config or aspnet.config file at the same time. Is there a way to do that? Thanks!

donwload file instead display content


How to enable Logging on IIS 7.5?

Looking for web.config in website root rather than in application root

$
0
0

I have an applcation which includes it's own web.config.  When I place the applcation in the website root (e.g. inetpub/wwwroot) everything works fine.  If I move the applcation to a virtual directory as an application, I get the message "[FileNotFoundException: Could not find file 'C:\inetpub\wwwroot\web.config'." i.e. it seems to still be looking for the config file in the web root.  There is no config file in the web root but there is one in  the applcation root.

 

I am using IIS8 and Windows 2012.  Feature delegation seems to be OK and there is nothing in the web.config file telling it to look in a parent web.config file.

So localhost works but localhost/appdir doesn't.

 

Any suggestions? 

 

 

 

Virtual Directory Throws 500 error when accessing xml files.

$
0
0

I created a virtual directory to access global files for multiple websites.

All files render properly except for xml files.

This works (without the VD)

http://www.recreatescottsdale.com/assets/xml/config_2986.xml

Note: recreate directs to:

C:\inetpub\wwwroot\LiveStoreFronts\stores\reCreate

This does NOT WORK:

http://www.recreatescottsdale.com/globalStoreAssets/reCreate/assets/xml/config_2986.xml

globalStoreAssets points to:

C:\inetpub\wwwroot\LiveStoreFronts\stores

I have given everr account permission to read & exec, list and read.

If I remove the web.config the xml files are readable but the site goes down.

Here is the web.config

<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><handlers><add name="JWildCardHandler" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\8\jrun_iis6_wildcard.dll" resourceType="Unspecified" requireAccess="None" /><add name="hbmxmlHandler" path="*.hbmxml" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" /><add name="cfswfHandler" path="*.cfswf" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" /><add name="cfrHandler" path="*.cfr" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" /><add name="cfcHandler" path="*.cfc" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" /><add name="cfmlHandler" path="*.cfml" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" /><add name="cfmHandler" path="*.cfm" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" /><add name="jwsHandler" path="*.jws" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" /><add name="jspHandler" path="*.jsp" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" /></handlers><defaultDocument><files><add value="index.cfm" /></files></defaultDocument></system.webServer></configuration>

Any help would be appreciated

II7 : Configuration Error

$
0
0

Hi All,

I'm getting the following error on IIS7, In case of this error, the website doesn't display the configured internal error (500) page as well, nor the Global.asax "Application_Error" event was fired in this case.

 our motive is to display a html error page to the user in such condition.

Please let me know in case if you have any solution for this.

Thanks in advance

Regards
Jayan

The Error :  

Server Error in '/' Application.

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: The configSource file 'Instrumentation.config' is also used in a parent, this is not allowed.

Source Error:

Line 43: 		</assemblyBinding>
Line 44: </runtime> Line 45: <loggingConfiguration configSource="Instrumentation.config" /> Line 46: <AnalyticsDataProvider defaultProvider="Google"> Line 47: <providers>

Source File: C:\inetpub\wwwroot\lbcms\web.config   Line:45

PowerShell Error: Cannot write configuration file

$
0
0

Im getting the below error when trying to use the Set-WebConfiguration cmdlet at a file level. It seems to work fine on the site level, please help. 

Error: Cannot write configuration file

+ CategoryInfo : NotSpecified: (:) [Set-WebConfiguration], DirectoryNotFoundException
+ FullyQualifiedErrorId : System.IO.DirectoryNotFoundException,Microsoft.IIs.PowerShell.Provider.SetConfigurationCommand

Set-WebConfiguration system.webServer/httpRedirect "IIS:\Sites\Default web site" -location index.html -Value @{enabled="true";destination="http://google.com";exactDestination="true";childOnly="false";httpResponseStatus="Permanent"} -verbose



IIS 7++ Redirect Parameters reference

$
0
0

This is probably old news, but it seems there is no "official" doc (MSDN/TechNet, etc) on this topic.

  • For IIS6, documentation exists here
  • Unless I missed it, the same sounding document for IIS7 (and 7.5) is in a helpfile (chm) from here without the detail in the IIS6 documentation. Similar references are online as well, but just the same, not in the same detail for IIS6.

So are we to "assume" the IIS6 doc on this will work for 7++?  This forum has references to this topic and out in the wild, you'll see similar blogs referring to the same parameters.  But notice where the comments state"you have to know Microsoft changed":

$S$Q

to

$V$Q

Other "solutions" include re-write modules (using or creating, etc.).

So, is there anything "official" from Microsoft? 

Thanks for any input/time.

Server Certificate - Complete Certificate Request error

$
0
0

I get this error when I choose the cerificate file and give the friendly name and click on Ok.

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))            

I made sure the IUSR, IIS_USERS, NETWORK SERVICE, Administrator ( the domain user ) all have full control to the folder where this file is located?

What else do I need to setup??

Thanks


Creating a handler mapping using appcmd

$
0
0

Hi Everyone

I am using the following command line to create a handler mapping:

appcmd.exe set config "Default Web Site/test1/cgi-bin" -section:handlers /+"[name="test1-CGI",path='*.cgi',verb='*.cgi',modules='cgiModule']"

When I try to open the application to view the handlers I get the following error:

ERROR ( message:Configuration error
Filename: \\?\C:\Windows\system32\inetsrv\config\applicationHost.config
Line Number: 0
Description: . )

At first I thought it was a corruption with the config file, so I restored it from the C:\inetpub\history but still the same issue.

Can anyone help please?

The strange thing is, this worked before and I get this error even after uninstalling/re-installing IIS7.

Thank you in advanced

VS2008 debugging problems

$
0
0

I'm attempting to debug VB ASP.NET websites within IIS7 using VS2008 SP1 on Vista 64-bit Ultimate but getting the message "Unable to start debugging on the web server. IIS does not list a web site that matches the launched URL".

The next test was to run the website using the file system rather than IIS – that works, so it looks like an IIS7 config setting that is the problem.

So next I ran:
%systemroot%\system32\inetsrv\APPCMD list sites
To see if my test site was present – and it is.

I'm reasonably sure that debugging has worked in the past, but can't be absolutely sure because I've been doing WinForms stuff recently and websites on a Windows XP using VS2005 but not websites on Vista using VS2008. However for the Vista/VS2008 development I have installed .NET Framework 3.5 SP1 - so that may be a factor. Also I’ve installed the URL Rewrite module (though I did remove it temporarily whilst having these problems).

Apart from that I've done all the usual things like run in Administrator mode, enabled Windows Authentication, HTTP Keep Alives are enabled perhttp://ryanfarley.com/blog/archive/2005/08/23/8540.aspx.

The developer learning page at http://learn.iis.net/page.aspx/387/using-visual-studio-2008-with-iis-70/ goes through creating a website with VS2008 but this didn’t bring me any nearer a solution.

The page at http://msdn.microsoft.com/en-us/library/dwesw3ee(VS.80).aspx does not cover Vista and VS2008 (at this time) and there appear to be some material differences.

On VS2003 there used to be a webinfo file that ensured that the debugger could reference the project file, but that now seems obsolete.

What magic setting will finally persuade VS 2008 to start debugging these VB ASP.NET sites?

TIA

Crispin

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM

$
0
0

Hi people,

I have a Silverlight app which the Web Service is in the same solution.  I have a web.config for Windows authentication and the App.Web is configured as follow :

Anonymous Authentication : Disabled
SSL Enabled : true
Windows Authentication : Enabled

I was working as normal, everything was absolutely fine then I added an [OperationContract] absolutely as normal like the others, and do the usual action I always did which is compile the App.Web and then go in the client to Update the service reference and here's what I got :

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,NTLM

Now I hosnestly don't know what to do.  I've read a lot on the web about configuration but since nothing changed at all not a single character I'm completely lost.  Any ideas where I should look at to solve this issue ?

I repeat to make sure it's clear,  absolutely nothing changed nor in VS 2012 nor in IIS EXPRESS configuration nor in my Web.Config
I really need help on this as I'm unable to update my Service Reference on the client side

Background timer thread in IIS

$
0
0

Hi,

I want to know how to setup a background  timer  thread that runs within the  IIS 7.5 of  ASP.NET MVC4 application . This  thread  should start when application has started and should periodically scan the database  to send escalation emails or alert (through SignalR hosted in same IIS server).

I am completly new on IIS timer setup topic, Can anyone throw some light on how to setup time thread in IIS to achive above requirment? Thanks.

Service Name Indication - ServiceConfiguration for Azure

$
0
0

You can checkmark Service Name Indication in Site Bindings in IIS, but to persist on Azure this setting needs to be in Service Configuration file.  How would this be specified?

Viewing all 780 articles
Browse latest View live


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