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

Problem with ASP.net for page using Windows Authentication IIS7

$
0
0

Hi All,

I'm a newbie.  Our W2003K web server with IIS6 that I inherited died, so I had to rebuild it as W2008SP2 and setup IIS7.  There is one "default" website that hosts access to 4 diferent sites (eg. www.mywebsite.com/joessite1, ,joessite2, joessite3, etc. ) but the main site (eg. www.mywebsite.com) had an Active Directory login feature that I can't get to work.  I don't know if I need to setup a virtual application or how to activate the windows activation feature within the page.  Basically when I navigate to the webpage it goes to what is the default.htm page and just shows the html page and is not interactive.  When I click on the "log in here link" it resolves to a 500 - Internal server error.  

I copied some info from an old image of the dead W2K3 server where it showed a "default.htm properties box" within the IIS managment list under the website, and the ASP.Net tab shows a virtual path to the /software/default.htm path, file location pointing to the Inetpub\wwwroot\software\web.config path; the File tab shows "the content for this resource should come from: The designated file, local path \software\default.htm with read and Log_visits checked; and the Authentication Methods "enable anonymous access is not check but "integrated windows authentication is checked. 

I just don't know how to transfer these features to IIS7

Help will be much appreciated!!


Reading from Custom .config files

$
0
0

Hi All,

I am building an application using MVC 4 which makes serveral web service calls to a third party application. The API has a couple params such as a Token which must always be passed. I want to store these variables in a configuration file so I created a file called API.config in the root directory of the project. However I'm not really sure how I can read from this configuration file in my classes that make the web service calls.

I tried this but it would not compile,

Configuration conf = WebConfigurationManager.OpenWebConfiguration("~/API.config");

private string apiToken = ConfigurationManager.AppSettings["APIToken"];

Error:

Error 1 A field initializer cannot reference the non-static field, method, or property

I'm new to ASP.NET so I'm not even sure if this is the best approach to stroring globals in ASP.NET.

asmx

$
0
0
when i update web app reference folder.it generate asmx file
what is it compiled file of web service ?

When downloading a file: System.Runtime.InteropServices.COMException: The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))

$
0
0

Hi every body,

I have installed an asp.net2.0 application in IIS7, my application creates files in a shared folder, this files are displayed in a page, you just need to push the desired file's button link for the download to begin, when the file has 0Kb the web browser shows the download windows and you can open or save the file as usually but if the file has something the asp.net application shows the an exception. The event viewer showsTransmitFile failed. File Name: \\\\pru-aplbhui01\\TransportFile\\es21022009.txt, HRESULT: 0x800700a1.

The code that make the transfer is:

Response.AddHeader(

"Content-disposition","attachment; filename="+ filename);Response.ContentType = "text/plain";

Response.TransmitFile(path + filename);

Response.Flush();

Response.End();

NOTE: I have installed Framework 3.5 SP1 and the webapp uses Windows Communication Foundation

The ASP.NET 2.0  Exception is:

The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))

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.Runtime.InteropServices.COMException: The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))

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:

[COMException (0x80070006): The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))]

[HttpException (0x80004005): An error occurred while communicating with the remote host. The error code is 0x80070006.]
   System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect) +4202784
   System.Web.Hosting.IIS7WorkerRequest.FlushCore(Boolean keepConnected, Int32 numBodyFragments, IntPtr[] bodyFragments, Int32[] bodyFragmentLengths, Int32[] bodyFragmentTypes) +138
   System.Web.Hosting.IIS7WorkerRequest.FlushCachedResponse(Boolean isFinal) +521
   System.Web.HttpResponse.UpdateNativeResponse(Boolean sendHeaders) +1092
   System.Web.HttpRuntime.FinishRequestNotification(IIS7WorkerRequest wr, HttpContext context, RequestNotificationStatus& status) +195

thanks.

How to deserialze below input string using newtonsoft json object

$
0
0

string

requeststr =

