Quantcast
Channel: Configuration and Deployment
Viewing all 3561 articles
Browse latest View live

deployment error?

$
0
0

when am doing deployment,am getting this error,can you please clear it for me,what is the meaning of it?and how should i clear this error?

Error 2 Web deployment task failed.(Could not complete the request to remote agent URL 'https://newonlineexam:8172/msdeploy.axd?site=Default Web Site'.)

Could not complete the request to remote agent URL 'https://newonlineexam:8172/msdeploy.axd?site=Default Web Site'.
The remote name could not be resolved: 'newonlineexam' 0 0 newonlineexam


Web.config write rewrite rule for gclid= in asp.net

$
0
0

Hello Team,

Could you please help me to rewrite the rule in web.config? I have to write rule for gclid= 

My web.config rules are as follows:

<system.webServer><rewrite><rules><rule name="GCLID Rule" stopProcessing="true"><match url="^(.*)$"/><conditions logicalGrouping="MatchAll"><add input="{QUERY_STRING}" pattern="^(gclid=.*)" /></conditions><action type="Rewrite" url="/Default.aspx/{R:1}?" /></rule><rule name="Redirect to WWW" stopProcessing="true"><match url=".*" /><conditions><add input="{HTTP_HOST}" pattern="^idimplants.com.au$" /></conditions><action type="Redirect" url="http://www.idimplants.com.au/{R:0}" redirectType="Permanent" /></rule></rules></rewrite><defaultDocument><files><clear /><add value="default.aspx" /><add value="Default.htm" /><add value="Default.asp" /><add value="index.htm" /><add value="index.html" /><add value="iisstart.htm" /></files></defaultDocument></system.webServer>

However above rewrite rule is not working. It is redirecting to default page i.e. home page of my site.

This should work like when I write 

http://www.idimplants.com.au/?gclid=
It should remain as it is with its home page.


Thanks in advance

How to solve "Assembly binding logging is turned OFF"?

$
0
0

I was trying to launch my web application to server, but the following error pops up.

Error:

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 

This is my first time, so I'm so frustrated on that.

Hope there's someone help.

Very much appreciated.

The source was not found, but some or all event logs could not be searched. Inaccessible logs: Security.

$
0
0

Hi,

In one of my asp.net web application i need to create eventsource named "SampleEvent" after verifying if that is present in the application log or not. For that i wrote a sample code to check and create eventsource if the source is not present. The sample code goes like :

if(!System.Diagnostics.EventLog.SourceExists("SampleEvent"))

{

       System.Diagnostics.EventLog.CreateEventSource("SampleEvent", "Application");

}

When i ran the sample application without hosting in IIS7.0 on Windows 7 OS, it is working fine without any issues.

When i hosted the sample application on IIS7.0 and ran the application. it is throwing me the security exception like :"The source was not found, but some or all event logs could not be searched. Inaccessible logs:Security."

I verified several blogs and tried different scenarios. By making impersonate value to "True" and etc., but could not find the actual solution for this.

Can you please let me know what exactly i need to do for resolving this issue?

When i verified the authentication levels in IIS for this application, it is mentioned as forms and anonymous authentication is enabled and "ASP.Net Impersonation" is disabled.

For reference, my web.config file goes like this :

 <system.web>
    <compilation debug="true" targetFramework="4.0" />

    <authentication mode="Forms">
      <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
    </authentication>

    <membership>
      <providers>
        <clear />
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" />
      </providers>
    </membership>

    <profile>
      <providers>
        <clear />
        <add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" />
      </providers>
    </profile>

    <roleManager enabled="false">
      <providers>
        <clear />
        <add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" />
        <add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" />
      </providers>
    </roleManager>
        <identity impersonate="false" />

    <securityPolicy>
      <trustLevel name="Full" policyFile="internal"/>
    </securityPolicy>
   
  </system.web>

  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />

    <modules runAllManagedModulesForAllRequests="true" />
  </system.webServer>

 

Please verify the above scenario and let me know what exactly i need to do for resolving that security exception?

Thank You.

