IIS Pool Stop issue in asp.net? - asp.net

i don't know where i am stuck, but whenever i created the object of one of the class from App_Code, my sites pool stops, i dont understand whats wrong, with that class, everything is straightforward.
i have BAL and DAL created under App_Code, when i create the object of BAL, the App_Pool Stops.
here is a the BAL
and DAL
Please can anyone help me with this, i am stuck here for the last 2 weeks.

Check your event logs, you probably have a permission problem that is crashing the pool inside of your BAL/DAL.
Open Event Viewer by clicking the Start button Picture of the Start
button, clicking Control Panel, clicking System and Security,
clicking Administrative Tools, and then double-clicking Event
Viewer.‌ Administrator permission required If you're prompted for an
administrator password or confirmation, type the password or provide
confirmation.
Click the Error first, then check the Application event log.
Look for red error icons.

Related

Visual Web Developer 2010 Express hangs when adding web reference

When attempting to add a web reference to my MVC 4 project I do the following:
-Right click on project name and select "Add Service Reference..."
-Click on "Advanced..." button
-Click on "Add Web Reference..." button
-Enter the Web Services API WSDL address in the URL field
At this point it will search and then find the web service and ask me to authenticate the request, after agreeing to continue I am prompted with a login dialog, after entering the correct username and password it will often lock up. Sometimes it will re-display the login dialog and/or pop up some security confirmation boxes that read "Do you want to view only the webpage content that was delivered securely?" (Haven't been able to select Yes or No yet due to application hang around this time).
At this point I have to close the IDE and start the process over. I've tried 5+ times and have updated my system and rebooted.
Any ideas what could be causing this?
Thanks.
Turns out it just took a very very long time. When clicking on pop ups it would stop responding, I found if I waited long enough it would eventually let me make a selection, then the next box would hang. Whole process took well over 20min but eventually went through.
Not sure if this question should be deleted since technically there was no error, I'll leave it up to the mods.
Thanks.

System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0

Firstly, I am aware this problem has been dealt with before here, and the solutions are always corrections to the connection string.
However, in our case, the connection string is correct, because most of the time it works fine. What happens is at some point the site 'stops' and starts logging this error. Simply recycling the app pool clears it, and everything is good again until the next time. A site might run fine for hours or days, but then it falls over and every request logs this error.
Since it is a transient error, I suspect it is somehow memory or service related? Either some kind of service that handles the connection from the ASP.NET site fails within the app pool, or there is some shortage of memory so whatever process is required to handle the connection fails.
It is not just a single server, I have seen this issue occur on various customers' servers, so I don't think it is some obscure glitch with a particular server. I have also seen sites that were running fine for a long time start to experience this issue (which suggests to me it is related to resource availability).
For the sake of completeness, this is the connection string from a site that exhibits this problem:
<add name="SQLConnection" connectionString="Data Source=localhost\sqlexpress;
Integrated Security=True;Initial Catalog=databasename"
providerName="System.Data.SqlClient" />
But like I said, this works absolutely fine for hours/days, until the problem occurs.
Just surfing with error message and got one link from Microsoft.
Seems to me like your problem.
Can have a look on this.
http://social.msdn.microsoft.com/Forums/en-US/9f191038-dbf6-4306-8f66-ec211a1e933a/format-of-the-initialization-string-does-not-conform-to-specification-starting-at-index-0?forum=adodotnetdataproviders
Thanks
Can you please check following points:
Make sure the account has full permission (both read and write) on folder:
"C:\INETPUB\WWWROOT\BE SITE WORK(FINAL)\4SIGHT\WEBSITE\BARAMATIESTATES\BARAMATIESTATES\”
I recommend that set “C:\INETPUB” folder allow all user access and edit, at least give full administrator right to IIS account.
2 Make sure IIS account is sysadmin of SQL Server.
Setting IIS Permissions for an Object
You can set permissions for any object in IIS, including Web sites, folders, files, and scripts. To set the permissions for an object in IIS:
Log on to the Web server computer as an administrator.
Click Start, point to Settings, and then click Control Panel.
Double-click Administrative Tools, and then double-click Internet Services Manager.
Right-click the Web site that you want to configure in the left pane, and then click Properties.
If you want to set the permissions for a Web site's home folder, click the Home Directory tab.
If you want to set the permissions for a folder in a Web site, click the Directory tab.
If you want to set the permissions for a file or a script in a folder, click the File tab.
Click the corresponding permissions that you want to set for the object.
To turn on script processing for a Web site or folder, click Scripts Only from the Execute permissions list.To turn off script processing, click None.
Click OK.
if the issue still persist let me know :)