"{\"Request\":\"\\\"{\\\"AccessCode\\\":\\\"1A7370E9-A532-4376-BD39-41795F01321C\\\",\\\"ApproxTimeOfDay\\\":0,\\\"AwardTravel\\\":false,\\\"Bereavement\\\":0,\\\"BBXSolutionSetIdSelected\\\":null,\\\"CalendarDateChange\\\":null,\\\"CalendarLengthOfStay\\\":-1,\\\"CalendarOnly\\\":false,\\\"CartId\\\":null,\\\"ChannelType\\\":\\\"bbx-avail\\\",\\\"CountryCode\\\":null,\\\"DepartDateTime\\\":\\\"11/19/2013\\\",\\\"Destination\\\":null,\\\"DeviceType\\\":null,\\\"FareCalendar\\\":false,\\\"FareFamilies\\\":true,\\\"FareMerchCalendar\\\":false,\\\"FlightNumber\\\":null,\\\"InclAltTransportation\\\":false,\\\"InclCancelledFlights\\\":true,\\\"InclOAMain\\\":true,\\\"InclStarMain\\\":true,\\\"InclUACodeshares\\\":true,\\\"InclUAMain\\\":true,\\\"InclUARegionals\\\":true,\\\"InclZeroAvailability\\\":false,\\\"LangCode\\\":\\\"en-US\\\",\\\"MaxConnectTimeMinutes\\\":0,\\\"MaxTrips\\\":0,\\\"MinConnectTimeMinutes\\\":0,\\\"Origin\\\":null,\\\"OxygenCarrierProvided\\\":true,\\\"OxygenCustomerProvided\\\":true,\\\"MilitaryStateCode\\\":null,\\\"MilitaryTravelType\\\":0,\\\"PageIndex\\\":1,\\\"PageSize\\\":25,\\\"PetTravel\\\":false,\\\"QueryType\\\":null,\\\"SearchFailoverDays\\\":0,\\\"SearchType\\\":0,\\\"ServiceType\\\":0,\\\"SessionId\\\":\\\"6024439c-0f56-491b-bdd2-4ac78ed3e8d7\\\",\\\"SortType\\\":\\\"bestmatches\\\",\\\"SortTypeDescending\\\":false,\\\"StartIndex\\\":0,\\\"Stops\\\":0,\\\"StopsInclusive\\\":true,\\\"TrueAvailability\\\":true,\\\"VendorGUID\\\":null,\\\"VendorName\\\":null,\\\"MarketingCarriers\\\":null,\\\"OperatingCarriers\\\":null,\\\"Midpoints\\\":null,\\\"Routes\\\":null,\\\"PaxInfoList\\\":[{\\\"PaxType\\\":1,\\\"DateOfBirth\\\":\\\"01/01/1980\\\"}],\\\"RequiredAvailabilitySumAllFlights\\\":null,\\\"Trips\\\":[{\\\"Destination\\\":\\\"DEN\\\",\\\"DestinationDecoded\\\":null,\\\"DestinationLangCodeDecoded\\\":null,\\\"Origin\\\":\\\"ORD\\\",\\\"OriginDecoded\\\":null,\\\"OriginLangCodeDecoded\\\":null,\\\"BBXSession\\\":null,\\\"BBXSolutionSetId\\\":null,\\\"BBXCellIdSelected\\\":null,\\\"CabinType\\\":0,\\\"ColumnInformation\\\":null,\\\"CountryCodes\\\":null,\\\"DepartDate\\\":\\\"11/19/2013\\\",\\\"DepartTime\\\":null,\\\"DepartTimeApprox\\\":0,\\\"RewardUpgradeSearch\\\":false,\\\"Selected\\\":false,\\\"UseFilters\\\":true,\\\"SearchFiltersIn\\\":{\\\"AircraftTypes\\\":null,\\\"AirportsOrigin\\\":null,\\\"AirportsDestination\\\":null,\\\"AirportsStop\\\":null,\\\"AirportsStopToAvoid\\\":null,\\\"CabinCountMin\\\":-1,\\\"CabinCountMax\\\":-1,\\\"CarriersMarketing\\\":null,\\\"CarriersOperating\\\":null,\\\"DurationMin\\\":-1,\\\"DurationMax\\\":-1,\\\"DurationStopMin\\\":-1,\\\"DurationStopMax\\\":-1,\\\"EquipmentCodes\\\":null,\\\"EquipmentTypes\\\":null,\\\"PriceMin\\\":-1.0,\\\"PriceMax\\\":-1.0,\\\"StopCountExcl\\\":-1,\\\"StopCountMin\\\":1,\\\"StopCountMax\\\":1,\\\"TimeDepartMin\\\":null,\\\"TimeDepartMax\\\":null,\\\"TimeArrivalMin\\\":null,\\\"TimeArrivalMax\\\":null,\\\"Warnings\\\":[]},\\\"SearchFiltersOut\\\":null,\\\"Flights\\\":null,\\\"FlightCount\\\":0},{\\\"Destination\\\":\\\"ORD\\\",\\\"DestinationDecoded\\\":null,\\\"DestinationLangCodeDecoded\\\":null,\\\"Origin\\\":\\\"DEN\\\",\\\"OriginDecoded\\\":null,\\\"OriginLangCodeDecoded\\\":null,\\\"BBXSession\\\":null,\\\"BBXSolutionSetId\\\":null,\\\"BBXCellIdSelected\\\":null,\\\"CabinType\\\":0,\\\"ColumnInformation\\\":null,\\\"CountryCodes\\\":null,\\\"DepartDate\\\":\\\"11/26/2013\\\",\\\"DepartTime\\\":null,\\\"DepartTimeApprox\\\":0,\\\"RewardUpgradeSearch\\\":false,\\\"Selected\\\":false,\\\"UseFilters\\\":false,\\\"SearchFiltersIn\\\":null,\\\"SearchFiltersOut\\\":null,\\\"Flights\\\":null,\\\"FlightCount\\\":0}]}\",\"Response\":null,\"RequestType\":\"String\",\"ResponseType\":null,\"Description\":\"This.Service.Request\",\"StateInfos\":null,\"FileName\":\"CSAddTokenMessageHandler.cs\",\"ClassName\":null,\"OperationName\":\"SendAsync\",\"Message\":null,\"LineNumber\":\"101\",\"AssemblyInfo\":null,\"EventInfo\":{\"EventType\":\"RestRequest\",\"EventSuccess\":null,\"EventLevel\":null},\"RequestUri\":null,\"TimeStamp\":\"2013-11-05T16:54:24.2262426-05:00\",\"TimeZone\":null,\"Loglevel\":0,\"RequestHeader\":[\"{\\r\\n \\\"Content-Length\\\": \\\"2804\\\",\\r\\n \\\"Content-Type\\\": \\\"application/json; charset=utf-8\\\",\\r\\n \\\"Accept\\\": \\\"application/json\\\",\\r\\n \\\"Authorization\\\": \\\"6024439c-0f56-491b-bdd2-4ac78ed3e8d7\\\",\\r\\n \\\"Expect\\\": \\\"100-continue\\\",\\r\\n \\\"Host\\\": \\\"unitedservicesstage.ual.com\\\",\\r\\n \\\"TransactionId\\\": \\\"9f4228a5-c1cf-44c9-a6c9-15d90b9adedd\\\"\\r\\n}\"],\"ResponseHeader\":null,\"ServiceType\":3,\"MethodType\":\"POST\"}"