Removing specific connection strings in web.config transformation

$
0
0

I have a few connection strings in my web.config that I want to remove using web.config transformation when I deploy my web app. I had found the MSDN page talking about web.config transformation but it only list a "Remove" which removes the first entry or the "RemoveAll" that deletes them all. Is there a way to only remove specific connection strings?

<connectionStrings><add name="DB"
         connectionString="Data Source=; Initial Catalog=; User ID=; Password=;"
         providerName="System.Data.SqlClient" /><add name="ErrorLog"
         connectionString="Data Source=; Initial Catalog=; User ID=; Password=;"
         providerName="System.Data.SqlClient" /><add name="SiteFiles"
         connectionString="" /><add name="FanFiles"
         connectionString="" /></connectionStrings>

CS0016: Could not write to output file

$
0
0

Hi sir,
  I created a empty website, i just put one label,one textbox and one button. I did not write any code, if i run the program i got the errorWhen i run my application, I am getting the error "CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website3\d4ad02e2\1ca36343\App_Web_default.aspx.cdcab7d2._gn9gwvv.dll' -- 'Access is denied. '"
in my system.

I gave full permission for users like iusr and networkservice for the folders like c:\windows\temp and C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files. But i cant able to create a new website.

[Note: I am using visual studio 2005 with installed IIS and did the aspnet_regiis tool also]





Still getting the same error. Kindly give me the solution for this problem.

ASPNet_regbrowsers.exe is throwing access denied error.

$
0
0

For one of our requirement, we had to modify the ie.browser and web.config files (%windir%\microsoft.Net\Framework64\v2.0.50727\CONFIG\Browsers and %windir%\microsoft.Net\Framework64\v2.0.50727\CONFIG). After modifying these files, when I execute aspnet_regbrowsers.exe, we are getting access denied error. Following is the error message:

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

I have executed aspnet_regbrowsers.exe (available at %windir%\microsoft.Net\Framework64\v2.0.50727) from command prompt under administrative privileges. I am facing this on windows server 2008 R2 x64 bit.

Any help is appreciated.

Thanks.

Hosting ASP .NET Website

$
0
0

Hi, I want host an ASP .NET website in internet which is there in other server.

How can we direct this requests to another website which is in intanet only?

As site is in intranet I cannot divert through internet.

Is there any way to send requests from one server to other server internally


Wierd Web.Config problem

$
0
0

OK...this is a strange one.

My web config contains:

<authentication mode="Forms"><forms loginUrl="~/account/login.aspx" timeout="2880"/></authentication>

But when I use an anonymous account to try and access a secured page I get redirected to (for example):
http://localhost:49761/aperia/Account/Login?ReturnUrl=%2faperia%2fadmin%2fdefault.aspx

NOTE: the url is pointing to login NOT to login.aspx so the resource, obviously, cannot be found. Manually adding the missing .aspx to the url in the browser address bar and the page pops up correctly. More subtly the url redirected to has upper case Account and Login! Now imagine my surprise when I find I can change the loginUrl setting to anything I like and I STILL get redirected to the same URL. It seems the web.config is being ignored!

I would really appreciate any pointers on what is going on and where it is getting this redirection URL from!Frown

Thanks in advance

Alistair

Website not accessible on other computers on the network

$
0
0

I have created a website which can be accessed on the server using localhost. Website not accessible on other computers on the network. I get the error "Internet Explorer cannot display the webpage".

I can access other websites on that IIS web server. Please help. Thank you.

HTTP Error 500.19 after moving ASP.NET project

$
0
0

Hi guys,

I recently decided to move all my Visual Studio projects to my dropbox folder for easy access. However, when I run one of my ASP.NET projects, I get the following error:

Module   IIS Web Core
Notification   Unknown
Handler   Not yet determined
Error Code   0x80070003
Config Error   Cannot read configuration file
Config File   \\?\I:\Documents\Schule\Praktikum\IHK-Projekt\WerIstWo\WerIstWo\web.config
Requested URL   http://localhost:53086/abwesenheit.i3s/Login.aspx
Physical Path   
Logon Method   Not yet determined
Logon User   Not yet determined
Request Tracing Directory   E:\Users\BlitzKriegWindows\Blitzkrieg\Documents\IISExpress\TraceLogFiles\