PurchReqApproval Workflow stopped working

PurchReqApproval workflow stopped working, that is all the workflow's messages are in pending state. There were no modifications made to objects related to that workflow (maybe except EDTs).
I am thinking this issue might be consequence of changing server admin password. Any hints how and where can I check/fix outdated password in IIS/AX/Services?
Go to your IIS manager and then click on application pools. Find the relevant one and right click on it and do advanced settings, then look at its identity (username) and click the ellipse .... Try setting the password again and recycling the app pool and/or doing an iisreset.

Forbidden error on postback

My application displays the following error when a postback occurs on the page:
Forbidden: You do not have permission to access / folder / teste.aspx on this server.
I can access the pages normally, the problem is when a postback occurs. For example, when a selectedindexchanged occurs, or a button is clicked, this error appears. But, when navigation is made by hyperlinks, the error does not occur.
This problem only appears when the application is accessed over the internet. The anonymous access was already enabled. I am using IIS6 and windows server 2003.
This is a permissions issue. You need to do two things: 1) update the Web.config of your project to impersonate, and 2) update the folder permissions to allow Read/Write access to the IUSR account on your machine. Here are the details:
First, Add this to your Web.config in the system.web node:
<identity impersonate="true"/>
Now, go to the root folder of your Web site in Windows Explorer, right click it, and click the 'Properties' option.
Then go to the Security tab. Click the 'Edit...' button next to the text that says 'To change permissions, click 'Edit.'
You will see a list of Groups or user names. Underneath that box, click 'Add...'
In the next window 'Select Users or Groups', click the 'Advanced' button on the bottom left.
Click the 'Find Now' button on the right. In the search results, look for an account called IUSR_MachineName (where machine name is the name of your computer). Select it by left clicking it, and then click 'OK'
Click 'OK' on the 'Select Users or Groups' window
In the list of groups or usernames, locate the IUSR account that you just added, and make sure that at the bottom the boxes for Modify, Read/Execute, List Folder Contents, and Read are all checked as 'Allow'. Note: You don't have to use Modify, but if you have any code that writes to the file system, you will need that checked.
Give that a shot.
For information's sake, the reason why it works from localhost, but not remote, is because the worker process is identifying you as an authenticated user. The instructions above are forcing IIS to use the 'Internet Guest Account' and then you are manually giving the permissions needed to that account.
One last final note, is that if you still have a problem, you might want to try giving the same access (using the steps above) to the 'Network' and 'Network Service' accounts. I don't think they matter (I'm pretty sure they were for Vista, but I could be wrong), but just in case.

updating Silverlight application # website

I have the following scenario: a Silverlight application (constructed to be OOB) embedded at an ASP.NET website where, if the user already installed it, a label saying that is displayed; otherwise, an install button appears. Eventually I can update the .xap file available in the website.
Now the problem: if the user executes the application through his Desktop/Start Menu, i'm able to update the application and suggest the user to restart it. But, if I update the .xap file and upload it again to the website, apparently no "Silverlight update" occurs, it is displayed as a new application (if the user install it again, an application icon is displayed at his desktop).
Is there something I'm missing or there's nothing to do about this?
Thanks!
Signing the Silverlight application solves the problem.
When you run in a browser, updates are picked up right away (subject to HTTP caching rules). With OOB apps you need to use the App.Current.CheckAndDownloadUpdateAsync() method in your app to have it update.
http://msdn.microsoft.com/en-us/library/system.windows.application.checkanddownloadupdateasync(v=vs.95).aspx
The only drawback is that there is no way to just check for an update and give the users an option to download it conditionally; calling this always updates it if there is an update. You can however hook into the event and find info about the update should you wish. See this resource for more information: http://forums.silverlight.net/forums/p/180931/408554.aspx

Resources