;

I want  lsit of trips and accesscode

 

Thanks,

Murali.

How to reset status on the remote web site using copy web site for deployment

$
0
0

Hi,

I developed a web forms system that I deployed several times. At some point I had to go back to a backup, so I deleted the folder in my development machine and copied it again from my backup hard drive. However, since then I have trouble updating the server. Files appear as unchanged in both sides but they are different. I selected one by one to update the server but I am still having differences. Is there any way to reset the status of the files on the server side to force a complete upload?

Thanks,

Alvaro

setup website

$
0
0

hi team im not sure if you seen this

i have visual web express 2008 and 2010 they work fine on XP creating websites

but i just had a windows 7 64 bit enterprise and i tunr on the IIS and then i try to create a website from VW2008 and VW2010 and i go this error

"Unable to create the web site 'http://xxxxxxxx.The Web server does not appear to have FrontPage Server Extentions installed.

 

any ideas

 

Redirects automatically adding "www" to beginning of domain; how do I get rid of it?

$
0
0

Hi there, 

All of my redirects in my website are redirecting to www.client.domain.com, and we want them to redirect to client.domain.com.  Is there something I need to add to my web.config file or something I need to configure in IIS?  Thank you.


ASP.Net 4 Cache privateBytesLimit setting not working

$
0
0