This only happens when I use IIS from the project properties. When I use Visual Studio Development Server, it works. Also, if I plug in my USB drive, it also works (I have not yet deleted the corresponding project folder from there).

I already tried setting the permissions of the project folder in the dropbox folder to no avail.

If anybody could help me out here I would be really thankful as this is starting to really bug me out.

Asp.net webApplication Data Saving updating deleting not working from IIS Page

$
0
0

i have developed one WebApplication in VS2012 and all functionality working fine in if am running webpage from my VS2012

I am hosted my WebAplication in IIS  7.5 But Data Saving updating deleting  not working when i tried to acces page from IIS but reading

all data and showing in the pages but i cant update and save new data 

any idea what may be the problem? using same connection string in VS2012 and IIS also 

web.config redirect random urls.

$
0
0

I need to make a web.config file that will redirect all request that is not a actually page to the home page. So if someone tries to come to my site http://domain.com/dalkdsnfsn they will be taken to the home page. I have tried quite a few rules and cant seem to get it to work for anything.

Just need any calling to the site that is not of a page that is actually on the site to be redirected to home page. Can someone please help me.

web.config rewrite rule

$
0
0

I have tried in vane for days on end and asked in numerous places for help without any joy.

I basically need to be able to rewrite my dynamic URL;

http://mysite.co.uk/clubs/?club=whatever%club

to;

http://mysite.co.uk/clubs/whatever-club

I have this;

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="LowerCaseRule1" stopProcessing="true">
<match url="[A-Z]" ignoreCase="false" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="{ToLower:{URL}}" />
</rule>
<rule name="Rewrite to clubs" enabled="true">
<match url="^http://mysite.co.uk/clubs/[0-9a-z-]+/([0-9]+)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="?club={R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Which seems to little to nothing other than breaking my main navigation.

I have read resource after resource which is just sending me in an endless circle.

All of my template pages are in PHP, I just need to present a better URL structure

SSRS records export to Excel

$
0
0

Hi,

My database has more than 3Lacs of records,

On SSRS report, when i choose an option to export all the records to Excel document(by default 65000 records per sheet), i get the below error.,

Server Error in '/' Application.


For more information about this error navigate to the report server on the local server machine, or enable remote errors

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.Exception: For more information about this error navigate to the report server on the local server machine, or enable remote errors

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:

[Exception: For more information about this error navigate to the report server on the local server machine,
 or enable remote errors] [Exception: An error occurred during rendering of the report.] Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url,
 Stream outputStream, String& mimeType, String& fileNameExtension) +589 Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format,
 String deviceInfo,
 NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType,
 String& fileNameExtension) +940 Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo,
 NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType,
 String& fileNameExtension) +28 Microsoft.Reporting.WebForms.ServerReport.Render(String format, String deviceInfo,
 NameValueCollection urlAccessParameters, String& mimeType, String& fileNameExtension) +88 Microsoft.Reporting.WebForms.ServerReportControlSource.RenderReport(String format,
 String deviceInfo, NameValueCollection additionalParams, String& mimeType,
 String& fileExtension) +123 Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection
 urlQuery, HttpResponse response) +143 Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +985 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +406 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +76



Version Information: Microsoft .NET Framework Version:2.0.50727.3634; ASP.NET Version:2.0.50727.3634

I tried to enable remote errors in web.config file as below

  <customErrors mode="RemoteOnly" >
    </customErrors>


However, i have no idea how to navigate to report server on local server machine. Hence, i just made the above enabling remote error change in the web.config file and I have run the application expecting that the error details would be precise and eloborate which could help me trace or fix the issue. But, even though i enabled the remote errors, i still get the same error message(the above screen shot).

For more information about this error navigate to the report server on the local server machine, or enable remote errors.

My requirement is to show custome error message to the users when there are more than 65000 records that are being exported to excel.

( I have no idea where to impose that condition ... if rows > 6500 then show error message)

