My asp.net code do not work on iis7.5 but works perfectly on iis6.0 - iis-6

Error while browsing. Im using Windows 7 and IIS 7.5
Expected ')' Line 245, Char 43
I checked the codes and there is no error. Im using asp.net(VB.net)
Error on Line 245, the problem is my code is only having 150 lines. No 245 line.
I installed this to iis6.0 and it works perfectly. dont know what is the difference of iis6 and ii7.7
Hope someone could help me.. Thanks!

Related

I have a web server Apache setup question

Good morning . For the first time I have written to stackoverflow.
Currently we have a running server. We are using Apache as the web server and WebLogic 10.3.6 as the WAS server.
There is a problem here ... The WAS server has an action that generates a specific error code when accessing it directly. This particular error code is the 902 error code.
When you log in again, you will be given an error code of 902. If you access WAS directly, it will return error code 902.
However, when you access the web server (domain address), it will return a 500 error code instead of 902. Obviously this seems to be a problem with setting up a web server. I do not know where to return the 500 error code instead of the 902 error code.
Do you have any of these in your Apache configuration? I did not set up my own web server but I did not know that someone else was going out.
If you have a similar experience, please help. Thank you.
Attach a photo caputured by Developer Tools.

WCF & IIS - This site can’t be reached. The connection was reset

I'm running IIS 10 on Windows 10 Pro, and hosting a WCF RESTful service.
For some reason I'm getting "This site can’t be reached. The connection was reset." ERR_CONNECTION_RESET error.
I'm able to debug and step though my code till the very end successfully so I know the service is executing fine without any errors when the URL is hit.
But for some reason IIS is not displaying the results / json and is showing this error
I have spent over a day on this. Any advice on how to resolve this would be greatly appreciated. Thanks!

the web server is configured to not list the contents of this directory iis 7

When deploying my ASP MVC 4 application to IIS from my pc It worked , I tried also in my colleague pc and It's working but when I had to do it in my office computer it gives me this error "the web server is configured to not list the contents of this directory" , although there is the same configuration in the three computers : Windows 7 , iis 7 .
I've checked many question that threats this issue like this one and many others but they all recommend to enable directory browsing option in IIS , I've tried this but it's just showing my project content and what I want is to open my site .
Actually, since I'm using ASP MVC 4 , I don't have to mention a default document because in MVC 4 Its goes to controller and get from there the page to show. Do you have any idea of how to solve this ?
Just in case if anyone reached here looking for solution, here is how i resolved it. I deleted all files from my server ( bid directory ) and recopied it and but i recopied all files i missed App_global.asax.dll and App_global.asax.compiled files. Because these files were missing IIS was giving me this error
403 - Forbidden: Access is denied.
As soon as i added these files, it started working perfectly fine.

Register COM Component for Classic ASP

I'm upgrading an old Windows 2003 server (32-bit) with IIS 6 to a Windows 2008 server (64-bit) with IIS 7.5. I'm in the process of installing necessary DLLs on the new machine (I only need two). The first one worked fine. The second one, ASPIMAGE.DLL is causing some trouble.
Here's what I've done (same process that worked for XZIP.DLL):
Move ASPIMAGE.DLL to C:\Windows\SYSWOW64
C:\Windows\SYSWOW64\regsvr32.exe C:\Windows\SYSWOW64\ASPIMAGE.DLL - I get a prompt saying "DLLRegisterServer in ASPIMAGE.DLL succeeded". I've run this multiple times - I hope that's not an issue.
Set "Enable 32-Bit Application" to True in the Application pool. Restarted the Site and AppPool just to be sure.
Attempt running code (which works fine on the Win2003 machine):
I get this error:
Server object error 'ASP 0177 : 800703e6'
Server.CreateObject Failed
/scripts/update/resize.asp, line 2
800703e6
Note that I've also tried this as a replacement, and I have the same issue (it looks like it registers fine, but the code can't see it):
http://code.google.com/p/aspnetimage/
Any ideas what the issue is? It's strange to me, because it seems like it registers fine, but ASP can't find it.
I was able to solve the problem by using AspNetImage as a replacement in conjunction with LoadPicture(): http://www.w3schools.com/vbscript/func_loadpicture.asp.
http://code.google.com/p/aspnetimage/

CakePHP app working remotely but not on local machine

I have a CakePHP app which I have been developing on a remote server. Everything is working fine on the remote server.
I'm now trying to install it on a machine with a fresh install of XAMPP. Cake is timing out. Apache is working - other things, such as phpMyAdmin, work fine. I am running Apache through port 8000, as IIS is using port 80. The OS is Windows Server 2003.
When trying to access the app, it times out, with the following error:
Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\cake\libs\debugger.php on line 247
I have turned URL rewriting off, that hasn't solved the problem.
I have been trying to track down the source of the problem by echoing things and then exiting the script in the cake core. I found that the script was timing out (with the same error) when the components were trying to load. I commented out my components array in app_controller, and the script ran a little further.
Now, I have tracked it down this far:
Dispatcher::dispatch();
Dispatcher::_invoke();
Controller::constructClasses();
Controller::loadModel();
ClassRegistry::init(); //called on line 635 of Controller in the "else" block of the if (PHP5) statement
In ClassRegistry::init(), the script times out on line 141, whic is as follows:
${$class} =& new $class($settings);
I have no idea where to go from here! Help much appreciated.
I got your problem.
To solve this you should do tw0 things.
1) Try to change the debug level 2 in the core.php from the config adn then change it to 0.
2) plz enable this line from the config.
line number 57 in core.php.
Configure::write('App.baseUrl', env('SCRIPT_NAME'));
regards,
archit.
Well, after following the problem a bit further, I found that the problem was coming up in Model::construct. It turns out that the hostname in my database.php file was wrong! I would have expected a "could not connect to the database..." error.