I have an asp .net 4 application configured on a 16 GB memory hardware.
The website is running on its own application pool with below settings.
Private Memory Limit - 0
Virutal Memory Limit - 0
Regular Time Interval - 0

This application uses caching heavily and 16 GB of memory can be filled with in several hours.
We cache every thing we read from the database with a calculated key and a cache key dependency expecting the framework to free memory by removing least used items.
I have below in web.config to limit the cache size close to 8 GB.

<caching>
<cache disableMemoryCollection="false" disableExpiration="false" privateBytesLimit="8000000000" percentagePhysicalMemoryUsedLimit="60" privateBytesPollTime="00:01:00" />
</caching>

But the application consume all 16GB memory before the scavenging starts. w3wp process is using more than 8GB as well.
Am i missing something?

after deploy on the server,the user name of I connection string of "integrated Security=SSPI" is changed.

$
0
0

hi

   may i ask a question.i log in windows with username "DOMANI\martin".and i have a web project.when i debug it in local host ,i found when i use  connection string  of database "integrated Security=SSPI",the user name is "martin"

but when   i publish this web project on a server(the name,"server-deploy"),then i found that when i use a connection string  of database "integrated Security=SSPI",it became "DOMANI\server-deploy"

  could anyone help me to resolve this problem? thank u very much in advance for ur kindness help

best regards

martin

What do I have to change on my Web Server to keep it from timing out when publishing a web app?

$
0
0

If I ftp my web app to a site initially, then I can publsih the changes unless the changes are large at all..a  new file, or something like that. I publsih to azzure and have no problem

with the same app so I know it has something to do with my web server. I think it times out.

 

The exact message I get is:

 

Microsoft.Web.Publishing.targets(4253,5): Warning : Retrying the sync because a socket error (10054) occurred.

 

Trouble with customErrors mode

$
0
0

I'm trying to push all unhandled errors to my errors.aspx page but it doesn't seem to be working. I have the following set in my Global.asax file and web.config:

Global.asax:

void Application_Error(object sender, EventArgs e)
        {
            // Code that runs when an unhandled error occurs
            // Get the exception object.
            Exception exc = Server.GetLastError();

            Response.BufferOutput = true;
            Response.Redirect("~/error.aspx");
            adminEmailError.SendMailMessage(exc.ToString());

            Server.ClearError();
        }

web.config:

<system.web><customErrors mode="Off" /></system.web>




Dev Studio 2013 upgrade reports a Web Deployment Project as incompatible

$
0
0

Hi I have just opened a 2010 dev studio web project in dev studio 2013, were we have 2 Web Deployment Projects. (ie .wdproj). Both have the message (incompatible) and then underneath "The application is not installed".

Does anyone know what this means, and how to get around this? Are these "projects" supported? A lot of searching gave my nothing but conflicting answers (to 2012 related questions)

Thanks in advance for any help

Best regards, Peter

Website is loaded in Framset

$
0
0

Hi,

I have three website domains viz

1- www.majorgainz.com

2- www.majorgainz.in

3- www.majorgains.in

Entire Web site content is deployed on 1st domain.

When i type 2nd and 3rd domain names in browser, entire website is loaded in Framset, even when I click any link, it does the same,there is no any changes in url.

But any content is updated on site, it gets reflected in rest of the two domains also.

Can any one guid me, why website is loaded in frameset ?

I also want when people type www.majorgainz.in or www.majorgains.in, they should redirected to www.majorgainz.com - how to do that ?

Thanks in advance.

how to set property to "IUSR_machinename" iis 7.5 ?thank u very much

$
0
0

hi

   may i ask  how to set property to "IUSR_machinename" iis 7.5  ?thank u very much

best regards


Assemblies not exists on server

$
0
0

Iam trying to get my asp.net app to run on Windows Server 2008 and I get error about these assemplies not being on the server:


Server Error in '/ContractInvoices' 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: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

Line 20: <compilation debug="false" targetFramework="4.5">
Line 21: <assemblies>
Line 22: <add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
Line 23: <add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
Line 24: <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

Source File: F:\ContractMgmt\ContractInvoices\web.config Line: 22

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' could not be loaded.

It also cannot load the Microsoft.ReportViewer.Common and stdole.

How do I get these installed on the server?

Please help with ASP.NET 4 on IIS 6

$
0
0

Hello,

I tried this a few months ago, but stop after getting totaly frustrated. 