Reserved.ReportViewerWebControl.axd is the one i found when i click on 'Export' button.

Is that file editable?

if yes,

how to edit ? Can i write that condition in it?

if no,

what could be done to set the limit and show custom message to users if records > 65000

Can somebody please help in solving this.

Thank you In advance,

lxpk.


Compiler Error Message: CS0246: The type or namespace name DataContext

$
0
0

Hi

I have now come to the end of my thether with this, I have a very very simple .NET website (VS2010 Website) that has some gridviews with linq data sources, it basically captures data. The solution contains a DBML model, two ASPX pages and some styling.

I have published this site to a test server which is Windows 2003 SP2 with IIS6 and Framework 3.5 SP1 on which is works perfectly fine, how ever when i move this to the production server which is Windows 2003 R2 SP2 with IIS6 Framework 3.5 SP1 it get the following:

The code is copied directly from the test server, I had to point the live one to its own app pool but i have even left the incorrect DB connection string for now to ensure nothing is a miss, but this to me looks like a compliation issue as the error implies! 

I need help here I am missing something really simple but its just what.

Server Error in '/' Application.


Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

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

Source Error:

Line 53: 
Line 54:         //Insert new item into DBLine 55: var _dcAsset = new AssetDBDataContext(); Line 56: 
Line 57:         var _cabinOrCabinet = new  CabinOrCabinet()


Source File: e:\inetpub\wwwroot\InterComAssetRegister\AssetCapture.aspx.cs    Line: 55 


<div class="expandable">Show Detailed Compiler Output:</div>


<div class="expandable">Show Complete Compilation Source:</div>




Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

Gonna crazy: allowDefinition='MachineToApplication' beyond application level

$
0
0

I have searched this error message on Internet with Google. All solutions I found cannot solve my problem.

Our ASP.NET 2.0 Web application is deployed to 20 machines (some are Win2000, some are Win2003).  There's a load balance mechanism to dispatch user requests.

I tested my Web app on every server machine, I mean, I use remote desktop to deploy, configure, and test locally on each server machine, and they're all work fine.

However, when I test with load balance (e.g. through http://mycompany.com/myapp), IE6 tell me: configuration error. Then I go to each server machine and view Application event log, it shows:

-----------------------------< BEGIN EVENT LOG>------------------------------
Event code: 3008
Event message: Configuration error.
Event time: 2006/7/6 下午 02:14:01
Event time (UTC): 2006/7/6 上午 06:14:01
Event ID: 5a4e4ad164e14bf2bf0ef264efe56c98 Event sequence: 2 Event occurrence: 1 Event detail code: 0

Application information:
    Application domain: /LM/W3SVC/3/Root-5-127966400410625000
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\Inetpub\wwwroot\
    Machine name: WSYS6

Process information:
    Process ID: 2416
    Process name: aspnet_wp.exe
    Account name: WSYS6\ASPNET

Exception information:
    Exception type: ConfigurationErrorsException
    Exception message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS. (C:\Inetpub\wwwroot\MyWeb\web.config line 68)

Request information:
    Request URL: http://web.sys.myhome.com.tw:8081/MyWeb/Default.aspx
    Request path: /myweb/Default.aspx
    User host address: 219.91.13.151
    User:
    Is authenticated: False
    Authentication Type:
    Thread account name: WSYS6\ASPNET

Thread information:
    Thread ID: 5
    Thread account name: WSYS6\ASPNET
    Is impersonating: False
    Stack trace:    於
System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean
ignoreLocal)
   於 System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors
schemaErrors)
   於 System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String
configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object&
resultRuntimeObject)
   於 System.Configuration.BaseConfigurationRecord.GetSection(String
configKey, Boolean getLkg, Boolean checkPermission)
   於 System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
   於 System.Web.Configuration.RuntimeConfig.GetSectionObject(String sectionName)
   於 System.Web.Configuration.RuntimeConfig.GetSection(String
sectionName, Type type, ResultsIndex index)
   於 System.Web.Configuration.RuntimeConfig.get_Identity()
   於 System.Web.ClientImpersonationContext.Start(HttpContext context, Boolean throwOnError)
   於 System.Web.HttpApplication.OnThreadEnter()
   於 System.Web.HttpApplication.ResumeSteps(Exception error)