I am developing using Visual Studio Profession 2012 on a Windows 7 Ultimate machine.  I have a few web pages developed that I want to run on a Windows Server 2003 R2 machine running IIS 6.  This server has been running our sites for a few years - using HTML and classic ASP without issues.

I am moving my new pages using "Copy Web Site" in VS to the server without incident.  When I try to access the pages from the existing website, I get the error below.  I previously tried to install .NET 4.0 as needed.  On the server, under Windows Add/Remove Programs I see Microsoft .NET Framework 2.0 Service pack 2, Microsoft .NET Framework 3.0 Service pack 2, Microsoft .NET Framework 3.5 SP1, Microsoft .NET Framework 4.0 Client Profile and Microsoft .NET Framework 4.0 Extended.

In IIS Manager, under "Web Service Extensions"  I see (among other listings) ASP.NET v1.1.4322, ASP.NET v2.0.50727 and ASP.NET v4.0.30319.  Under the Application Pools, I do see the existing sites and the new reference to the pages I just created, but I do not see any way to change the ASP.NET version.

Any help that can be given would be greatly appreciated.

Thanky you in advance,

George

Server Error in '/remit' 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: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:

Line 18:             during development.
Line 19:         -->Line 20: <compilation debug="true" targetFramework="4.0"> Line 21:       <assemblies>
Line 22:         <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>


Source File: C:\Inetpub\njcf_private\remit\web.config   Line: 20


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

dbcombo migration failed - registration key

$
0
0

i migrate an application to a cloud server, and there are some functions, that dont work.

The application is developed in .net 1.1, and uses dbcombo for some textfields etc. now that i migrate that application when i am trying to use a some of its functions i get the error below:

DbCombo error: You have entered an invalid registration key. The registration key you entered is limited to the following domains: 'domain1.eu', 'www.domain1.eu' and 'localhost'. The current domain is 'domain2'. Please see www.dbcombo.net for a valid key. 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: j+b: DbCombo error: You have entered an invalid registration key. The registration key you entered is limited to the following domains: 'domain1.eu', 'www.domain1.eu' and 'localhost'. The current domain is 'domain2'. Please see www.dbcombo.net for a valid key.

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:

[b: DbCombo error: You have entered an invalid registration key. The registration key you entered is limited to the following domains: 'domain1', 'www.domain1.eu' and 'localhost'. The current domain is 'domain2'. Please see www.dbcombo.net for a valid key.] j..ctor(String registrationKey) +3425
Cambro.Web.DbCombo.DbCombo.a() +126
Cambro.Web.DbCombo.DbCombo.b(Object A_0, EventArgs A_1) +11438
System.Web.UI.Control.OnPreRender(EventArgs e) +67
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Control.PreRenderRecursiveInternal() +125
System.Web.UI.Page.ProcessRequestMain() +1499

-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2490; ASP.NET Version:1.1.4322.2494

Because i never used that before, can anyone tell me where can i obtain the key (the website www.dbcombo.net has nothing about that) or what else should i do in order to make dbcombo functional to the other domain?

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.

Express --> IIS7.5, Local Machine Commands

$
0
0

Hi all,

I'm trying to do something which I know might seem a bit odd! I've spent ages trying to figure it out and if there is a way around it including hundreds of searches and I'm coming to the conclusion it either needs someone much smarter than me or it just cant be done!

Anyway....

Im running some aspx pages on a Windows 7 machine running IIS 7.5, all the expected stuff is working fine. However I'm trying to execute some commands which affect the host machine directly, such as "sendkeys" and "shell".

These work perfectly when I test them on IIS Express from VS for Web but not when I deploy them to the production IIS7.5 server.

Sendkeys gives me a permission denied error and shell just does nothing. I've set imprsonation up and this appear to be working, also I've changed the application pool to run as the local user.

Is there anything else I can try?

Any suggestions welcome or likewise let me know if it just wont work so I don't waste any more of my life on this!

P.S. The machine is local only with no net connection so I'm not worried about apply permissions.

P.P.S. The purpose of this is to use as a home automation type server, the machine running IIS is visible on my TV and I use Media Center. The existing pages send out serial commands for relays, x10 switches controlling my lights and blinds etc.

Viewing all 3561 articles
Browse latest View live


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