-----------------------------< END EVENT LOG>------------------------------

I have checked IIS settings for all server machines, I even re-deploy my app on each server. It simply works well locally, but not with load balance mechanism. (so it's not a problem that a virtual directory not being configured as an application.)

The error message from event log says there is an error in my Web app's web.config, Line 68. but line 68 is just a comment. My Web application contains only one web.config in the root folder, and its content is very simple, I didn't put any special elements/attributes in web.config.

I have fought with this problem for 3 days and I don't have any idea now.

Any suggestion would be greatly appreciated.

Mixed ASP.NET and Classic ASP website having an error running under the 4.0 integrated pipeline mode

$
0
0

I have a Mixed ASP.NET 3.5 and Classic ASP website that has been running successfully on windows 2008, Windows 2008 R2, and Window 2012 in the .net 2.0 integrated pipeline mode.  I recently tried to upgrade the website to 4.0 and change the website to use the .net 4.0 integrated pipeline mode but I received an error when the the asp page tries to do a request command.  If I switch the website to use .net 4.0 Classic pipeline the website works. 

Is there a setting in the Web.config or in IIS that needs to be set before IIS 7.5 will support classic ASP in integrated pipeline mode? 

Why does it work in .NET 2.0 integrated pipeline mode  and not in .NET 4.0 integrated pipeline mode?

 

 

.Net 1.1 upgrade to .Net 2 - Does it still use the .Net 1.1 framework

$
0
0

We have recently taken on support of a web application that was written many years ago and targeted v1.1 of the .net framework. It runs on Windows Server 2003/IIS 6 environment.

After looking at the configuration of the site in IIS, the target framework is set to 2.0.

Given that extended support for .net 1.1 will cease in October of this year I am trying to ascertain whether the site will still use any of the .net 1.1 framework assemblies given that the application is built and compiled in Visual Studio 2003.

The website only has another year or so to live before being replaced by a new solution entirely so I would prefer not to upgrade it if possible and run the risks such changes bring with them.

I initially assumed this to be the case because although ASP.net 2 is set as the target framework in IIS (and therefore the aspet_isapi.dll invoked is the .net 2 one etc) the assembly is a .net 1.1 assembly and will therefore still use the 1.1 framework.

In order to test this assumption, I was hoping that I would be able to just uninstall .net 1 and 1.1 frameworks from one of our test environments and try it but given it's a core component that would not seem to be an option.

I have the application running on my local machine (Windows 7/IIS 7) and I uninstalled the framework on there, pointed my application at .net 2 application pool running in classic pipeline mode and everything worked fine. This suggests in IIS 7 at least that my assumption is incorrect, however is anyone able to confirm that this will be the same in our production environment and that effectively I do't need to do anything ahead of support for .net 1.1 ceasing?

Any thoughts would be appreciated.

VS2010 - Visual Studio uses the wrong aspnet_compiler to compile my Web Site

$
0
0

Hello,

I have a Web Site (not a Web Application, i.e. no .csproj) that I have recently migrated from VS2005 to VS2010. The Web Site uses the .NET Framework 2.0 and ASPNET 2.0.

I had no trouble running my Web Site on my local IIS 6.0 but when I deployed it to my Integration environment the Web Site suddenly tried to use DLL that were obviously for ASPNET 4.0.

The main difference between the two environment being that on Integration the framework 2.0 therefore I concluded that Visual Studio was using the wrong version of aspnet_compiler. However if the solution is quite simple for a Web Application it is not for a Web Site who do not a project file.

My question how to modify the behavior of Visual Studio to use the correct compiler when I compile a Web Site ? As you would have guessed I'm dealing with legacy project that cannot afford to be migrated to a Web Application so please do not suggest that.

Thanks and best regards,

Eric Gaspard.

Viewing all 3561 articles
Browse latest View live


Latest Images